Template:YouTube: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}; width:{{{width|400}}}px" class="video {{#if:{{{2|}}}|video-with-caption}}">{{#tag:youtube|{{{1|Do3tSdZucyA}}}|width="{{{width|400}}}"|height="{{{height|240}}}"}}{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span> | <templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}; width:{{{width|400}}}px" class="video {{#if:{{{2|}}}|video-with-caption}}">{{#tag:youtube|{{{1|Do3tSdZucyA}}}|width="{{{width|400}}}"|height="{{{height|240}}}"}}{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span><noinclude> | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 38: | Line 37: | ||
"description": "Embed a YouTube video" | "description": "Embed a YouTube video" | ||
} | } | ||
</templatedata> | </templatedata></noinclude> | ||
</noinclude> |
Revision as of 06:35, 11 June 2020
Embed a YouTube video
Parameter | Description | Type | Status | |
---|---|---|---|---|
YouTube video ID | 1 | This is the alphanumeric code that follows the v= in the URL of the YouTube video. | String | required |
Description | 2 | Optional description to show below the video | Content | suggested |
Position | float position | Either 'left', 'right' or 'none'
| String | suggested |
Width | width | Width of the embedded video. Does not automatically scale with the height.
| Unknown | optional |
height | height | Height of embedded video. Does not automatically scale with the width.
| Unknown | optional |