Template:YouTube/doc

Revision as of 20:24, 28 December 2020 by Therealtahu (talk | contribs) (Added instructions on how to use additional parameters with youtube links.)

Documentation

Removing the optional parameters will cause those sections to not appear in the page.

{{YouTube|Link (after ?v= or /channel/, defaults to "Shiny Smily Story" or Hololive Channel)|Link Name (optional, defaults to "YouTube")|Mode=Channel, Icon, or Channel Icon, removed by default|Size (optional, defaults to "16x16px")}}

Examples

{{YouTube|RrsGNMMghKM}}

Produces:

YouTube YouTube

{{YouTube|RrsGNMMghKM|Shiny Smily Story}}

Produces:

Shiny Smily Story Shiny Smily Story

{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon}}

Produces:

Shiny Smily Story

{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon|Size=40x40px}}

Produces:

Shiny Smily Story

{{YouTube|UCJFZiqLMntJufDCHc6bQixg|hololive ホロライブ - VTuber Group|Mode=Channel}}

Produces:

hololive ホロライブ - VTuber Group hololive ホロライブ - VTuber Group

Special Parameters

These are not officially supported by the template at the moment, but you can add additional parameters such as playlist and timeskip. Instead of putting the video link as the second parameter, add 1= before the video id to force everything after it into the URL. This is because the parameters cannot normally accept the '=' sign without a workaround.

{{YouTube|1=RrsGNMMghKM&t=60|Shiny Smily Story}}

Produces:

YouTube Smily Story YouTube

Notes

  • Does not work for timeskip links.