Template:YouTube: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 1: | Line 1: | ||
<includeonly>* [https://www.youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}} Official YouTube channel] {{#set:youtube=//youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude> | <includeonly>* [https://www.youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}|{{#if:{{{1|}}}|user/{{{1|}}}}}}}}} Official YouTube channel] {{#set:youtube=//youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}|{{#if:{{{1|}}}|user/{{{1}}}}}}}}}}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude> |
Revision as of 13:16, 26 November 2016
Instructions for {{YouTube}}
{{YouTube}} is a template that allows you to put a link to a YouTube channel in the external links section of articles.
If the URL contains "channel", just type:
{{YouTube|channel=string of letters}}If it contains "user", type instead:
{{YouTube|user=name of channel}}
It automatically includes a bullet, producing a link that looks like this: