Template:Youtube
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Youtube/doc to edit this documentation. (How does this work?) |
Usage
Copy the template code below for the required usage and paste it into the appropriate place in an article, fill the required fields, and remove any that you don't use. If used in the External links section, do not add an video or archive links. DO NOT USE UNNAMED PARAMETERS.
References
{{Youtube|video=|text=|channel=|channelname=|date=|quote=|subdomain=|parameter=|archivedate=|archiveurl=|archivefile=|nobackup=}}
Required parameters
|video=
Use the alphanumeric part of the url that comes after "watch?v=
" in the url. Please do not include anything other than this.|text=
Title of the video.|channel=
Use the alphanumeric part of the URL that followshttps://www.youtube.com/
, for example, eitheruser/channelname
,channel/channelname
, orc/channelname
.|channelname=
The display name of the channel.- For archive options, see Backup links below.
Optional parameters
|date=
Date the Youtube video was published online. In the formatYYYY-MM-DD
.|quote=
To include a quote.|parameter=
To create a link to a YouTube playlist, using|parameter=playlist?list
.|subdomain=
For subdomains ofyoutube.com
, such asmusic.youtube.com
, the subdomain can be specified, for example,|subdomain=
music
.
Backup links
![]() |
Instructions for providing a backup link
In accordance with our Sourcing policy, all links to external sites must include a link to a backup version, preferably using Internet Archive. Instances that do not include one of the following parameters will result in the page being placed in the maintenance category. Please only use one of the following parameters.
Note that for citation templates using a central repository (/Archive subpage), archivedate values must be added to the repository, and not on the individual instance of those templates. |
Externals links
{{Youtube|channel=|channelname=}}
Required parameters
|channel=
Use the alphanumeric part of the URL that followshttps://www.youtube.com/
, for example, eitheruser/channelname
,channel/channelname
, orc/channelname
.|channelname=
The display name of the channel.
Example(s)
{{Youtube|video=f98TW0-_10c|text=Lucky kid Visits the set of The Empire Strikes Back Dagobah set. Meets Mark Hamill|channel=channel/UCWAveNRXoE2mJ2xwWtA4TSw|channelname=Filmumentaries com|archivedate=20160126062413}}
Results in:
Lucky kid Visits the set of The Empire Strikes Back Dagobah set. Meets Mark Hamill on the Filmumentaries com YouTube channel (backup link)
Within unnamed parameters (TRY TO AVOID THIS PLEASE):
{{Youtube|IobIhctxRXg|KOTOR 2 Cut Content: Sion Versus Nihilus|channel/UC8qtpVxvRes8kl4g_5G2-lA|darthatton|date=2006-07-24|archivedate=20200308024942}}
Results in:
KOTOR 2 Cut Content: Sion Versus Nihilus on the darthatton YouTube channel (July 24, 2006) (backup link)
For a playlist:
{{Youtube|video=PLiJsK_sFeeKygEepqlUoXIBwcyeGfXrXx|text=The Complete Music of Star Wars: The Old Republic|channel=channel/UCBGBXQmTRZ0uwfxvcCMfz_A|channelname=swtheoldrepublic|parameter=playlist?list|nobackup=1}}
Results in:
The Complete Music of Star Wars: The Old Republic on the swtheoldrepublic YouTube channel (content obsolete and backup link not available)
For a channel (External links):
{{Youtube|channel=channel/UCBGBXQmTRZ0uwfxvcCMfz_A|channelname=swtheoldrepublic}}
Results in: