Template:YouTube/doc

Usage
Used to embed YouTube videos. Basic syntax is. Details for each parameter are described below.

id
The ID of the video, which is found after the "v=" in the video's URL.

Example:

playlist
A comma-separated list of video IDs to play. Not to be confused with an actual playlist.

Example:

listType and list
To embed a playlist, set  to the ID of the playlist, which is found after the "list=" in the playlist's URL.

Example:

You can set  to either   (default) or. is used for a playlist, and  is used for a channel's uploaded videos. If using, set   to the name of the channel.

Example:

width and height
These set the dimensions of the video player. Default is 560x315.

Example:

start and end
Set when the video starts and/or ends in seconds from the start.

Example:

autoplay
Setting to  makes the video autoplay.

Example:

loop
Setting to  makes the video or playlist loop.

Example:

align
Sets the alignment of the video player. Default is.

Example:

TemplateData
{	"params": { "1": {			"label": "ID", "description": "The ID of the video, which is found after the \"v=\" in the video's URL.", "type": "string", "suggested": true },		"playlist": { "description": "A comma-separated list of video IDs to play. Not to be confused with an actual playlist.", "type": "string" },		"listType": { "description": "Used with the \"list\" parameter. Set to \"playlist\" for a playlist. Set to \"user_uploads\" for a channel's uploaded videos.", "type": "string", "default": "playlist" },		"list": { "description": "If embedding a playlist, set to the ID of the playlist, which is found after the \"list=\" in the playlist's URL. If being used with the \"listType\" parameter set to \"user_uploads\", set to the name of the channel.", "type": "string" },		"width": { "description": "The width of the video player.", "type": "number", "default": "560" },		"height": { "description": "The height of the video player.", "type": "number", "default": "315" },		"start": { "description": "When the video starts in seconds from the start.", "type": "number" },		"end": { "description": "When the video ends in seconds from the start.", "type": "number" },		"autoplay": { "description": "Set to \"1\" to make the video autoplay.", "type": "boolean" },		"loop": { "description": "Set to \"1\" to make the video or playlist loop.", "type": "boolean" },		"align": { "description": "The alignment of the video player.", "type": "string", "default": "right" }	},	"description": "Used to embed YouTube videos." }