Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage and examples  



1.1  Video  



1.1.1  With timestamp  







1.2  Channel  



1.2.1  With channel ID  





1.2.2  With handle  





1.2.3  With legacy username  





1.2.4  With custom URL  







1.3  Show  





1.4  Playlist  





1.5  Suppress wikilink  





1.6  No ID in template  







2 TemplateData  





3 Tracking categories  





4 See also  














Template:YouTube






Acèh
Afrikaans

العربية
Արեւմտահայերէն

Asturianu
Авар
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bikol Central
Български
Boarisch
Bosanski
Буряад
Català
Чӑвашла
Cebuano
Čeština
Cymraeg
Dansk
الدارجة
Deutsch
Eesti
Ελληνικά
Español
Esperanto
Euskara
فارسی
Føroyskt
Français
Gaeilge
Galego
ГӀалгӀай

/Hak-kâ-ngî

Hausa
Hawaiʻi
Հայերեն
ि
Hrvatski
Bahasa Indonesia
Ирон
IsiXhosa
Íslenska
Italiano
עברית
Jawa

Kapampangan

Қазақша
Kiswahili
Kurdî
Кыргызча
Latviešu
Лезги
Lietuvių
Magyar
ि
Македонски



مصرى

Bahasa Melayu
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Монгол

Nederlands


Нохчийн
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

پنجابی
پښتو

Polski
Português
Română
Русский
Саха тыла

Sardu
Scots
Shqip

Simple English
سنڌي
Slovenčina
Slovenščina
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Татарча / tatarça
 


Тоҷикӣ
Türkçe
Türkmençe
Українська
اردو
Vèneto
Tiếng Vit
Winaray


Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
Wikibooks
Wikinews
Wikiquote
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


VideoonYouTube

This template is used to create an external link to YouTube in the ==External links== section. It may also be used for other YouTube links such as those in {{External media}}.

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.

Usage and examples

Video

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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"}}

With timestamp

Usage:

Parameter descriptions:

Examples:

Channel

With channel ID

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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}}
    #Music's channelonYouTube
  2. * {{YouTube|channel=UC-9-kyTW8ZkZNDHQJ6FgpwQ|title=#Music}}

With handle

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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='}}

With legacy username

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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='}}

With custom URL

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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's channelonYouTube

Show

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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}}

Playlist

Usage (one parameter):

Usage (two parameters):

Parameter descriptions:

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}}

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

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

No ID in template

The template will display an error message if no parameters are provided.

* {{YouTube}}

It will display an error message if the parameter provided is not known.

* {{YouTube|ID=test}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:YouTube in articles based on its TemplateData.

TemplateData for YouTube

Use this to create an external link to YouTube in the External links section. This is not a citation template.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
YouTube video idid 1

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

Example
9bZkp7q19f0
Stringsuggested
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

Example
3m2s
Stringoptional
YouTube channel idchannel c

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

Example
UC-9-kyTW8ZkZNDHQJ6FgpwQ
Stringsuggested
YouTube channel handlehandle h

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

Example
PewDiePie
Stringoptional
YouTube legacy usernameuser u

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

Example
pewdiepie
Stringoptional
YouTube channel custom URL fragment slugcustom

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

Example
youtube
Stringoptional
YouTube show idshow s

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

Example
SCWdVLvom3QaFGxEKNASntaA
Stringsuggested
YouTube playlist idplaylist p

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

Example
PLrEnWoR732-DZV1Jc8bUpVTF_HTPbywpE
Stringsuggested
Titletitle 2

The name of the page being linked to

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
Example
Gangnam Style
Stringsuggested
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.

Default
's
Example
'
Stringoptional
Link onlink

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

Example
no
Stringoptional

Tracking categories

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:YouTube&oldid=1157587441"

Categories: 
Google templates
Video templates
Social media external link templates
Television external link templates
Hidden categories: 
Wikipedia template-protected templates
Templates not safe for use in citation templates
Templates using TemplateData
Templates that add a tracking category
 



This page was last edited on 29 May 2023, at 16:24 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki