Template:Youtube

From SW420
Jump to navigation Jump to search

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 follows https://www.youtube.com/, for example, either user/channelname, channel/channelname, or c/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 format YYYY-MM-DD.
  • |quote= To include a quote.
  • |parameter= To create a link to a YouTube playlist, using |parameter=playlist?list.
  • |subdomain= For subdomains of youtube.com, such as music.youtube.com, the subdomain can be specified, for example, |subdomain=music.

Backup links

Externals links

{{Youtube|channel=|channelname=}}

Required parameters

  • |channel= Use the alphanumeric part of the URL that follows https://www.youtube.com/, for example, either user/channelname, channel/channelname, or c/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:

swtheoldrepublic on YouTube

See also