Пређи на садржај

Шаблон:YouTube/док

Iz Vojne Enciklopedije

When to use

Такође погледајте: Wikipedia:External links/Perennial websites

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, or {{cite episode}} if the video is in an episodic format.

How to use

Video

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):

  1. {{YouTube|9bZkp7q19f0}}
    Видео на сајту YouTube
  2. {{YouTube|id=9bZkp7q19f0}}
    Видео на сајту YouTube

Examples (2 parameters):

  1. {{YouTube| 9bZkp7q19f0 | "Gangnam Style" }}
    "Gangnam Style" на сајту YouTube
  2. {{YouTube| id= 9bZkp7q19f0 | title= "Gangnam Style" }}
    "Gangnam Style" на сајту YouTube

User's channel

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):

  1. {{YouTube|u=pewdiepie}}
    PAGENAME (корисник) на сајту YouTube
  2. {{YouTube|user=pewdiepie}}
    PAGENAME (корисник) на сајту YouTube

Example (2 parameters):

  1. {{YouTube|u=pewdiepie|PewDiePie}}
    PewDiePie (корисник) на сајту YouTube
  2. {{YouTube|user=pewdiepie|PewDiePie}}
    PewDiePie (корисник) на сајту YouTube

Channel

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):

  1. {{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}
    PAGENAME (канал) на сајту YouTube
  2. {{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}
    PAGENAME (канал) на сајту YouTube

Example (2 parameters):

  1. {{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ|#Music}}
    #Music (канал) на сајту YouTube
  2. {{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ|#Music}}
    #Music (канал) на сајту YouTube

Show

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):

  1. {{YouTube|s=startrek}}
    PAGENAME шоу на сајту YouTube
  2. {{YouTube|show=startrek}}
    PAGENAME шоу на сајту YouTube

Example (2 parameters):

  1. {{YouTube|s=startrek|''Star Trek: The Original Series''}}
    Star Trek: The Original Series шоу на сајту YouTube
  2. {{YouTube|show=startrek|''Star Trek: The Original Series''}}
    Star Trek: The Original Series шоу на сајту YouTube

Playlist

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):

  1. {{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}
    PAGENAME плејлиста на сајту YouTube
  2. {{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}
    PAGENAME плејлиста на сајту YouTube

Example (2 parameters):

  1. {{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|Learn Something New}}
    Learn Something New плејлиста на сајту YouTube
  2. {{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|Learn Something New}}
    Learn Something New плејлиста на сајту YouTube

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

TemplateData

Ово је TemplateData документација за овај шаблон, коришћена у Визуелном уређивачу и у другим алаткама; погледајте месечни извештај о грешкама за овај шаблон.

TemplateData за YouTube

<templatedata> {

"description": "Use this to link to an external link on YouTube in the External links section. This is not a citation template.",
"params": {
 "id": {
  "label": "YouTube video id",
  "description": "The video id which appears after https://www.youtube.com/watch?v= in the URL",
  "aliases": ["1"],
  "example": "9bZkp7q19f0",
  "type": "string"
 },
 "user": {
  "label": "YouTube user's (channel) name",
  "description": "The user name which appears after https://www.youtube.com/user/ in the URL",
  "aliases": ["u"],
  "example": "pewdiepie",
  "type": "string"
 },
 "channel": {
  "label": "YouTube channel id",
  "description": "The channel id which appears after https://www.youtube.com/channel/ in the URL",
  "aliases": ["c"],
  "example": "UC-9-kyTW8ZkZNDHQJ6FgpwQ",
  "type": "string"
 },
 "show": {
  "label": "YouTube show name",
  "description": "The show name which appears after https://www.youtube.com/show/ in the URL",
  "aliases": ["s"],
  "example": "startrek",
  "type": "string"
 },
 "playlist": {
  "label": "YouTube playlist id",
  "description": "The playlist id which appears after https://www.youtube.com/playlist?list= in the URL",
  "aliases": ["p"],
  "example": "PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE",
  "type": "string"
 },
 "title": {
  "label": "Title",
  "description": "The name of the page being linked to",
  "suggested": true,
  "aliases": ["1", "2"],
  "example": "Gangnam Style",
  "default": "If it is a video, Video, if it is a show, the article's page name in italics, otherwise, the article's page name unformatted",
  "type": "string"
 },
 "link": {
  "label": "Link on",
  "description": "Set this parameter to no to suppress the link to the YouTube article",
  "example": "no",
  "type": "string"
 }
}

}</templatedata>

See also