Template:YouTube/doc: Difference between revisions
Jump to navigation
Jump to search
m (Removed spacing in template) |
m (Updated for second parameter default) |
||
Line 1: | Line 1: | ||
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. | 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. | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{YouTube | Video URL}} | |||
{{YouTube | Video URL | Display Text}} | {{YouTube | Video URL | Display Text}} | ||
</pre> | </pre> | ||
Line 8: | Line 9: | ||
== Example Usage == | == Example Usage == | ||
<pre> | <pre> | ||
{{YouTube|https://youtu.be/LafzNue-tFo| | {{YouTube|https://youtu.be/LafzNue-tFo}} | ||
{{YouTube|https://youtu.be/SnYdXlvCmO0|I'm Mr. Meeseeks! Look at me!}} | |||
</pre> | </pre> | ||
{{YouTube|https://youtu.be/LafzNue-tFo| | {{YouTube|https://youtu.be/LafzNue-tFo}} | ||
{{YouTube|https://youtu.be/SnYdXlvCmO0|I'm Mr. Meeseeks! Look at me!}} |
Revision as of 02:25, 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.
Usage
{{YouTube | Video URL}} {{YouTube | Video URL | Display Text}}
Example Usage
{{YouTube|https://youtu.be/LafzNue-tFo}} {{YouTube|https://youtu.be/SnYdXlvCmO0|I'm Mr. Meeseeks! Look at me!}}