Difference between revisions of "Template:Match"

From QWiki
m (Fixing widths and layout)
m (Added doc)
Line 7: Line 7:
 
| style="width:50%; white-space:nowrap;" | {{#if:{{{date|}}}|<div class=""><span class="datetime" style="visibility:hidden;font-size: 1px;">{{{date}}}</span><span class="countdown" style="float:left;"></span> {{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="twitchlink" style="float:left;margin-left:5px;color:#6745A6;white-space:nowrap;">&#8594;  [http://twitch.tv/{{{stream|}}} {{{stream|}}}]{{#if:{{{stream2|}}}|<span class="twitchlink" style="color:#6745A6;white-space:nowrap;">, [http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span>|}}</span>|}}}}</div>}}
 
| style="width:50%; white-space:nowrap;" | {{#if:{{{date|}}}|<div class=""><span class="datetime" style="visibility:hidden;font-size: 1px;">{{{date}}}</span><span class="countdown" style="float:left;"></span> {{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="twitchlink" style="float:left;margin-left:5px;color:#6745A6;white-space:nowrap;">&#8594;  [http://twitch.tv/{{{stream|}}} {{{stream|}}}]{{#if:{{{stream2|}}}|<span class="twitchlink" style="color:#6745A6;white-space:nowrap;">, [http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span>|}}</span>|}}}}</div>}}
 
| colspan="2" style="width:50%;text-align:right;overflow:hidden; text-overflow:ellipsis; max-width: 170px; vertical-align:middle; white-space:nowrap; font-size:11px; height:16px; margin-top:3px;" | {{#if:{{{event|}}}|[[{{{event|}}}]]|}}
 
| colspan="2" style="width:50%;text-align:right;overflow:hidden; text-overflow:ellipsis; max-width: 170px; vertical-align:middle; white-space:nowrap; font-size:11px; height:16px; margin-top:3px;" | {{#if:{{{event|}}}|[[{{{event|}}}]]|}}
|}&#10;</includeonly><noinclude>[[Category:Templates]]</noinclude>
+
|}&#10;</includeonly><noinclude>[[Category:Templates]]{{documentation}}</noinclude>

Revision as of 08:42, 18 February 2021

Documentation (view - edit)

Used to put an upcoming match in the spotlight on the startpage.

This particular template displays only 1 playername/teamname.

  • For a version with player/teamname + an array of players, see {{MatchAbbr}}.
  • For a version with 2 individual players with a common flag, see {{Match2on2}}.

Example

The code:

{{match|Mutilator|se|Rock|fi|date=20 February 2022 20:00|event=Duelmania Worldwide 2|info=Grudge Match|stream=hemostick}}

gives us:

Game in spotlight

Sweden Mutilator vs. Finland Rock
hemostick
Duelmania Worldwide 2

Tournaments

Upcoming
-webkit-baseline-middle Upcoming tournament 1 ?
-webkit-baseline-middle Upcoming tournament 2 ?