Template:YouTube: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (Trying it again, but just adding the url argument into the image link target)
(Added documentation, changed named url parameter to ordered followed by text (so it mimics external link formatting))
Line 1: Line 1:
[[File:YouTube_Logo.svg|40px|link={{{url}}}]] [{{{url}}} Watch on YouTube]
<includeonly>[[File:YouTube_Logo.svg|40px|link={{{1}}}]] [{{{1}}} Watch on YouTube]</includeonly><noinclude>
{{Documentation}}
</noinclude>

Revision as of 02:17, 14 July 2020

Template documentation[view] [edit] [history] [purge]

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

Watch on YouTube

link={{{1}}} [{{{1}}} Watch on YouTube]