Šablon:YouTube

S Vikipedije, slobodne enciklopedije

Video na sajtu YouTube

Dokumentacija šablona[prikaži] [uredi] [istorija] [osveži]

Ovaj šablon se koristi da se generišu spoljašnje veze do Jutjuba u odeljku Spoljašnje veze. Takođe se može koristiti za druge linkove ka Jutjubu kao što su oni u šablonu {{External media}}.

Ovo nije šablon za navođenje izvora. Koristiti {{cite AV media}} da se pruže bibliografski izvori u fusnotama. Alternativno, koristiti {{cite news}} ako je video njuzkest, ili {{cite episode}} ako je video epizod(ič)nog formata.

Upotreba i primeri[uredi izvor]

Video[uredi izvor]

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

https://www.youtube.com/watch?v=9bZkp7q19f0
  1. * {{YouTube|9bZkp7q19f0}}
  2. * {{YouTube|id=9bZkp7q19f0}}

Examples (2 parameters):

  1. * {{YouTube|9bZkp7q19f0|"Gangnam Style"}}
  2. * {{YouTube|id=9bZkp7q19f0|title="Gangnam Style"}}

Sa vremenskom oznakom[uredi izvor]

Usage:

  • {{YouTube|id=VIDEOID|time=TIMESTAMP}}
  • {{YouTube|id=VIDEOID|t=TIMESTAMP}}

Parameter descriptions:

  • time or t is the timestamp within the video for the link target.

Examples:

  • {{YouTube|id=9bZkp7q19f0|time=3m2s}}
  • {{YouTube|id=9bZkp7q19f0|time=122}}
  • {{YouTube|id=9bZkp7q19f0|t=3m2s}}

Kanal[uredi izvor]

Sa ID-om kanala[uredi izvor]

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

https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ
  1. * {{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}
  2. * {{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ}}

Example (2 parameters):

  1. * {{YouTube|c=UC-9-kyTW8ZkZNDHQJ6FgpwQ|#Music}}
    [https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ
  2. Music] na sajtu YouTube
  3. * {{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ|title=#Music}}
  4. Music] na sajtu YouTube

Sa handle-om[uredi izvor]

Usage (one parameter):

  • {{YouTube|h=HANDLE}}
  • {{YouTube|handle=HANDLE}}

Usage (two parameters):

  • {{YouTube|h=HANDLE|TITLE}}
  • {{YouTube|h=HANDLE|title=TITLE}}
  • {{YouTube|handle=HANDLE|TITLE}}
  • {{YouTube|handle=HANDLE|title=TITLE}}

Parameter descriptions:

  • h or handle is the "YouTube channel handle" which appears as:
    https://www.youtube.com/@HANDLE
  • title gives an optional description that may replace the default title (PAGENAME)
  • suffix replaces the default " 's " after the channel name. It is only to be used in the rare occasion that the channel name is a compound noun ending in S, and making it possessive does not repeat the S sound. Do not use it for a brand name ending in S, for example Smosh Games, which is a singular entity. See MOS:POSS for more information.

Examples (1 parameter):

https://www.youtube.com/@PewDiePie
  1. * {{YouTube|h=PewDiePie}}
  2. * {{YouTube|handle=PewDiePie}}

Example (2 parameters):

  1. * {{YouTube|h=PewDiePie|PewDiePie}}
  2. * {{YouTube|handle=PewDiePie|title=PewDiePie}}

Example (3 parameters):

https://www.youtube.com/@officialBEG
  1. * {{YouTube|handle=officialBEG|title=Brown Eyed Girls|suffix='}}

Sa korisničkim imenom[uredi izvor]

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 channel user's name" which appears as:
    https://www.youtube.com/user/USERNAME
  • title gives an optional description that may replace the default title (PAGENAME)
  • suffix replaces the default " 's " after the channel name. It is only to be used in the rare occasion that the channel name is a compound noun ending in S, and making it possessive does not repeat the S sound. Do not use it for a brand name ending in S, for example Smosh Games, which is a singular entity. See MOS:POSS for more information.

Examples (1 parameter):

https://www.youtube.com/user/pewdiepie
  1. * {{YouTube|u=pewdiepie}}
  2. * {{YouTube|user=pewdiepie}}

Example (2 parameters):

  1. * {{YouTube|u=pewdiepie|PewDiePie}}
  2. * {{YouTube|user=pewdiepie|title=PewDiePie}}

Example (3 parameters):

https://www.youtube.com/user/officialBEG
  1. * {{YouTube|user=officialBEG|title=Brown Eyed Girls|suffix='}}

Sa proizvoljnim URL-om[uredi izvor]

Usage (one parameter):

  • {{YouTube|custom=CUSTOMURL}}

Usage (two parameters):

  • {{YouTube|custom=CUSTOMURL|TITLE}}
  • {{YouTube|custom=CUSTOMURL|title=TITLE}}

Parameter descriptions:

  • custom is the "YouTube channel custom URL" which appears as:
    https://www.youtube.com/c/CUSTOMURL
  • title gives an optional description that may replace the default title (PAGENAME)

Example (1 parameter):

https://www.youtube.com/c/officialBEG
  1. * {{YouTube|custom=officialBEG}}

Example (2 parameters):

  1. * {{YouTube|custom=officialBEG|Brown Eyed Girls}}
    Brown Eyed Girls na sajtu YouTube

Show[uredi izvor]

Usage (one parameter):

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

Usage (two parameters):

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

Parameter descriptions:

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

Examples (1 parameter):

https://www.youtube.com/show/SCWdVLvom3QaFGxEKNASntaA
  1. * {{YouTube|s=SCWdVLvom3QaFGxEKNASntaA}}
  2. * {{YouTube|show=SCWdVLvom3QaFGxEKNASntaA}}

Example (2 parameters):

  1. * {{YouTube|s=SCWdVLvom3QaFGxEKNASntaA|Star Trek: The Original Series}}
  2. * {{YouTube|show=SCWdVLvom3QaFGxEKNASntaA|title=Star Trek: The Original Series}}

Plejlista[uredi izvor]

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

https://www.youtube.com/playlist?list=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE
  1. * {{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}
  2. * {{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE}}

Example (2 parameters):

  1. * {{YouTube|p=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|Learn Something New}}
  2. * {{YouTube|playlist=PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE|title=Learn Something New}}

Odbacivanje vikiveze[uredi izvor]

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

* {{YouTube|9bZkp7q19f0|"PSY - GANGNAM STYLE(강남스타일) M/V"|link=no}}

Nema ID-a u šablonu[uredi izvor]

Šablon će prikazati poruku o grešci ako nijedan od parametara nije određen.

{{YouTube}}

Šablon će prikazati poruku o grešci ako je jedan od određenih parametara nedefinisan.

{{YouTube|ID=test}}

TemplateData[uredi izvor]

Ovo je TemplateData za ovaj šablon, koja se koristi u TemplateWizard, Vizuelnom uređivaču i drugim alatkama. Pogledajte mesečni izveštaj o upotrebi paramera za ovaj šablon u člancima zasnovanim na ovom TemplateData.

TemplateData za YouTube

Koristiti ovo za generisanje spoljašnje veze do Jutjuba u odeljku Spoljašnje veze. Ovo nije šablon za navođenje izvora.

Parametri šablona[Uredi podatke o šablonu]

Ovaj šablon preferira formatiranje parametara u jednom redu.

ParametarOpisVrstaStatus
YouTube video idid 1

The video id which appears after https://www.youtube.com/watch?v= in the URL

Primer
9bZkp7q19f0
tekstpredloženo
Timestamptime t

The timestamp within the video for the link target; usually appears after &t= in the full URL or ?t= in a shortened URL

Primer
3m2s
tekstneobavezno
YouTube channel idchannel c

The channel id which appears after https://www.youtube.com/channel/ in the URL

Primer
UC-9-kyTW8ZkZNDHQJ6FgpwQ
tekstpredloženo
YouTube channel handlehandle h

The user name which appears after https://www.youtube.com/@ in the URL

Primer
PewDiePie
tekstneobavezno
YouTube channel user's nameuser u

The user name which appears after https://www.youtube.com/user/ in the URL

Primer
pewdiepie
tekstneobavezno
YouTube channel custom URL fragment slugcustom

The channel custom URL slug which appears after https://www.youtube.com/c/ in the URL

Primer
youtube
tekstneobavezno
YouTube show idshow s

The show id which appears after https://www.youtube.com/show/ in the URL

Primer
SCWdVLvom3QaFGxEKNASntaA
tekstpredloženo
YouTube playlist idplaylist p

The playlist id which appears after https://www.youtube.com/playlist?list= in the URL

Primer
PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE
tekstpredloženo
Titletitle 2

The name of the page being linked to

Podrazumevano
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
Primer
Gangnam Style
tekstpredloženo
Channel title suffixsuffix

Text immediately after the channel title. It is only to be used in the rare occasion that the channel title is a compound noun ending in S, and making it possessive does not repeat the S sound.

Podrazumevano
's
Primer
'
tekstneobavezno
Link onlink

Set this parameter to no to suppress the link to the YouTube article

Primer
no
tekstneobavezno

Kategorije za praćenje[uredi izvor]

Vidi još[uredi izvor]