Difference between revisions of "Template:MapWinner"
From QWiki
m |
m |
||
Line 7: | Line 7: | ||
--><table style="background-color:inherit;line-height:100%;"><tr><!-- | --><table style="background-color:inherit;line-height:100%;"><tr><!-- | ||
--><td rowspan="2" style="font-size:16px;width:30px;">{{#expr:{{#if:{{{6|}}}|{{{6}}}|0}}+{{#if:{{{7|}}}|{{{7}}}|0}}+{{#if:{{{11|}}}|{{{11}}}|0}}+{{#if:{{{12|}}}|{{{12}}}|0}}+{{#if:{{{16|}}}|{{{16}}}|0}}+{{#if:{{{17|}}}|{{{17}}}|0}}+{{#if:{{{21|}}}|{{{21}}}|0}}+{{#if:{{{22|}}}|{{{22}}}|0}}+{{#if:{{{26|}}}|{{{26}}}|0}}+{{#if:{{{27|}}}|{{{27}}}|0}}+{{#if:{{{31|}}}|{{{31}}}|0}}+{{#if:{{{32|}}}|{{{32}}}|0}}+{{#if:{{{36|}}}|{{{36}}}|0}}+{{#if:{{{37|}}}|{{{37}}}|0}}}}</td><!-- | --><td rowspan="2" style="font-size:16px;width:30px;">{{#expr:{{#if:{{{6|}}}|{{{6}}}|0}}+{{#if:{{{7|}}}|{{{7}}}|0}}+{{#if:{{{11|}}}|{{{11}}}|0}}+{{#if:{{{12|}}}|{{{12}}}|0}}+{{#if:{{{16|}}}|{{{16}}}|0}}+{{#if:{{{17|}}}|{{{17}}}|0}}+{{#if:{{{21|}}}|{{{21}}}|0}}+{{#if:{{{22|}}}|{{{22}}}|0}}+{{#if:{{{26|}}}|{{{26}}}|0}}+{{#if:{{{27|}}}|{{{27}}}|0}}+{{#if:{{{31|}}}|{{{31}}}|0}}+{{#if:{{{32|}}}|{{{32}}}|0}}+{{#if:{{{36|}}}|{{{36}}}|0}}+{{#if:{{{37|}}}|{{{37}}}|0}}}}</td><!-- | ||
− | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{ | + | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{99|}}}|t|<span style="color:#ff0000;">{{{6|}}}</span>|<span style="color:#0000ff;">{{{7|}}}</span>}}</td><!-- |
-->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{11|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{12|}}}</span></td>}}<!-- | -->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{11|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{12|}}}</span></td>}}<!-- | ||
-->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{16|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{17|}}}</span></td>}}<!-- | -->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{16|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{17|}}}</span></td>}}<!-- | ||
Line 15: | Line 15: | ||
-->{{#ifeq:{{{35|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{36|}}}</span></td>}}{{#ifeq:{{{35|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{37|}}}</span></td>}}<!-- | -->{{#ifeq:{{{35|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{36|}}}</span></td>}}{{#ifeq:{{{35|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{37|}}}</span></td>}}<!-- | ||
--></tr><tr><!-- | --></tr><tr><!-- | ||
− | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{ | + | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{99|}}}|t|<span style="color:#0000ff;">{{{7|}}}</span>|<span style="color:#ff0000;">{{{6|}}}</span>}}</td><!-- |
-->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{12|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{11|}}}</span></td>}}<!-- | -->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{12|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{11|}}}</span></td>}}<!-- | ||
-->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{17|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{16|}}}</span></td>}}<!-- | -->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{17|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{16|}}}</span></td>}}<!-- | ||
Line 33: | Line 33: | ||
-->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{19|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{18|}}}</span></td>}}<!-- | -->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{19|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{18|}}}</span></td>}}<!-- | ||
-->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{14|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{13|}}}</span></td>}}<!-- | -->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{14|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{13|}}}</span></td>}}<!-- | ||
− | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{ | + | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{99|}}}|t|<span style="color:#0000ff;">{{{9|}}}</span>|<span style="color:#ff0000;">{{{8|}}}</span>}}</td><!-- |
--><td rowspan="2" style="font-size:16px;width:30px;">{{#expr:{{#if:{{{8|}}}|{{{8}}}|0}}+{{#if:{{{9|}}}|{{{9}}}|0}}+{{#if:{{{13|}}}|{{{13}}}|0}}+{{#if:{{{14|}}}|{{{14}}}|0}}+{{#if:{{{18|}}}|{{{18}}}|0}}+{{#if:{{{19|}}}|{{{19}}}|0}}+{{#if:{{{23|}}}|{{{23}}}|0}}+{{#if:{{{24|}}}|{{{24}}}|0}}+{{#if:{{{28|}}}|{{{28}}}|0}}+{{#if:{{{29|}}}|{{{29}}}|0}}+{{#if:{{{33|}}}|{{{33}}}|0}}+{{#if:{{{34|}}}|{{{34}}}|0}}+{{#if:{{{38|}}}|{{{38}}}|0}}+{{#if:{{{39|}}}|{{{39}}}|0}}}}</td><!-- | --><td rowspan="2" style="font-size:16px;width:30px;">{{#expr:{{#if:{{{8|}}}|{{{8}}}|0}}+{{#if:{{{9|}}}|{{{9}}}|0}}+{{#if:{{{13|}}}|{{{13}}}|0}}+{{#if:{{{14|}}}|{{{14}}}|0}}+{{#if:{{{18|}}}|{{{18}}}|0}}+{{#if:{{{19|}}}|{{{19}}}|0}}+{{#if:{{{23|}}}|{{{23}}}|0}}+{{#if:{{{24|}}}|{{{24}}}|0}}+{{#if:{{{28|}}}|{{{28}}}|0}}+{{#if:{{{29|}}}|{{{29}}}|0}}+{{#if:{{{33|}}}|{{{33}}}|0}}+{{#if:{{{34|}}}|{{{34}}}|0}}+{{#if:{{{38|}}}|{{{38}}}|0}}+{{#if:{{{39|}}}|{{{39}}}|0}}}}</td><!-- | ||
--></tr><tr><!-- | --></tr><tr><!-- | ||
Line 42: | Line 42: | ||
-->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{18|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{19|}}}</span></td>}}<!-- | -->{{#ifeq:{{{15|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{18|}}}</span></td>}}{{#ifeq:{{{15|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{19|}}}</span></td>}}<!-- | ||
-->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{13|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{14|}}}</span></td>}}<!-- | -->{{#ifeq:{{{10|}}}|t|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#ff0000;">{{{13|}}}</span></td>}}{{#ifeq:{{{10|}}}|ct|<td style="padding:0px;font-size:8px;line-height:8px;"><span style="color:#0000ff;">{{{14|}}}</span></td>}}<!-- | ||
− | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{ | + | --><td style="padding:0px;font-size:8px;line-height:8px;">{{#ifeq:{{{99|}}}|t|<span style="color:#ff0000;">{{{8|}}}</span>|<span style="color:#0000ff;">{{{9|}}}</span>}}</td><!-- |
--></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;{{#ifeq:{{{2|}}}|skip|text-decoration: line-through;}}">{{abbr|{{{1|}}}|Map}}{{#ifeq:{{lc:{{{2|}}}}}|draw| ''(Draw)''}}{{#if:{{{map1ot|}}}|{{MapOT|{{{ | + | --><div style="padding-bottom:5px;padding-top:3px;{{#ifeq:{{{2|}}}|skip|text-decoration: line-through;}}">{{abbr|{{{1|}}}|Map}}{{#ifeq:{{lc:{{{2|}}}}}|draw| ''(Draw)''}}{{#if:{{{map1ot|}}}|{{MapOT|{{{5|}}}}} overtime}}</div><!-- |
Storage of score in variables (later in SMW) | Storage of score in variables (later in SMW) |
Revision as of 22:33, 15 December 2017
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
(The above rendering may look bad. It's a simulation. When in real use - by {{BracketMatchSummary}} - it gets the correct styling.)