Template:YouTube: Difference between revisions
Jump to navigation
Jump to search
Replaced content with "." |
m 1 revision |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
. | [https://www.youtube.com/{{#if:{{{user|{{{u|{{{channel|}}}}}}}}} | ||
|user/{{{user|{{{u|{{{channel|}}}}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}'s channel] | |||
|{{#if:{{{s|{{{show|}}}}}} | |||
|show/{{{s|{{{show|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show | |||
|{{#if:{{{sid|{{{showid|}}}}}} | |||
|show?p={{{sid|{{{showid|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show | |||
|watch?v={{{id|{{{1|}}}}}} {{{title|{{#if:{{{2|}}}|{{{2}}}|Video}}}}}] | |||
}} | |||
}} | |||
}} on {{#ifeq:{{{link}}}|no | |||
|YouTube | |||
|[[YouTube]] | |||
}}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 13:47, 21 January 2013
Do not use this template to link to material that violates copyright law. Links to such material must either be replaced with a non-copyvio link or removed immediately. |
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}}
Supress wikilink
The link to YouTube can be suppressed with the parameter |link=no
.
- Example:
{{YouTube|id=9wuGq4haOs0|title="Nessun dorma"|link=no}}
produces "Nessun dorma" on YouTube
See also
- {{cite video}} – when citing audio and visual media sources this template should be used instead
- {{Google videos}} – for linking to Google Videos, when not citing, usually in external links
- All wikipedia pages linked to http://*.youtube.com and to https://*.youtube.com