Template:YouTube/doc

Use
This template is used to create a External Link to YouTube. It can also be used for other YouTube links, such as the template in External Multimedia.

Video
Use with a parameter:

Use with two parameters:

Parameter descriptions:
 * id= (or VIDEOID field) is the "YouTube Video ID" that appears as https://www.youtube.com/watch?v= VIDEOID
 * title= (or TITLE second parameter) gives an optional description that can override the default title: -Video-

Example (a parameter):

Example (two parameters):

User
Use with a parameter:

Use with two parameters:

Parameter descriptions:
 * u or user is the YouTube user name that appears https://www.youtube.com/user/ USER NAME
 * TITLE is used to place an optional description. If nothing is used, you default to the title of the page where it is inserted.

Example (a parameter):

Example (two parameters):

Channel
Use with a parameter:

Use with two parameters:

Parameter descriptions:
 * c or channel is the YouTube channel ID that appears as https://www.youtube.com/channel/ IDCHANNEL
 * TITLE is used to place an optional description. If nothing is used, you default to the title of the page where it is inserted.

Example (a parameter):

Example (two parameters):

Show or Show
Use with a parameter:

Use with two parameters:

Parameter descriptions:
 * s or show is the name of the show on YouTube that appears as https://www.youtube.com/show/ SHOWNAME
 * TITLE is used to place an optional description. If nothing is used, you default to the title of the page where it is inserted.

Example (a parameter):

Example (two parameters):

Playlist
Use with a parameter:

Use with two parameters:

Parameter descriptions:
 * list is the YouTube playlist ID that appears as https://www.youtube.com/playlist?list= IDLIST
 * TITLE is used to place an optional description. If nothing is used, you default to the title of the page where it is inserted.

Example (a parameter):

Example (two parameters):

Delete wikilink (on Youtube)
The subsequent link that says "on YouTube" can be removed with the parameter |link=no. Example:

TemplateData
{	"params": { "user": { "aliases": [ "u" ],			"label": "YouTube USER name ID (.../user/ID)", "description": "The user name that appears after the URL https://www.youtube.com/user/", "example": "pewdiepie", "type": "string" },		"title": { "aliases": [ "\"1\"",				"\"2\""			],			"label": "YouTube Link Name", "description": "Description or name of the linked page", "example": "PSY - Gangnam Style", "default": "vacate or name", "suggested": true },		"channel": { "aliases": [ "c" ],			"label": "YouTube CHANNEL ID (.../channel/ID)", "description": "The channel ID that appears after the URL https://www.youtube.com/channel/", "example": "UC-9-kyTW8ZkZNDHQJ6FgpwQ", "type": "string" },		"show": { "aliases": [ "S" ],			"label": "YouTube SHOW ID (.../show/ID)", "description": "The name of the show that appears after the URL https://www.youtube.com/show/", "example": "startrek", "type": "string" },		"list": { "aliases": [ "playlist" ],			"label": "YouTube Playlist ID (.../playlist?list=ID",			"description": "The playlist ID that appears after the URL https://www.youtube.com/playlist?list=",			"example": "PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE",			"type": "string"		},		"link": {			"label": "Link to Wikipedia article YouTube",			"description": "Set this parameter to avoid binding to the YouTube wikipedia article.",			"example": "None",			"type": "string"		},		"id": {			"aliases": [				"1"			],			"label": "YouTube VIDEO ID (.../watch?v=ID)",			"description": "The video ID that appears after the URL https://www.youtube.com/watch?v=",			"example": "9bZkp7q19f0",			"type": "string"		}	},	"description": "Use it to create an external link to YouTube.",	"paramOrder": [		"user",		"title",		"channel",		"show",		"list",		"link",		"id"	],	"format": "inline" }