Template:Video Embed: Difference between revisions

No edit summary
m Add transclusion to doc page
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ev:
{{#ev:
{{{service}}}
{{{service}}}|
|{{{url}}}|
{{{url}}}|
{{#if:{{{dimensions|}}}|{{{dimensions}}}}}
{{#if:{{{dimensions|}}}|{{{dimensions}}}|}}|
|{{{alignment}}}
{{#if:{{{alignment|}}}|{{{alignment}}}|}}|
|{{{description}}}
{{#if:{{{description|}}}|{{{description}}}|}}
|{{{container}}}
}}
}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
<templatedata>
{{documentation}}
{
[[Category:Mario Kart Wii Templates]]
"params": {
"service": {
"label": "Streaming service",
"description": "Video service of the video you want to embed",
"example": "youtube",
"type": "string",
"suggestedvalues": [
"youtube",
"archiveorg",
"dailymotion",
"nico",
"rutube",
"twitch",
"vimeo"
],
"required": true
},
"url": {
"label": "URL",
"description": "URL of the embed video",
"example": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"type": "url",
"required": true
},
"dimensions": {
"label": "Dimensions",
"description": "Dimensions in pixels to size the embed container. The standard format is width x height where either can be omitted, but the x must proceed height to indicate it as the height.",
"example": "480, 480x320, x320. If the height is not provided it will be calculated automatically from the width and service default ratio",
"type": "string"
},
"alignment": {
"label": "Alignment",
"description": "Align the placement of the video either to the left, centered, or to the right. Inline will allow multiple videos to display side by side without forced line breaks",
"example": "left, center",
"type": "string",
"suggestedvalues": [
"left ",
"center",
"right"
]
},
"description": {
"label": "Description",
"description": "Display a description under the embed container. For line breaks use &#10;",
"example": "some wikitext",
"type": "content"
},
"container": {
"label": "Container",
"description": "Specifies the container type to use for the embed",
"example": "frame — Wrap the video player in a MediaWiki thumbnail box",
"type": "string",
"suggestedvalues": [
"frame"
]
}
},
"description": "Add an embed video"
}
</templatedata>
</noinclude>
</noinclude>