| Template documentation follows |
|---|
| 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.
Note on YouTube Shorts, it is best before archiving/formatting a link from a Shorts to change its URL (https://www.youtube.com/shorts/xxxxxxxxxx) to a regular YouTube URL (https://www.youtube.com/watch?v=xxxxxxxxxx).
References
{{YouTube|video=|text=|channel=|name=|date=|quote=|subdomain=|parameter=|archivedate=|archiveurl=|archivefile=|nobackup=|nolive=}}
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 part of the URL that followshttps://www.youtube.com/, for example, eitheruser/channelname,channel/channelname,c/channelname, or@channelname|name=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, archivedate and archiveurl values must be added to the repository, and not on the individual instance of those templates. If this template uses one, it is located at Module:ArchiveAccess/YouTube. |
- Category:YouTube usages with archived URLs not in Archive
- Category:YouTube usages with custom archivedate
- Category:YouTube usages with the same archivedate value
Externals links
{{YouTube|channel=|name=}}
Required parameters
|channel=Use the alphanumeric part of the URL that followshttps://www.youtube.com/, for example, eitheruser/name,channel/name, orc/name.|name=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|name=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)
For a playlist:
{{YouTube|video=PLiJsK_sFeeKygEepqlUoXIBwcyeGfXrXx|text=The Complete Music of Star Wars: The Old Republic|channel=channel/UCBGBXQmTRZ0uwfxvcCMfz_A|name=swtheoldrepublic|parameter=playlist?list|nobackup=1}}
Results in:
The Complete Music of Star Wars: The Old Republic on the swtheoldrepublic YouTube channel (backup link not available)
For a channel (External links):
{{YouTube|channel=channel/UCBGBXQmTRZ0uwfxvcCMfz_A|name=swtheoldrepublic}}
Results in:
swtheoldrepublic on YouTube (backup link needs confirmation (channel/UCBGBXQmTRZ0uwfxvcCMfz_A))
See also
- Template:D23YouTube
- Template:DisneyPlusYouTube
- Template:DisneyXDYouTube
- Template:DisneyYouTube
- Template:EASWYouTube
- Template:HighRepublicShow
- Template:ILMVFXYouTube
- Template:ILMxLABYouTube
- Template:LEGOYouTube
- Template:NightdiveYouTube
- Template:StarWarsShow
- Template:SWKidsYouTube
- Template:SWYouTube
- Template:ThisWeek
- Template:TORYouTube
- Template:UbisoftYouTube
- Template:WookYouTube
- Template:ZyngaYouTube