Fyrimynd:YouTube
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. |
When to use
[rætta wikitekst]Use this to link to external links on YouTube in the ==External links== section.
This is not a citation template. Use {{cite AV media}} to provide bibliographic citations in footnotes. Alternatively, use {{cite news}} if the video is a newscast.
How to use
[rætta wikitekst]Video
[rætta wikitekst]Usage (one parameter):
{{YouTube | ''VIDEOID'' }}
{{YouTube | id= ''VIDEOID'' }}
Usage (two parameters):
{{YouTube | ''VIDEOID'' | ''TITLE'' }}
{{YouTube | id= ''VIDEOID'' | title= ''TITLE'' }}
Parameter descriptions:
- id (or unnamed parameter 1) is the "YouTube video id" which appears as https://www.youtube.com/watch?v=VIDEOID
- title (or unnamed parameter 2) gives an optional description that may replace the default title (Video)
Examples (1 parameter):
Examples (2 parameters):
{{YouTube| 9bZkp7q19f0 | "Gangnam Style" }}
{{YouTube| id= 9bZkp7q19f0 | title= "Gangnam Style" }}
User's channel
[rætta wikitekst]Usage (one parameter):
{{YouTube | u = ''USERNAME'' }}
{{YouTube | user = ''USERNAME'' }}
Usage (two parameters):
{{YouTube | u = ''USERNAME'' | ''TITLE'' }}
{{YouTube | u = ''USERNAME'' | title= ''TITLE'' }}
{{YouTube | user = ''USERNAME'' | ''TITLE'' }}
{{YouTube | user = ''USERNAME'' | title= ''TITLE'' }}
Parameter descriptions:
- u or user is the "YouTube user's (channel) name" which appears as https://www.youtube.com/user/USERNAME
- title gives an optional description that may replace the default title (PAGENAME)
Examples (1 parameter):
{{YouTube|u=pewdiepie}}
{{YouTube|user=pewdiepie}}
Example (2 parameters):
{{YouTube|u=pewdiepie|PewDiePie}}
{{YouTube|user=pewdiepie|PewDiePie}}
Channel
[rætta wikitekst]Usage (one parameter):
{{YouTube | c = ''CHANNELID'' }}
{{YouTube | channel = ''CHANNELID'' }}
Usage (two parameters):
{{YouTube | c = ''CHANNELID'' | ''TITLE'' }}
{{YouTube | c = ''CHANNELID'' | title= ''TITLE'' }}
{{YouTube | channel = ''CHANNELID'' | ''TITLE'' }}
{{YouTube | channel = ''CHANNELID'' | title= ''TITLE'' }}
Parameter descriptions:
- c or channel is the "YouTube channel id" which appears as https://www.youtube.com/channel/CHANNELID
- title gives an optional description that may replace the default title (PAGENAME)
Examples (1 parameter):
{{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}
{{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}
Example (2 parameters):
{{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ|#Music}}
{{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ|#Music}}
Show
[rætta wikitekst]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 https://www.youtube.com/show/SHOWNAME
- title gives an optional description that may replace the default title (PAGENAME)
Examples (1 parameter):
Example (2 parameters):
{{YouTube|s=startrek|''Star Trek: The Original Series''}}
{{YouTube|show=startrek|''Star Trek: The Original Series''}}
Playlist
[rætta wikitekst]Usage (one parameter):
{{YouTube | p = ''PLAYLISTID'' }}
{{YouTube | playlist = ''PLAYLISTID'' }}
Usage (two parameters):
{{YouTube | p= ''PLAYLISTID'' | ''TITLE'' }}
{{YouTube | p= ''PLAYLISTID'' | title= ''TITLE'' }}
{{YouTube | playlist= ''PLAYLISTID'' | ''TITLE'' }}
{{YouTube | playlist= ''PLAYLISTID'' | title= ''TITLE'' }}
Parameter descriptions:
- p or playlist is the "YouTube playlist id" which appears as https://www.youtube.com/playlist?list=PLAYLISTID
- title gives an optional description that may replace the default title (PAGENAME)
Examples (1 parameter):
{{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}
{{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}
Example (2 parameters):
{{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|Learn Something New}}
- Learn Something New playlist á YouTube
{{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|Learn Something New}}
- Learn Something New playlist á YouTube
Suppress wikilink
[rætta wikitekst]The link to YouTube can be suppressed with the parameter |link=no
. Example:
{{YouTube|9bZkp7q19f0|"PSY - GANGNAM STYLE(강남스타일) M/V"|link=no}}
- "PSY - GANGNAM STYLE(강남스타일) M/V" á YouTube
TemplateData
[rætta wikitekst]YouTube
Use this to link to an external link on YouTube in the External links section. This is not a citation template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
YouTube video id | id 1 | The video id which appears after https://www.youtube.com/watch?v= in the URL
| String | optional |
YouTube user's (channel) name | user u | The user name which appears after https://www.youtube.com/user/ in the URL
| String | optional |
YouTube channel id | channel c | The channel id which appears after https://www.youtube.com/channel/ in the URL
| String | optional |
YouTube show name | show s | The show name which appears after https://www.youtube.com/show/ in the URL
| String | optional |
YouTube playlist id | playlist p | The playlist id which appears after https://www.youtube.com/playlist?list= in the URL
| String | optional |
Title | title 1 2 | The name of the page being linked to
| String | suggested |
Link on | link | Set this parameter to no to suppress the link to the YouTube article
| String | optional |
See also
[rætta wikitekst]- {{Cite AV media}} – to cite a video
- {{Cite news}} – to cite a newscast
- en:WP:YOUTUBE – YouTube linking guideline
- All Wikipedia pages linked to http://*.youtube.com and to https://*.youtube.com
Dokumentatiónin omanfyri er tikin frá Fyrimynd:YouTube/doc. (rætta | søga) Editors can experiment in this template's sandkassi (upprætta | mirror) and testcases (upprætta) pages. Please add categories to the /doc subpage. Undirsíður til hesa/hetta fyrimyndina. |