Difference between revisions of "Template:Match"

From QWiki
(First test of template for upcoming match with countdown and streamlink)
 
m (Overhaul of Match template)
Line 1: Line 1:
{| style="width:100%;"
+
<includeonly>{|  
| style="width:48%;" |{{player|{{{1|}}}|flag={{{2|}}}}}
+
| style="width:48%;height:30px;" |{{player|{{{1|}}}|flag={{{2|}}}}}
| style="width:4%;" |vs
+
| style="width:4%;" |vs.
| style="width:48%;text-align:right;" |{{player|{{player|{{{3|}}}|flag={{{4|}}}}}
+
| style="width:48%;text-align:right;" |{{player|{{{3|}}}|flag={{{4|}}}}}
|-  
+
|- style="vertical-align:middle; font-size:11px; height:16px; margin-top:3px;border-top:1px solid #DEDACF;"
| style="width:50%;; white-space:nowrap;" | {{#if:{{{date|}}}|<div class="bracket-popup-body-time">{{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="hasStream">[http://twitch.tv/{{{stream|}}} {{{stream|}}}] {{#if:{{{stream2|}}}|<span class="hasStream">[http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span><br />|}}</span><br />|}}<span class="datetime">{{{date}}}</span><br /><span class="countdown"></span>}}</div>}}
 
 
{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}
 
{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}
| colspan="2" style="width:50%;text-align:right;white-space:nowrap; text-overflow:ellipsis; vertical-align:middle; font-size:11px; height:16px; margin-top:3px;" | [[{{{event|}}}]]
+
| 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>}}
|}&#10;
+
| 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>

Revision as of 20:41, 15 February 2021