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}}}" class="video {{#if:{{{2|}}}|video-with-caption}}"><youtube width="{{{width|400}}}" height="{{{height|240}}}">{{#if:{{{1|}}}|{{{1}}}|Do3tSdZucyA}}</youtube>{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span> | <templatestyles src="Template:YouTube/styles.css" /><span style="float:{{{float|right}}}" class="video {{#if:{{{2|}}}|video-with-caption}}"><youtube width="{{{width|400}}}" height="{{{height|240}}}">{{#if:{{{1|}}}|{{{1}}}|Do3tSdZucyA}}</youtube>{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}</span> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "YouTube video ID", | |||
"description": "This is the alphanumeric code that follows the v= in the URL of the YouTube video.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Description" | |||
}, | |||
"float": {}, | |||
"width": {}, | |||
"height": {} | |||
}, | |||
"description": "Embed a YouTube video" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 19:31, 4 April 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 | no description | Unknown | optional |
float | float | no description | Unknown | optional |
width | width | no description | Unknown | optional |
height | height | no description | Unknown | optional |