Template:YouTube/doc

When to use
Use this to create an external link to YouTube in the ==External links== section.

This is not a citation template. Use cite AV media to provide bibliographic citations in footnotes. Alternatively, use cite news if the video is a newscast, or cite episode if the video is in an episodic format.

Video
Usage (one parameter):

Usage (two parameters):

Parameter descriptions:
 * id (or unnamed parameter 1) is the "YouTube video id" which appears as https://www.youtube.com/watch?v=
 * title (or unnamed parameter 2) gives an optional description that may replace the default title (Video)

Examples (1 parameter):

Examples (2 parameters):

User's channel
Usage (one parameter):

Usage (two parameters):

Parameter descriptions:
 * u or user is the "YouTube user's (channel) name" which appears as https://www.youtube.com/user/
 * title gives an optional description that may replace the default title (PAGENAME)
 * suffix replaces the default " 's " after the channel name. It is only to be used in the rare occasion that the channel name is a compound noun ending in S, and making it possessive does not repeat the S sound. Do not use it for a brand name ending in S, for example Smosh Games, which is a singular entity. See MOS:POSS for more information.

Examples (1 parameter):

Example (2 parameters):

Example (3 parameters):

Channel
Usage (one parameter):

Usage (two parameters):

Parameter descriptions:
 * c or channel is the "YouTube channel id" which appears as https://www.youtube.com/channel/
 * title gives an optional description that may replace the default title (PAGENAME)

Examples (1 parameter):

Example (2 parameters):

Show
Usage (one parameter):

Usage (two parameters):

Parameter descriptions:
 * s or show is the "YouTube show name" which appears as https://www.youtube.com/show/
 * title gives an optional description that may replace the default title (PAGENAME)

Examples (1 parameter):

Example (2 parameters):

Playlist
Usage (one parameter):

Usage (two parameters):

Parameter descriptions:
 * p or playlist is the "YouTube playlist id" which appears as https://www.youtube.com/playlist?list=
 * title gives an optional description that may replace the default title (PAGENAME)

Examples (1 parameter):

Example (2 parameters):

Suppress wikilink
The link to YouTube can be suppressed with the parameter no. Example:

TemplateData
{ "description": "Use this to create an external link to YouTube in the External links section. This is not a citation template.", "params": { "id": { "label": "YouTube video id", "description": "The video id which appears after https://www.youtube.com/watch?v= in the URL", "aliases": ["1"], "example": "9bZkp7q19f0", "type": "string" }, "user": { "label": "YouTube user's (channel) name", "description": "The user name which appears after https://www.youtube.com/user/ in the URL", "aliases": ["u"], "example": "pewdiepie", "type": "string" }, "channel": { "label": "YouTube channel id", "description": "The channel id which appears after https://www.youtube.com/channel/ in the URL", "aliases": ["c"], "example": "UC-9-kyTW8ZkZNDHQJ6FgpwQ", "type": "string" }, "show": { "label": "YouTube show name", "description": "The show name which appears after https://www.youtube.com/show/ in the URL", "aliases": ["s"], "example": "startrek", "type": "string" }, "playlist": { "label": "YouTube playlist id", "description": "The playlist id which appears after https://www.youtube.com/playlist?list= in the URL", "aliases": ["p"], "example": "PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE", "type": "string" }, "title": { "label": "Title", "description": "The name of the page being linked to", "suggested": true, "aliases": ["1", "2"], "example": "Gangnam Style", "default": "If it is a video, Video, if it is a show, the article's page name in italics, otherwise, the article's page name unformatted", "type": "string" }, "suffix": { "label": "Channel title suffix", "description": "Text immediately after the channel title. It is only to be used in the rare occasion that the channel title is a compound noun ending in S, and making it possessive does not repeat the S sound.", "example": "'", "default": "'s", "type": "string" }, "link": { "label": "Link on", "description": "Set this parameter to no to suppress the link to the YouTube article", "example": "no", "type": "string" } } }