Difference between revisions of "Template:YouTube"

From Better Than Wolves Wiki
Jump to: navigation, search
Line 11: Line 11:
 
  |YouTube
 
  |YouTube
 
  |YouTube
 
  |YouTube
}}<noinclude>{{documentation}}</noinclude>
+
}}
 +
 
 +
== Usage ==
 +
 
 +
=== Video links ===
 +
<code><nowiki>{{YouTube|</nowiki>id=''id''|title=''title''<nowiki>}}</nowiki></code>
 +
* ''id'' is the "YouTube id" which appears as <font color="darkblue"><nowiki>http://www.youtube.com/watch?v=</nowiki>''id''</font>
 +
* ''title'' gives an optional description that may replace the default title "Video"
 +
* Example: <code><nowiki>{{YouTube|id=9wuGq4haOs0|title="Nessun dorma"}}</nowiki></code> produces {{YouTube|id=9wuGq4haOs0|title="Nessun dorma"}}
 +
 
 +
=== Show links ===
 +
<code><nowiki>{{YouTube|</nowiki>show=''showname''|''title''<nowiki>}}</nowiki></code>
 +
* ''show'' is the "YouTube show name" which appears as <font color="darkblue"><nowiki>http://www.youtube.com/show/</nowiki>''showname''</font>
 +
* ''title'' gives an optional description that may replace the default title (''PAGENAME'')
 +
;Note
 +
The ''show'' field may be abbreviated as ''s''
 +
:<code><nowiki>{{YouTube|</nowiki>s=''showname''|''title''<nowiki>}}</nowiki></code>
 +
 
 +
=== Show id links ===
 +
<code><nowiki>{{YouTube|</nowiki>showid=''showidcode''|''title''<nowiki>}}</nowiki></code>
 +
* ''showid'' is the "YouTube show name" which appears as <font color="darkblue"><nowiki>http://www.youtube.com/show?p=</nowiki>''showidcode''</font>
 +
* ''title'' gives an optional description that may replace the default title (''PAGENAME'')
 +
;Note
 +
The ''showid'' field may be abbreviated as ''sid''
 +
:<code><nowiki>{{YouTube|</nowiki>sid=''showidcode''|''title''<nowiki>}}</nowiki></code>
 +
 
 +
=== User channel links ===
 +
<code><nowiki>{{YouTube|</nowiki>user=''userchannelname''|''title''<nowiki>}}</nowiki></code>
 +
* ''user'' is the "YouTube user channel name" which appears as <font color="darkblue"><nowiki>http://www.youtube.com/user/</nowiki>''userchannelname''</font>
 +
* ''title'' gives an optional description that may replace the default title (PAGENAME)
 +
;Note
 +
The ''user'' field may be specified using ''channel'' or simply ''u''
 +
:<code><nowiki>{{YouTube|</nowiki>channel=''userchannelname''|''title''<nowiki>}}</nowiki></code>
 +
:<code><nowiki>{{YouTube|</nowiki>u=''userchannelname''|''title''<nowiki>}}</nowiki></code>

Revision as of 10:32, 14 April 2013

Video on YouTube

Usage

Video links

{{YouTube|id=id|title=title}}

  • id is the "YouTube id" which appears as http://www.youtube.com/watch?v=id
  • title gives an optional description that may replace the default title "Video"
  • Example: {{YouTube|id=9wuGq4haOs0|title="Nessun dorma"}} produces "Nessun dorma" on YouTube

Show links

{{YouTube|show=showname|title}}

  • 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)
Note

The show field may be abbreviated as s

{{YouTube|s=showname|title}}

Show id links

{{YouTube|showid=showidcode|title}}

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

The showid field may be abbreviated as sid

{{YouTube|sid=showidcode|title}}

User channel links

{{YouTube|user=userchannelname|title}}

  • user 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)
Note

The user field may be specified using channel or simply u

{{YouTube|channel=userchannelname|title}}
{{YouTube|u=userchannelname|title}}