Template:YouTube/doc: Difference between revisions

m
no edit summary
(Created page with "== Documentation == Removing the optional parameters will cause those sections to not appear in the page. <pre> {{YouTube|Link (after ?v=, defaults to Shiny Smily Story)|Cust...")
 
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 3:
 
<pre>
{{YouTube|Link (after ?v= or /channel/, defaults to "Shiny Smily Story" or Hololive Channel)|Customize Link Name (optional, defaults to "YouTube")|Mode=Channel, Icon, or Channel Icon, removed by default|Size (optional, defaults to "16x16px")}}
</pre>
 
== Examples ==
<pre>
{{YouTube|RrsGNMMghKM}}
</pre>
 
'''Produces:'''
 
{{YouTube|RrsGNMMghKM}}
 
<pre>
{{YouTube|RrsGNMMghKM|Shiny Smily Story}}
</pre>
 
'''Produces:'''
 
{{YouTube|RrsGNMMghKM|Shiny Smily Story}}
 
<pre>
{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon}}
</pre>
 
'''Produces:'''
 
{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon}}
 
<pre>
{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon|Size=40x40px}}
</pre>
 
'''Produces:'''
 
{{YouTube|RrsGNMMghKM|Shiny Smily Story|Mode=Icon|Size=40x40px}}
 
<pre>
{{YouTube|UCJFZiqLMntJufDCHc6bQixg|hololive ホロライブ - VTuber Group|Mode=Channel}}
</pre>
 
'''Produces:'''
 
{{YouTube|UCJFZiqLMntJufDCHc6bQixg|hololive ホロライブ - VTuber Group|Mode=Channel}}
 
== 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.
 
If you use this method with a custom link name, you also need to add "2=" before the name.
<pre>
{{YouTube|1=RrsGNMMghKM&t=60|2=Shiny Smily Story}}
</pre>
 
'''Produces:'''
 
{{YouTube|1=RrsGNMMghKM&t=60|2=Shiny Smily Story}}
 
== Notes ==
* Does not work for timeskip links.
 
<noinclude>[[Category:Template Documentations]]</noinclude>
editors
17,397

edits