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
TobyMcDonald (talk | contribs) |
TobyMcDonald (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <noinclude>[[Category: | + | *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])}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]]|{{#ifeq:{{{cat}}}|no|}}}}</includeonly><noinclude> | ||
+ | |||
+ | ==Syntax== | ||
+ | <pre>==External Links== | ||
+ | {{YouTube|}}</pre> | ||
+ | |||
+ | ==Usage== | ||
+ | When copying a link to a YouTube video, it looks like this: | ||
+ | |||
+ | :<code><nowiki>https://youtu.be/KbCxIcfNZ1o</nowiki></code> | ||
+ | |||
+ | Take the bit after the last slash to produce: | ||
+ | |||
+ | :<code><nowiki>{{YouTube|KbCxIcfNZ1o}}</nowiki></code> | ||
+ | |||
+ | Which outputs: | ||
+ | |||
+ | {{YouTube|KbCxIcfNZ1o}} | ||
+ | |||
+ | {|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]]) | ||
+ | |<code><nowiki>{{YouTube|55hiL22SMjI|OXmWzwet8qU}}</nowiki></code> | ||
+ | |{{YouTube|55hiL22SMjI|OXmWzwet8qU}} | ||
+ | |- | ||
+ | |Including time parameter | ||
+ | |<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> | ||
+ | |{{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]]) | ||
+ | |<code><nowiki>{{YouTube|3UYRqM5vms0|cat=no}}</nowiki></code> | ||
+ | |{{YouTube|3UYRqM5vms0|cat=no}} | ||
+ | |} | ||
+ | |||
==See also== | ==See also== | ||
*[[Template:Dailymotion]] | *[[Template:Dailymotion]] | ||
− | + | [[Category:Templates]]</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 21:34, 2 June 2023
Syntax
==External Links== {{YouTube|}}
Usage
When copying a link to a YouTube video, it looks like this:
https://youtu.be/KbCxIcfNZ1o
Take the bit after the last slash to produce:
{{YouTube|KbCxIcfNZ1o}}
Which outputs:
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}}
|