Difference between revisions of "Template:MatchMaps"

From QWiki
m
m
Line 1: Line 1:
<includeonly>{{#if:{{{title|}}}|<tr><th colspan="4">{{{title}}}</th></tr>}}<!--
+
<includeonly>{{#if:{{{date|}}}|<tr><!--
-->{{#if:{{{date|}}}|<tr><!--
+
-->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}<!--
-->{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|- |}}}}<!--
+
-->{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|-}}}}<!--
-->{{#vardefine:Raw_Match_date|{{#explode:{{{date|}}}|<|0}}}}<!--
+
-->{{#vardefine:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}<!--
-->{{#vardefine:disable_SMW_storage|{{{disable_SMW_storage|}}}}}<!--
+
--><td colspan="4" style="font-weight:bold; background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px;"><center>{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span class="countdown" style="font-weight:normal"></span>}}</center></td>
--><td colspan="4" style="font-weight:bold; background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px; text-align:center;">{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span style="font-weight:normal" class="countdown"></span>}}</td>
+
</tr><!--
</tr>}}<!--
+
-->}}<tr class="match-row">
--><tr>
+
<td class="matchlistslot" width="42%" align="right" {{#ifeq:{{{winner|}}}|1|style="font-weight:bold; background-color:#cfc"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold; background-color:#FFFFBB"}}><!--
<td class="matchlistslot" width="44%" align="right" {{#ifeq:{{{winner|}}}|1|style="font-weight:bold; background-color:#cfc"}}> {{player2|link={{{playerlink1|{{{playerlink|false}}}}}}|flag={{{player1flag|}}}|race={{{player1race|}}}|{{{player1}}}}}{{#ifexist:{{{player1partner}}}|<br />{{player2|link={{{playerpartnerlink1|{{{playerlink|false}}}}}}|flag={{{player1partnerflag|}}}|race={{{player1partnerrace|}}}|{{{player1partner}}}}}|}}</td>
+
--> {{#if:{{{player1|}}}|{{{player1}}}}} <!--
<td width="6%" align="center" {{#switch:{{{walkover|}}}|1=style="font-weight:bold;"> W|2=> -|0=> -|{{#ifeq:{{{winner|}}}|1|style="font-weight:bold;"}}> {{#expr:
+
--></td>
{{#ifeq:{{{map1win|}}}|1|1|0}}+
+
<td width="8%" align="center" {{#switch:{{{walkover|}}}|1=style="font-weight:bold;"> W|2=> -|{{#ifeq:{{{winner|}}}|1|style="font-weight:bold;"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold;"}}> {{#if:{{{games1|}}}|{{{games1}}}|0}}}}<!--
{{#ifeq:{{{map2win|}}}|1|1|0}}+
+
-->{{#if:{{{details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{#expr:({{{width|300}}}-580)/2}}px;"><div class="bracket-popup">
{{#ifeq:{{{map3win|}}}|1|1|0}}+
+
<div class="bracket-popup-header">
{{#ifeq:{{{map4win|}}}|1|1|0}}+
+
<div class="bracket-popup-header-left">{{#if:{{{player1|}}}|{{{player1}}}}} <!--
{{#ifeq:{{{map5win|}}}|1|1|0}}+
+
--> {{#if:{{{team1cstrike|}}}|{{team2Short/cstrike|{{{team1cstrike}}}}}}} <!--
{{#ifeq:{{{map6win|}}}|1|1|0}}+
+
--> {{#if:{{{team1css|}}}|{{team2Short/css|{{{team1css}}}}}}} <!--
{{#ifeq:{{{map7win|}}}|1|1|0}}+
+
--> {{#if:{{{team1csgo|}}}|{{team2Short/csgo|{{{team1csgo}}}}}}}</div>
{{#ifeq:{{{map8win|}}}|1|1|0}}+
+
<div class="bracket-popup-header-right">{{#if:{{{team2|}}}|{{teamShort/{{lc:{{{team2}}}}}}}}} <!--
{{#ifeq:{{{map9win|}}}|1|1|0}}}}}}</td>
+
--> {{#if:{{{team2cstrike|}}}|{{teamShort/cstrike|{{{team2cstrike}}}}}}} <!--
<td width="6%" align="center" {{#switch:{{{walkover|}}}|2=style="font-weight:bold;"> W|1=> -|0=> -|{{#ifeq:{{{winner|}}}|2|style="font-weight:bold;"}}> {{#expr:
+
--> {{#if:{{{team2css|}}}|{{teamShort/css|{{{team2css}}}}}}} <!--
{{#ifeq:{{{map1win|}}}|2|1|0}}+
+
--> {{#if:{{{team2csgo|}}}|{{teamShort/csgo|{{{team2csgo}}}}}}}</div>
{{#ifeq:{{{map2win|}}}|2|1|0}}+
+
</div>
{{#ifeq:{{{map3win|}}}|2|1|0}}+
+
{{{details}}}<!--
{{#ifeq:{{{map4win|}}}|2|1|0}}+
+
--> </div></div>}}<!--
{{#ifeq:{{{map5win|}}}|2|1|0}}+
+
--></td>
{{#ifeq:{{{map6win|}}}|2|1|0}}+
+
<td width="8%" align="center" {{#switch:{{{walkover|}}}|2=style="font-weight:bold;"> W|1=> -|{{#ifeq:{{{winner|}}}|2|style="font-weight:bold;"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold;"}}> {{#if:{{{games2|}}}|{{{games2}}}|0}}}}</td>
{{#ifeq:{{{map7win|}}}|2|1|0}}+
+
<td class="matchlistslot" width="42%" {{#ifeq:{{{winner|}}}|2|style="font-weight:bold; background-color:#cfc"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold; background-color:#FFFFBB"}}><!--
{{#ifeq:{{{map8win|}}}|2|1|0}}+
+
-->{{#if:{{{player2|}}}|{{{player2}}}}} <!--
{{#ifeq:{{{map9win|}}}|2|1|0}}}}}}</td>
+
--></td>
<td class="matchlistslot" width="44%" align="left" {{#ifeq:{{{winner|}}}|2|style="font-weight:bold; background-color:#cfc"}}> {{player|link={{{playerlink2|{{{playerlink|false}}}}}}|flag={{{player2flag|}}}|race={{{player2race|}}}|{{{player2}}}}}{{#ifexist:{{{player2partner}}}|<br />{{player|link={{{playerpartnerlink2|{{{playerlink|false}}}}}}|flag={{{player2partnerflag|}}}|race={{{player2partnerrace|}}}|{{{player2partner}}}}}|}}</td>
 
{{#if:{{{map1|}}} {{{map2|}}} {{{map3|}}} {{{map4|}}} {{{map5|}}} {{{map6|}}} {{{map7|}}} {{{map8|}}} {{{map9|}}} |</tr><tr class="maprow">
 
<td colspan="4" style="font-size:85%; line-height:130%; text-align:left;">
 
{{#if:{{{map1|}}}|{{MapWinner|{{{map1|}}}|{{{map1win|}}}}}}}<!--
 
-->{{#if:{{{map2|}}}|{{MapWinner|{{{map2|}}}|{{{map2win|}}}}}}}<!--
 
-->{{#if:{{{map3|}}}|{{MapWinner|{{{map3|}}}|{{{map3win|}}}}}}}<!--
 
-->{{#if:{{{map4|}}}|{{MapWinner|{{{map4|}}}|{{{map4win|}}}}}}}<!--
 
-->{{#if:{{{map5|}}}|{{MapWinner|{{{map5|}}}|{{{map5win|}}}}}}}<!--
 
-->{{#if:{{{map6|}}}|{{MapWinner|{{{map6|}}}|{{{map6win|}}}}}}}<!--
 
-->{{#if:{{{map7|}}}|{{MapWinner|{{{map7|}}}|{{{map7win|}}}}}}}<!--
 
-->{{#if:{{{map8|}}}|{{MapWinner|{{{map8|}}}|{{{map8win|}}}}}}}<!--
 
-->{{#if:{{{map9|}}}|{{MapWinner|{{{map9|}}}|{{{map9win|}}}}}}}</td>}}
 
 
</tr><!--
 
</tr><!--
-->{{#if:{{{preview|}}} {{{lrthread|}}} {{{vod|}}} {{{vodgame1|}}} {{{vodgame2|}}} {{{vodgame3|}}} {{{vodgame4|}}} {{{vodgame5|}}} {{{vodgame6|}}} {{{vodgame7|}}} {{{vodgame8|}}}{{{vodgame9|}}} {{{interview|}}} {{{review|}}} {{{recap|}}}|<tr class="maprow plainlinks"><td colspan="4" align="center"><!--
 
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
 
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
 
-->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}|15px|Watch VOD]]}} <!--
 
-->{{#if:{{{vodgame1|}}}|{{{vodgame1|}}}}} <!--
 
-->{{#if:{{{vodgame2|}}}|{{{vodgame2|}}}}} <!--
 
-->{{#if:{{{vodgame3|}}}|{{{vodgame3|}}}}} <!--
 
-->{{#if:{{{vodgame4|}}}|{{{vodgame4|}}}}} <!--
 
-->{{#if:{{{vodgame5|}}}|{{{vodgame5|}}}}} <!--
 
-->{{#if:{{{vodgame6|}}}|{{{vodgame6|}}}}} <!--
 
-->{{#if:{{{vodgame7|}}}|{{{vodgame7|}}}}} <!--
 
-->{{#if:{{{vodgame8|}}}|{{{vodgame8|}}}}} <!--
 
-->{{#if:{{{vodgame9|}}}|{{{vodgame9|}}}}} <!--
 
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Recap]]}}<!--
 
-->{{#if:{{{recap|}}}|[[File:Writers_Icon.png|link={{{recap}}}|15px|Recap]]}}<!--
 
--></td></tr>}}<!--
 
-->{{#if:{{{comment|}}}|<tr>
 
<td colspan="4">{{{comment}}}</td>
 
</tr>}}{{#ifeq:{{#var:disable_SMW_storage|}}|true||<!--
 
 
Big junk of SMW
 
  
Map 1
+
Variables transformations
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{#ifeq:{{{map1|}}}||TBA|{{{map1|}}}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_1
+
-->{{#vardefine:player1|{{#ifeq:{{{player1|}}}||TBD|{{#ifeq:{{{player1|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{lc:{{{team1|}}}}}}}|link=|1}}|]]|0}} }}}}}}<!--
|has player left={{{player1|TBD}}}
+
-->{{#vardefine:player2|{{#ifeq:{{{player2|}}}||TBD|{{#ifeq:{{{player2|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{lc:{{{team2|}}}}}}}|link=|1}}|]]|0}} }}}}}}<!--
|has player right={{{player2|TBD}}}
+
SMW storage
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
+
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map1win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map1win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map1win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map1win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map1win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map1win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map1win|}}}
 
  |1={{{map1p1race|{{{player1race|}}}}}}
 
  |2={{{map1p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map1win|}}}
 
  |1={{{map1p2race|{{{player2race|}}}}}}
 
  |2={{{map1p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
 
|is map number=1
 
|is map number=1
|is draw={{#ifeq:{{{map1win|}}}|draw|true|false}}
+
|has team left={{#var:player|TBD}}
|is played on={{#explode:{{{map1|}}}|{{!}}|0}}
+
|has team right={{#var:player2|TBD}}
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
+
|Has map date={{#var:Match_date}}{{#var:timezone}}
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}<!--
 
 
 
Map 2
 
-->{{#if:{{{map2|}}}|{{#ifeq:{{{map2win|}}}|skip| |
 
{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map2|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_2
 
|is map number=2
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map2win|}}}|draw|{{{player1|TBD}}}}}
 
|has winner={{#switch:{{{map2win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map2win|}}}|draw|{{{player2|TBD}}}}}
 
|has loser={{#switch:{{{map2win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map2win|}}}
 
  |1={{{map2p1race|{{{player1race|}}}}}}
 
  |2={{{map2p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map2win|}}}
 
  |1={{{map2p2race|{{{player2race|}}}}}}
 
  |2={{{map2p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map2win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map2win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map2win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map2|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 3
 
-->{{#if:{{{map3|}}}|{{#ifeq:{{{map3win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map3|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_3
 
|is map number=3
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map3win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map3win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map3win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map3win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map3win|}}}
 
    |1={{{map3p1race|{{{player1race|}}}}}}
 
    |2={{{map3p2race|{{{player2race|}}}}}}
 
    |#default=
 
}}
 
|has losing race={{#switch:{{{map3win|}}}
 
  |1={{{map3p2race|{{{player2race|}}}}}}
 
  |2={{{map3p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map3win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map3win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map3win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map3|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}<!--
 
-->}}<!--
 
-->}}<!--
 
 
 
Map 4
 
-->{{#if:{{{map4|}}}|{{#ifeq:{{{map4win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map4|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_4
 
|is map number=4
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map4win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map4win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map4win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map4win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map4win|}}}
 
  |1={{{map4p1race|{{{player1race|}}}}}}
 
  |2={{{map4p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map4win|}}}
 
  |1={{{map4p2race|{{{player2race|}}}}}}
 
  |2={{{map4p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map4win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map4win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map4win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map4|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 5
 
-->{{#if:{{{map5|}}}|{{#ifeq:{{{map5win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map5|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_5
 
|is map number=5
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map5win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map5win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map5win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map5win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map5win|}}}
 
  |1={{{map5p1race|{{{player1race|}}}}}}
 
  |2={{{map5p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map5win|}}}
 
  |1={{{map5p2race|{{{player2race|}}}}}}
 
  |2={{{map5p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map5win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map5win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map5win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map5|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 6
 
-->{{#if:{{{map6|}}}|{{#ifeq:{{{map6win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map6|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_6
 
|is map number=6
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map6win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map6win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map6win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map6win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map6win|}}}
 
  |1={{{map6p1race|{{{player1race|}}}}}}
 
  |2={{{map6p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map6win|}}}
 
  |1={{{map6p2race|{{{player2race|}}}}}}
 
  |2={{{map6p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map6win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map6win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map6win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map6|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 7
 
-->{{#if:{{{map7|}}}|{{#ifeq:{{{map7win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map7|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_7
 
|is map number=7
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map7win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map7win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map7win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map7win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map7win|}}}
 
  |1={{{map7p1race|{{{player1race|}}}}}}
 
  |2={{{map7p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map7win|}}}
 
  |1={{{map7p2race|{{{player2race|}}}}}}
 
  |2={{{map7p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map7win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map7win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map7win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map7|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 8
 
-->{{#if:{{{map8|}}}|{{#ifeq:{{{map8win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map8|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_8
 
|is map number=8
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map8win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map8win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map8win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map8win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map8win|}}}
 
  |1={{{map8p1race|{{{player1race|}}}}}}
 
  |2={{{map8p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map8win|}}}
 
  |1={{{map8p2race|{{{player2race|}}}}}}
 
  |2={{{map8p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map8win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map8win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map8win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map8|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 9
 
-->{{#if:{{{map9|}}}|{{#ifeq:{{{map9win|}}}|skip| |<!--
 
-->{{#subobject:{{{player1|TBD}}}_vs_{{{player2|TBD}}}_on_{{{map9|TBA}}}_at_{{#var:Raw_Match_date|{{#var:Raw_Group_date|TBD}}}}_in_Match_{{#var:match_number|TBD}}_Map_9
 
|is map number=9
 
|has player left={{{player1|TBD}}}
 
|has player right={{{player2|TBD}}}
 
|has player left page={{#var:{{{player1|TBD}}}_page|TBD}}
 
|has player right page={{#var:{{{player2|TBD}}}_page|TBD}}
 
|has player 1={{#ifeq:{{{map9win|}}}|draw|{{{player1|TBD}}} }}
 
|has winner={{#switch:{{{map9win|}}}
 
  |1={{{player1|TBD}}}
 
  |2={{{player2|TBD}}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{{map9win|}}}|draw|{{{player2|TBD}}} }}
 
|has loser={{#switch:{{{map9win|}}}
 
  |1={{{player2|TBD}}}
 
  |2={{{player1|TBD}}}
 
  |#default=
 
}}
 
|has winning race={{#switch:{{{map9win|}}}
 
  |1={{{map9p1race|{{{player1race|}}}}}}
 
  |2={{{map9p2race|{{{player2race|}}}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{{map9win|}}}
 
  |1={{{map9p2race|{{{player2race|}}}}}}
 
  |2={{{map9p1race|{{{player1race|}}}}}}
 
  |#default=
 
}}
 
|has winner page={{#switch:{{{map9win|}}}
 
  |1={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{{map9win|}}}
 
  |1={{#var:{{{player2|TBD}}}_page|TBD}}
 
  |2={{#var:{{{player1|TBD}}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{{map9win|}}}|draw|true|false}}
 
|is played on={{#explode:{{{map8|}}}|{{!}}|0}}
 
|Has map date={{#var:Match_date|{{#var:Group_date|}}}}{{#var:timezone}}
 
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
|Has tournament tier={{#var:tournament_tier|}}
}}
+
|Has match stream={{{stream|{{#var:stream|}}}}}
}}
+
|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}}
}}}}<!--
+
|Has tournament icon={{#var:tournament_icon|}}
--></includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Templates]]</noinclude>
+
|Is finished={{#if:{{#var:finished|}}|{{#var:finished|}}|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}}
 +
|Has team left score={{#var:player1wins|0}}
 +
|Has team right score={{#var:player2wins|0}}
 +
|has exact time={{#if:{{#var:timezone|}}|true|false}}
 +
}}{{#vardefine:player1wins|0}}{{#vardefine:player2wins|0}}{{#vardefine:finished|false}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 06:03, 12 March 2017

Documentation (view - edit)

Related templates:

This template is used wrapped inside {{MatchList}} to display rows of matches in a group, expanded or hidden. It supports an unlimited number of matches, with each match being up to best of nine.

A big way this template differs from most others is that you will use another template, {{MatchList}}, surrounding the MatchMaps template(s).

Enclosing MatchList title
Team winning 2
Team winning
December 29, 20:00 UTC
NoCheck.png
92 
 
GreenCheck.png
 231
 
dm2
dot, Zepp, gor, gLAd
bps, raket, ok98, shaka
GreenCheck.png
230 
 
NoCheck.png
 221
 
e1m2
dot, Zepp, gor, gLAd
bps, raket, ok98, tumult
GreenCheck.png
235 
 
NoCheck.png
 126
 
dm3
dot, Zepp, gor, gLAd
bps, raket, ok98, shaka
You may use |comment= for additional info.
Like, "Player X dropped half way into map3."
1 Team losing
Team winning on walkover W
Team winning on walkover
December 29
You may use |comment= to explain why the WO was given.
Like, "Team X never showed up."
- Team losing on walkover
Team draw 1
Team draw
December 29, 20:00 UTC
You may use |comment= for additional info.
Like, "Map3 was cancelled."
1 Team draw
Team1 in voided match 0 0 Team2 in voided match

MatchMaps

|title=
(Optional) set to add a title in a separate row before the set of matches.
|date=
(Optional) set the date of the match, or date with time (format: February 21, 2021 18:10 CEST). If the date is in the future, a countdown will show. It will display above the match, as a gray header row.
|player1=
|player2=
set the name of the player 1 & 2.
|player1flag=
|player2flag=
set the flag for player 1 & 2 with the two letter ISO code.
|player1link=
|player2link=
(Optional) set an alternate link for the player.
|winner=  1 or 2 
set the winner of the match with "1" or "2". Scores will show.
|walkover=  1 or 2 
set the winner of the match by walkover to "1" or "2". Scores don't show, but the winner will show  WO  and the loser will show   -  
|winner=  draw 
set if the game was a draw. Scores will show (and should be equivalent).
|winner=  void 
set if the game was voided. No scores will show.
|mapX=
set the name of the map.
|mapXwin=
set the winner of the map with "1" or "2".
|comment=
(Optional) to add a comment after the set of match results.

Copy/Paste

{{MatchList
|width=100%
|title=My matchlist title
|hide=false

|match1={{MatchMaps
|player1= |player1flag=
|player2= |player2flag=
|winner=
|walkover=
|games1= |games2=
|details={{BracketMatchSummary
|date=
|comment=
|map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot=
|map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot=
|map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot=
}}
}}

|match2={{MatchMaps
|player1= |player1flag=
|player2= |player2flag=
|winner=
|walkover=
|games1= |games2=
|details={{BracketMatchSummary
|date=
|comment=
|map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot=
|map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot=
|map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot=
}}
}}

|match3={{MatchMaps
|player1= |player1flag=
|player2= |player2flag=
|winner=
|walkover=
|games1= |games2=
|details={{BracketMatchSummary
|date=
|comment=
|map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot=
|map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot=
|map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot=
}}
}}

|match4={{MatchMaps
|player1= |player1flag=
|player2= |player2flag=
|winner=
|walkover=
|games1= |games2=
|details={{BracketMatchSummary
|date=
|comment=
|map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot=
|map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot=
|map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot=
}}
}}

<!-- Copy/paste blocks of matches to the number of matches you need, remember to change |matchX, and don't forget the ending '}}' following this comment, which ends the list. This comment can safely be removed. -->

}}



Adapted from Liquipedia