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) (Test) |
||
Line 4: | Line 4: | ||
-->{{#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:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]] | + | -->{{#if:{{{6|{{{url6|}}}}}}|, ([https://youtu.be/{{{6|{{{url6}}}}}} part 6])}}<includeonly>{{#ifeq:{{{cat}}}|no||{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]]}}}}</includeonly><noinclude> |
==Syntax== | ==Syntax== |
Revision as of 21:46, 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}}
|