Difference between revisions of "Template:MapWinner"
From QWiki
m |
m (Added to Category:Templates) |
||
(40 intermediate revisions by the same user not shown) | |||
Line 45: | Line 45: | ||
--></tr></table>|<table style="background-color:inherit;"><tr><td style="padding:0px;font-size:8px;line-height:8px;"> </td><td rowspan="2" style="font-size:16px;width:30px;">{{#ifeq:{{{2|}}}|2|'''{{{4|}}}'''|{{{4|}}}}}</td></tr><tr><td style="padding:0px;font-size:8px;line-height:8px;"> </td></tr></table>}}</div><!-- | --></tr></table>|<table style="background-color:inherit;"><tr><td style="padding:0px;font-size:8px;line-height:8px;"> </td><td rowspan="2" style="font-size:16px;width:30px;">{{#ifeq:{{{2|}}}|2|'''{{{4|}}}'''|{{{4|}}}}}</td></tr><tr><td style="padding:0px;font-size:8px;line-height:8px;"> </td></tr></table>}}</div><!-- | ||
− | --><div style="padding-bottom:5px;padding-top:3px;color:#555;font-style:italic;">{{{1|}}}{{#if:{{{5|}}}|<br /><p style="color:#d66d00;line-height:100%;font-size:80%;display:flow-root;font-style:normal | + | --><div style="padding-bottom:5px;padding-top:3px;color:#555;font-style:italic;">{{{1|}}}{{#if:{{{5|}}}|<br /><p style="color:#d66d00;line-height:100%;font-size:80%;display:flow-root;font-style:normal;font-weight:bold;margin:-3px 0 -12px 0;">{{MapOT|{{{5|}}}}}</p>}}</div><!-- |
+ | -->{{#ifeq:{{{2|}}}|1|<div style="float:left;font-size:60%;font-weight:bold;color:#888;margin-left:5%;line-height:50%;">{{{6|}}}</div>|<div style="float:left;font-size:60%;color:#888;margin-left:5%;line-height:50%;">{{{6|}}}</div>|link=]]}}<!-- | ||
+ | |||
+ | -->{{#ifeq:{{{2|}}}|2|<div style="float:right;font-size:60%;font-weight:bold;color:#888;margin-right:5%;line-height:50%;">{{{7|}}}</div>|<div style="float:right;font-size:60%;color:#888;margin-right:5%;line-height:50%;">{{{7|}}}</div>|link=]]}}<!-- | ||
Storage of score in variables (later in SMW) | Storage of score in variables (later in SMW) | ||
Line 53: | Line 56: | ||
|1={{#vardefine:team1wins|{{#expr:{{#var:team1wins|0}} + 1}} }} | |1={{#vardefine:team1wins|{{#expr:{{#var:team1wins|0}} + 1}} }} | ||
|2={{#vardefine:team2wins|{{#expr:{{#var:team2wins|0}} + 1}} }} | |2={{#vardefine:team2wins|{{#expr:{{#var:team2wins|0}} + 1}} }} | ||
− | | }}</div></div></includeonly><noinclude>{{documentation}}[[Category: | + | | }}</div></div></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> |
Latest revision as of 09:16, 22 February 2021
Documentation (view - edit)
This template is used by {{BracketMatchSummary}} to render each map as a row within the match detail popup. It needs wrapping code to actually work, that's why you'll never call this template directly.
It shows mapname, score1, score2 and overtimes if set.
Example
38 | |
14 | |
aerowalk
2 overtimes
(The above rendering may look bad. It's a simulation. When in real use - by {{BracketMatchSummary}} - it gets the correct styling.)