Due to persistent vandalism, account creation has been suspended. If you would like an account, please contact Charlie Reams on Apterous.

Difference between revisions of "Template:YouTube"

From Countdown
(Test)
 
Line 1: Line 1:
*Watch this episode on [[Wikipedia:YouTube|YouTube]] ([https://youtu.be/{{{1|{{{url1}}}}}}&t={{{time|{{{t}}}}}} part 1])<!--
+
<includeonly>*Watch this episode on [[Wikipedia:YouTube|YouTube]] ([https://youtu.be/{{{1|{{{url1}}}}}}&t={{{time|{{{t}}}}}} part 1])<!--
 
-->{{#if:{{{2|{{{url2|}}}}}}|, ([https://youtu.be/{{{2|{{{url2}}}}}} part 2])}}<!--
 
-->{{#if:{{{2|{{{url2|}}}}}}|, ([https://youtu.be/{{{2|{{{url2}}}}}} part 2])}}<!--
 
-->{{#if:{{{3|{{{url3|}}}}}}|, ([https://youtu.be/{{{3|{{{url3}}}}}} part 3])}}<!--
 
-->{{#if:{{{3|{{{url3|}}}}}}|, ([https://youtu.be/{{{3|{{{url3}}}}}} part 3])}}<!--
 
-->{{#if:{{{4|{{{url4|}}}}}}|, ([https://youtu.be/{{{4|{{{url4}}}}}} part 4])}}<!--
 
-->{{#if:{{{4|{{{url4|}}}}}}|, ([https://youtu.be/{{{4|{{{url4}}}}}} part 4])}}<!--
 
-->{{#if:{{{5|{{{url5|}}}}}}|, ([https://youtu.be/{{{5|{{{url5}}}}}} part 5])}}<!--
 
-->{{#if:{{{5|{{{url5|}}}}}}|, ([https://youtu.be/{{{5|{{{url5}}}}}} part 5])}}<!--
-->{{#if:{{{6|{{{url6|}}}}}}|, ([https://youtu.be/{{{6|{{{url6}}}}}} part 6])}}<includeonly>{{#ifeq:{{{cat}}}|no||{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]]}}}}</includeonly><noinclude>
+
-->{{#if:{{{6|{{{url6|}}}}}}|, ([https://youtu.be/{{{6|{{{url6}}}}}} part 6])}}{{#ifeq:{{{cat}}}|no||{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]]}}}}</includeonly><noinclude>__NOTOC__
  
 
==Syntax==
 
==Syntax==
Line 11: Line 11:
  
 
==Usage==
 
==Usage==
When copying a link to a YouTube video, it looks like this:
+
A link to a YouTube video looks like either of these:
  
:<code><nowiki>https://youtu.be/KbCxIcfNZ1o</nowiki></code>
+
:<code><nowiki>https://youtu.be/Wn_QcT6fPoU</nowiki></code>
 +
::or
 +
:<code><nowiki>https://www.youtube.com/watch?v=Wn_QcT6fPoU</nowiki></code>
  
Take the bit after the last slash to produce:
+
Take the bit after the last slash or the equals sign to produce:
  
:<code><nowiki>{{YouTube|KbCxIcfNZ1o}}</nowiki></code>
+
<pre>{{YouTube|Wn_QcT6fPoU}}</pre>
  
 
Which outputs:
 
Which outputs:
  
{{YouTube|KbCxIcfNZ1o}}
+
{{YouTube|Wn_QcT6fPoU}}
  
 +
==Other examples==
 
{|class=wikitable style=font-size:90%
 
{|class=wikitable style=font-size:90%
 
!width=10%|Example
 
!width=10%|Example
Line 31: Line 34:
 
|Multiple links
 
|Multiple links
 
|Up to six, separated by pipe symbols (<nowiki>|</nowiki>)<br />(e.g. [[Episode 25]])
 
|Up to six, separated by pipe symbols (<nowiki>|</nowiki>)<br />(e.g. [[Episode 25]])
|<code><nowiki>{{YouTube|55hiL22SMjI|OXmWzwet8qU}}</nowiki></code>
+
|<pre>{{YouTube|55hiL22SMjI|OXmWzwet8qU}}</pre>
 
|{{YouTube|55hiL22SMjI|OXmWzwet8qU}}
 
|{{YouTube|55hiL22SMjI|OXmWzwet8qU}}
 
|-
 
|-
 
|Including time parameter
 
|Including time parameter
 
|<code>t</code> or <code>time</code><br />(e.g. [[Episode 562]])
 
|<code>t</code> or <code>time</code><br />(e.g. [[Episode 562]])
|<code><nowiki>{{YouTube|xVqXT3d8pYs|t=3m43s}}</nowiki></code><br /><code><nowiki>{{YouTube|xVqXT3d8pYs|time=3m43s}}</nowiki></code>
+
|<pre>{{YouTube|xVqXT3d8pYs|t=3m43s}}</pre><pre>{{YouTube|xVqXT3d8pYs|time=3m43s}}</pre>
 
|{{YouTube|xVqXT3d8pYs|t=3m43s}}
 
|{{YouTube|xVqXT3d8pYs|t=3m43s}}
 
|-
 
|-
 
|Category suppression
 
|Category suppression
|Removes [[:Category:Episodes on YouTube]]. Only for non-broadcast games, like [[Co-event]] or [[ZoomDown]] games<br />(e.g. [[Episode ZD1]])
+
|Removes [[:Category:Episodes on YouTube]]. Only for non-broadcast games, like [[Co-event]] or ''[[ZoomDown]]'' games<br />(e.g. [[Episode ZD1]])
|<code><nowiki>{{YouTube|3UYRqM5vms0|cat=no}}</nowiki></code>
+
|<pre>{{YouTube|3UYRqM5vms0|cat=no}}</pre>
 
|{{YouTube|3UYRqM5vms0|cat=no}}
 
|{{YouTube|3UYRqM5vms0|cat=no}}
 
|}
 
|}
  
 
==See also==
 
==See also==
*[[Template:Dailymotion]]
+
*{{t|Dailymotion}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 00:34, 25 November 2023


Syntax

==External Links==
{{YouTube|}}

Usage

A link to a YouTube video looks like either of these:

https://youtu.be/Wn_QcT6fPoU
or
https://www.youtube.com/watch?v=Wn_QcT6fPoU

Take the bit after the last slash or the equals sign to produce:

{{YouTube|Wn_QcT6fPoU}}

Which outputs:

Other examples

Example Notes Code Output
Multiple links Up to six, separated by pipe symbols (|)
(e.g. Episode 25)
{{YouTube|55hiL22SMjI|OXmWzwet8qU}}
Including time parameter t or time
(e.g. Episode 562)
{{YouTube|xVqXT3d8pYs|t=3m43s}}
{{YouTube|xVqXT3d8pYs|time=3m43s}}
Category suppression Removes Category:Episodes on YouTube. Only for non-broadcast games, like Co-event or ZoomDown games
(e.g. Episode ZD1)
{{YouTube|3UYRqM5vms0|cat=no}}

See also