Template:YouTube/doc: Difference between revisions

m
Updated for second parameter default
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|Watch on YouTube}}
{{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|Watch on YouTube}}
{{YouTube|https://youtu.be/LafzNue-tFo}}
 
{{YouTube|https://youtu.be/SnYdXlvCmO0|I'm Mr. Meeseeks!  Look at me!}}
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633

edits