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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Templates|YouTube]]
+
<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:{{{3|{{{url3|}}}}}}|, ([https://youtu.be/{{{3|{{{url3}}}}}} part 3])}}<!--
 +
-->{{#if:{{{4|{{{url4|}}}}}}|, ([https://youtu.be/{{{4|{{{url4}}}}}} part 4])}}<!--
 +
-->{{#if:{{{5|{{{url5|}}}}}}|, ([https://youtu.be/{{{5|{{{url5}}}}}} part 5])}}<!--
 +
-->{{#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==
 +
<pre>==External Links==
 +
{{YouTube|}}</pre>
 +
 
 +
==Usage==
 +
A link to a YouTube video looks like either of these:
 +
 
 +
:<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 or the equals sign to produce:
 +
 
 +
<pre>{{YouTube|Wn_QcT6fPoU}}</pre>
 +
 
 +
Which outputs:
 +
 
 +
{{YouTube|Wn_QcT6fPoU}}
 +
 
 +
==Other examples==
 +
{|class=wikitable style=font-size:90%
 +
!width=10%|Example
 +
!width=15%|Notes
 +
!Code
 +
!Output
 +
|-
 +
|Multiple links
 +
|Up to six, separated by pipe symbols (<nowiki>|</nowiki>)<br />(e.g. [[Episode 25]])
 +
|<pre>{{YouTube|55hiL22SMjI|OXmWzwet8qU}}</pre>
 +
|{{YouTube|55hiL22SMjI|OXmWzwet8qU}}
 +
|-
 +
|Including time parameter
 +
|<code>t</code> or <code>time</code><br />(e.g. [[Episode 562]])
 +
|<pre>{{YouTube|xVqXT3d8pYs|t=3m43s}}</pre><pre>{{YouTube|xVqXT3d8pYs|time=3m43s}}</pre>
 +
|{{YouTube|xVqXT3d8pYs|t=3m43s}}
 +
|-
 +
|Category suppression
 +
|Removes [[:Category:Episodes on YouTube]]. Only for non-broadcast games, like [[Co-event]] or ''[[ZoomDown]]'' games<br />(e.g. [[Episode ZD1]])
 +
|<pre>{{YouTube|3UYRqM5vms0|cat=no}}</pre>
 +
|{{YouTube|3UYRqM5vms0|cat=no}}
 +
|}
 +
 
 
==See also==
 
==See also==
*[[Template:Dailymotion]]
+
*{{t|Dailymotion}}
  
==How to use this template==
+
[[Category:Templates]]</noinclude>
*Put <nowiki>{{YouTube|bit that comes after v=, and nothing before it}}</nowiki>.
 
*You can add more videos, separated by pipe symbols (|), up to a maximum of six, which as far as is known exceeds current requirements.
 
*Example for '''[[Episode 338]]''':
 
:<tt><nowiki>{{YouTube|BNiI_894n3s|bqUqLHpNE0A|XdDPaNR3NP0|-X744zvluvM}}</nowiki></tt>
 
----
 
</noinclude><includeonly>[[Category:Episodes on YouTube]]</includeonly>
 
*Watch this episode on [[Wikipedia:en:YouTube|YouTube]] ([http://www.youtube.com/watch?v={{{1|{{{url1}}}}}} part 1])<!--
 
-->{{#if:{{{2|{{{url2|}}}}}}|, ([http://www.youtube.com/watch?v={{{2|{{{url2}}}}}} part 2])}}<!--
 
-->{{#if:{{{3|{{{url3|}}}}}}|, ([http://www.youtube.com/watch?v={{{3|{{{url3}}}}}} part 3])}}<!--
 
-->{{#if:{{{4|{{{url4|}}}}}}|, ([http://www.youtube.com/watch?v={{{4|{{{url4}}}}}} part 4])}}<!--
 
-->{{#if:{{{5|{{{url5|}}}}}}|, ([http://www.youtube.com/watch?v={{{5|{{{url5}}}}}} part 5])}}<!--
 
-->{{#if:{{{6|{{{url6|}}}}}}|, ([http://www.youtube.com/watch?v={{{6|{{{url6}}}}}} part 6])}}<!--
 

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