Template:YouTube: Difference between revisions
Jump to navigation
Jump to search
(Created page with "60px [{{{url}}} Watch on YouTube]") |
m (Added url fallback to YouTube Logo target) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File: | <includeonly>[[File:YouTube_Logo.svg|40px|link={{{url|{{{1}}}}}}]] [{{{url|{{{1}}}}}} {{#if:{{{2|}}}|{{{2}}}|Watch on YouTube}}]</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> |
Latest revision as of 18:21, 14 July 2020
Using this template, you can create a link to a YouTube video formatted with the YouTube logo/icon and an external link to the video. If no display text is given, "Watch on YouTube" is displayed by default. The previous use of the template used the parameter url
, which still applies.
Usage
{{YouTube | Video URL}} {{YouTube | Video URL | Display Text}} {{YouTube | url = Video Url}}
Example Usage
{{YouTube|https://youtu.be/LafzNue-tFo}} {{YouTube|https://youtu.be/SnYdXlvCmO0|I'm Mr. Meeseeks! Look at me!}} {{YouTube|url=https://youtu.be/LafzNue-tFo}}
The above documentation is transcluded from Template:YouTube/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |