Template:YouTube link: Difference between revisions
Template page
More actions
Build reusable tournament data and rendering system |
m Link YouTube video labels directly |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:YouTube link/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-youtube-link"> | <includeonly><templatestyles src="Template:YouTube link/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-youtube-link">[https://www.youtube.com/watch?v={{{id|{{{1|}}}}}} {{{label|{{PAGENAME}}}}}] on [[File:YouTube icon.png|14px|link=|alt=YouTube]] YouTube</span>{{#ifeq:{{lc:{{{explicit|}}}}}|yes|<span class="loka-youtube-link-warning">Please note this video may contain strong language</span>}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre>{{YouTube link|id=VIDEO_ID|label=Video title}}</pre> | <pre>{{YouTube link|id=VIDEO_ID|label=Video title}}</pre> | ||
The first unnamed parameter can be used instead of <code>id</code>. The label defaults to the page name | The first unnamed parameter can be used instead of <code>id</code>. The linked label defaults to the page name | ||
Set <code>explicit=yes</code> to show the strong-language notice | Set <code>explicit=yes</code> to show the strong-language notice | ||
Revision as of 11:03, 19 August 2026
Usage
{{YouTube link|id=VIDEO_ID|label=Video title}}
The first unnamed parameter can be used instead of id. The linked label defaults to the page name
Set explicit=yes to show the strong-language notice