This template can be used to embed playable YouTube videos to the right of a page, just like an image thumbnail. It can also be used to embed full-size YouTube videos on a page.
Implementing
{{YouTube Thumb|v=video ID|description}}
Optional parameters
If the width is not specified, the default of 300 will be used (normal image thumbnail size). To change the width, add the parameter:
|width=number
If the video is in widescreen (16:9 aspect ratio), add:
|wide=yes
To make the video start right when the page loads, add:
|autoplay=yes
To make the YouTube video display as a normal-sized video on the page and not a right-aligned thumbnail, use:
|thumb=no
Note that non-thumbnail videos will not have a description, so including one for them is unnecessary. The default width for these videos is 350 but may also be changed using the |width= parameter.<templatedata>
{
"description": "This template can be used to embed videos from YouTube.",
"params": {
"1": {
"label": "Description",
"description": "A quick description of the video.",
"type": "string"
},
"thumb": {
"label": "Thumbnail",
"description": "Makes the YouTube video display as a normal-sized video on the page and not a right-aligned thumbnail, if set to \"yes\".",
"type": "string",
"default": "no"
},
"v": {
"label": "Video ID",
"description": "The video's id from YouTube. ",
"type": "string",
"required": true
},
"autoplay": {
"label": "Autoplay",
"description": "If set to \"yes\", the video will begin playing on page load.",
"type": "string",
"default": "no"
},
"width": {
"label": "Width",
"description": "If the width is not specified, the default of 300 will be used (normal image thumbnail size).",
"type": "string"
},
"wide": {
"label": "Widescreen",
"description": "Set to yes, if the video is in 16:9 aspect ratio.",
"type": "string"
}
}
}
</templatedata>
