Template:YouTube/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search


Video[edit source]

Usage (one parameter):

  • {{YouTube | ID }}
  • {{YouTube | id= ID }}

Usage (two parameters):

  • {{YouTube | ID | TITLE }}
  • {{YouTube | id= ID | title= TITLE }}

Parameter descriptions:

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

Examples (1 parameter):

  1. {{YouTube| 9wuGq4haOs0 }}
    Video on
  2. {{YouTube| id= 9wuGq4haOs0 }}
    Video on

Examples (2 parameters):

  1. {{YouTube| 9wuGq4haOs0 | "Nessun dorma" }}
    "Nessun dorma" on
  2. {{YouTube| id= 9wuGq4haOs0 | title= "Nessun dorma" }}
    "Nessun dorma" on

Show[edit source]

Usage (one parameter):

  • {{YouTube | s = SHOWNAME }}
  • {{YouTube | show = SHOWNAME }}

Usage (two parameters):

  • {{YouTube | s= SHOWNAME | TITLE }}
  • {{YouTube | s= SHOWNAME | title= TITLE }}
  • {{YouTube | show= SHOWNAME | TITLE }}
  • {{YouTube | show= SHOWNAME | title= TITLE }}

Parameter descriptions:

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

Examples (1 parameter):

  1. {{YouTube| s= startrek }}
    YouTube/doc show on
  2. {{YouTube| show= startrek }}
    YouTube/doc show on

Example (2 parameters):

  1. {{YouTube| s= startrek | ''Star Trek: The Original Series'' }}
    Star Trek: The Original Series show on
  2. {{YouTube| show= startrek | ''Star Trek: The Original Series'' }}
    Star Trek: The Original Series show on

Show id[edit source]

Usage (one parameter):

  • {{YouTube | sid = SHOWIDCODE }}
  • {{YouTube | showid = SHOWIDCODE }}

Usage (two parameters):

  • {{YouTube | sid= SHOWIDCODE | TITLE }}
  • {{YouTube | sid= SHOWIDCODE | title= TITLE }}
  • {{YouTube | showid= SHOWIDCODE | TITLE }}
  • {{YouTube | showid= SHOWIDCODE | title= TITLE }}

Parameter descriptions:

  • sid or showid is the "YouTube show ID code" which appears as http://www.youtube.com/show?p=SHOWIDCODE
  • title gives an optional description that may replace the default title (PAGENAME)

Examples (1 parameter):

  1. {{YouTube| sid = K162qI1LPF8 }}
    YouTube/doc show on
  2. {{YouTube| showid = K162qI1LPF8 }}
    YouTube/doc show on

Example (2 parameters):

  1. {{YouTube| sid = K162qI1LPF8 | ''Sherlock Hound'' }}
    Sherlock Hound show on
  2. {{YouTube| showid = K162qI1LPF8 | ''Sherlock Hound'' }}
    Sherlock Hound show on

User channel[edit source]

Usage (one parameter):

  • {{YouTube | u = USERCHANNELNAME }}
  • {{YouTube | user = USERCHANNELNAME }}
  • {{YouTube | channel = USERCHANNELNAME }}

Usage (two parameters):

  • {{YouTube | u = USERCHANNELNAME | TITLE }}
  • {{YouTube | u = USERCHANNELNAME | title= TITLE }}
  • {{YouTube | user = USERCHANNELNAME | TITLE }}
  • {{YouTube | user = USERCHANNELNAME | title= TITLE }}
  • {{YouTube | channel = USERCHANNELNAME | TITLE }}
  • {{YouTube | channel = USERCHANNELNAME | title= TITLE }}

Parameter descriptions:

  • u, user, or channel is the "YouTube user channel name" which appears as http://www.youtube.com/user/USERCHANNELNAME
  • title gives an optional description that may replace the default title (PAGENAME)

Examples (1 parameter):

  1. {{YouTube| u = ABCNews }}
    YouTube/doc's channel on
  2. {{YouTube| user = ABCNews }}
    YouTube/doc's channel on
  3. {{YouTube| channel = ABCNews }}
    YouTube/doc's channel on

Example (2 parameters):

  1. {{YouTube| u = ABCNews | ABC News }}
    ABC News's channel on
  2. {{YouTube| user = ABCNews | ABC News }}
    ABC News's channel on
  3. {{YouTube| channel = ABCNews | ABC News }}
    ABC News's channel on

Suppress wikilink[edit source]

The link to YouTube can be suppressed with the parameter |link=no. Example:

  • {{YouTube| 9wuGq4haOs0 | "Nessun dorma" | link= no }}
    "Nessun dorma" on YouTube

See also[edit source]