Template:YouTube/doc: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (Removed spacing in template)
m (Retrofitted url parameter)
 
(One intermediate revision by the same user not shown)
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.  The previous use of the template used the parameter <code>url</code>, which still applies.


== Usage ==
== Usage ==
<pre>
<pre>
{{YouTube | Video URL}}
{{YouTube | Video URL | Display Text}}
{{YouTube | Video URL | Display Text}}
{{YouTube | url = Video Url}}
</pre>
</pre>


== Example Usage ==
== Example Usage ==
<pre>
<pre>
{{YouTube|https://youtu.be/LafzNue-tFo|Watch on YouTube}}
{{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}}
</pre>
</pre>


{{YouTube|https://youtu.be/LafzNue-tFo|Watch on YouTube}}
{{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}}

Latest revision as of 18:15, 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}}

Watch on YouTube

I'm Mr. Meeseeks! Look at me!

Watch on YouTube