Template:Twitch link: Difference between revisions
Template page
More actions
Build reusable tournament data and rendering system |
m Build reusable tournament data and rendering system |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Twitch link/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-twitch-link">[https://www.twitch.tv/videos/{{{id|{{{1|}}}}}} {{{label|{{PAGENAME}}}}}] on [[File:Twitch icon.png|14px|link=|alt=Twitch]] Twitch</span>}}</includeonly><noinclude> | <includeonly><templatestyles src="Template:Twitch link/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-twitch-link">[https://www.twitch.tv/videos/{{{id|{{{1|}}}}}} "{{{label|{{PAGENAME}}}}}"] on [[File:Twitch icon.png|14px|link=|alt=Twitch]] Twitch{{#if:{{{credit|}}}|<span class="loka-twitch-link-credit"> (credit: {{{credit|}}})</span>}}</span>}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre>{{Twitch link|id=VOD_ID|label=Video title}}</pre> | <pre>{{Twitch link|id=VOD_ID|label=Video title|credit=Recorder name}}</pre> | ||
The first unnamed parameter can be used instead of <code>id</code>. <code>id</code> is just the numeric VOD ID from the end of the video's URL. The linked label defaults to the page name | The first unnamed parameter can be used instead of <code>id</code>. <code>id</code> is just the numeric VOD ID from the end of the video's URL. The linked label defaults to the page name and is always shown in quotes. <code>credit</code> is optional and, when given, shows who recorded/uploaded the video | ||
[[Category:External link templates]] | [[Category:External link templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:55, 19 August 2026
Usage
{{Twitch link|id=VOD_ID|label=Video title|credit=Recorder name}}
The first unnamed parameter can be used instead of id. id is just the numeric VOD ID from the end of the video's URL. The linked label defaults to the page name and is always shown in quotes. credit is optional and, when given, shows who recorded/uploaded the video