Template:Ytlink: Difference between revisions
More actions
for linking youtube videos |
add underline |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<span class="plainlinks">[https://www.youtube.com/{{{1}}} <span style="color: #ff0000;">{{{2}}}]</span> [[File:Youtube external link.png|x14px|alt=YouTube]] | <includeonly><span class="plainlinks" style="white-space: nowrap">[https://www.youtube.com/{{{1}}}<span style="color: #ff0000; text-decoration: underline solid #ff0000;">{{{2|YOUTUBE}}}]</span>{{#if: {{{3|}}}|{{{3}}}}} [[File:Youtube external link.png|x14px|alt=YouTube]]</span></includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:Template]] | |||
[[Category:In-line template]] | |||
</noinclude> | |||
Latest revision as of 23:01, 11 July 2025
Useage
Used to give a visually distinguishable reference to an external link to a YouTube video.
Example
Look at this {{ytlink|watch?v{{=}}YX0YIgv-nMk|cool Destiny video}} of him being a blob!
gives you:
Look at this cool Destiny video
of him being a blob!
Theoretically could be used to link to a channel, like {{ytlink|@Destiny|Destiny}} or {{ytlink|@LastNightDestiny|Last Night on Destiny|,}} and has the ability to add punctuation marks!
gives you
Theoretically could be used to link to a channel, like Destiny
or Last Night on Destiny,
and has the ability to add punctuation marks!
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The YouTube video ID. Only include everything past the "https://www.youtube.com/" You will need to use the {{=}} magic word template for any = signs within the link due to template limitations.
| URL | required |
| 2 | 2 | The name that the link will be masked with. Will default to "YOUTUBE" if no value is entered.
| Unknown | suggested |