Difference between revisions of "Template:BracketMatchPlayers"

From QWiki
(Created page with "<includeonly><div class="bracket-popup-header"> <div class="bracket-popup-header-left">{{{1|TBD}}} {{RaceIconSmall|{{{2|}}}}}</div> <div class="bracket-popup-header-right...")
 
m (Cleaning out all SMW stuff)
Tag: Replaced
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="bracket-popup-header">
 
<includeonly><div class="bracket-popup-header">
<div class="bracket-popup-header-left">{{{1|TBD}}}&nbsp;{{RaceIconSmall|{{{2|}}}}}</div>
+
<div class="bracket-popup-header-left"><span style="vertical-align:1px;">{{FlagNoLink/{{{2|}}}}}</span>&nbsp;{{{1|TBD}}}</div>
<div class="bracket-popup-header-right">{{RaceIconSmall|{{{4|}}}}}&nbsp;{{{3|TBD}}}</div>
+
<div class="bracket-popup-header-right">{{{3|TBD}}}&nbsp;<span style="vertical-align:1px;">{{FlagNoLink/{{{4|}}}}}</span></div>
</div>{{#ifeq:{{#var:disable_SMW_storage|}}|true||<!--
+
</div></includeonly><noinclude>{{documentation}}</noinclude>
 
 
Variables
 
 
 
-->{{#vardefine:player1|{{#replace:{{{1|}}}|&nbsp;|}}}}<!--
 
-->{{#vardefine:player2|{{#replace:{{{3|}}}|&nbsp;|}}}}<!--
 
-->{{#vardefine:p1race|{{{2|}}}}}<!--
 
-->{{#vardefine:p2race|{{{4|}}}}}<!--
 
 
 
SMW stuff to create a subobject for every map, most vars are taken from BracketMatchSummary
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}
 
|Has match vod={{#var:vod|}}
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|{{#var:player1|TBD}}}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|{{#var:player2|TBD}}}}
 
|has player left race={{#var:p1race|TBD}}
 
|has player right race={{#var:p2race|TBD}}<!--
 
 
 
Can't access flag from this template right now
 
 
 
|has player left flag={{#var:p1flag|TBD}}
 
|has player right flag={{#var:p2flag|TBD}}
 
 
 
-->|Has match date={{#var:Match_date}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
|Is finished={{#vardefineecho:finished|{{#ifeq:{{#var:finished|}}|true|true|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}}}}
 
|has winner={{#ifeq:{{#var:finished|false}}|true|{{#ifexpr:{{#var:player1wins|0}}>{{#var:player2wins|0}}|1|{{#ifexpr:{{#var:player1wins|0}}<{{#var:player2wins|0}}|2|}}}}}}
 
|has player left score={{#var:player1wins|0}}
 
|has player right score={{#var:player2wins|0}}
 
|Has match stream={{#var:stream|}}
 
}}<!--
 
 
 
 
 
Map 1
 
-->{{#if:{{#var:map1|}}|
 
{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map1|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_1
 
|has winning race={{#switch:{{#var:map1win|}}
 
  |1={{#var:m1p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m1p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map1win|}}
 
  |1={{#var:m1p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m1p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map1|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame1={{#var:vodgame1|}}
 
|is map number=1
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map1win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map1win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map1win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map1win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map1win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map1win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map1win|}}|draw|true|false}}|Has map date={{#var:Match_date}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}<!--
 
 
 
Map 2
 
-->{{#if:{{#var:map2_date|}}|{{#vardefine:Match_date|{{#var:map2_date|}}}}}}{{#if:{{#var:map2|}}|{{#ifeq:{{#var:map2win|}}|skip| |
 
{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map2|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_2
 
|has winning race={{#switch:{{#var:map2win|}}
 
  |1={{#var:m2p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m2p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map2win|}}
 
  |1={{#var:m2p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m2p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map2|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame2={{#var:vodgame2|}}
 
|is map number=2
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map2win|}}|draw|{{#var:player1|TBD}}}}
 
|has winner={{#switch:{{#var:map2win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map2win|}}|draw|{{#var:player2|TBD}}}}
 
|has loser={{#switch:{{#var:map2win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map2win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map2win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map2win|}}|draw|true|false}}|Has map date={{#var:map2_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}<!--
 
 
 
Map 3
 
-->{{#if:{{#var:map3_date|}}|{{#vardefine:Match_date|{{#var:map3_date|}}}}}}{{#if:{{#var:map3|}}|{{#ifeq:{{#var:map3win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map3|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_3
 
|has winning race={{#switch:{{#var:map3win|}}
 
    |1={{#var:m3p1race|{{#var:p1race|TBD}}}}
 
    |2={{#var:m3p2race|{{#var:p2race|TBD}}}}
 
    |#default=
 
}}
 
|has losing race={{#switch:{{#var:map3win|}}
 
  |1={{#var:m3p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m3p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map3|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame3={{#var:vodgame3|}}
 
|is map number=3
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map3win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map3win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map3win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map3win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map3win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map3win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map3win|}}|draw|true|false}}|Has map date={{#var:map3_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}<!--
 
-->}}<!--
 
-->}}<!--
 
 
 
Map 4
 
-->{{#if:{{#var:map4_date|}}|{{#vardefine:Match_date|{{#var:map4_date|}}}}}}{{#if:{{#var:map4|}}|{{#ifeq:{{#var:map4win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map4|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_4
 
|has winning race={{#switch:{{#var:map4win|}}
 
  |1={{#var:m4p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m4p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map4win|}}
 
  |1={{#var:m4p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m4p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map4|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame4={{#var:vodgame4|}}
 
|is map number=4
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map4win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map4win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map4win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map4win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map4win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map4win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map4win|}}|draw|true|false}}|Has map date={{#var:map4_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament name={{#var:tournament_name}}-->
 
|Has tournament tier={{#var:tournament_tier|}}
 
}}
 
}}
 
}}<!--
 
 
 
Map 5
 
-->{{#if:{{#var:map5_date|}}|{{#vardefine:Match_date|{{#var:map5_date|}}}}}}{{#if:{{#var:map5|}}|{{#ifeq:{{#var:map5win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map5|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_5
 
|has winning race={{#switch:{{#var:map5win|}}
 
  |1={{#var:m5p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m5p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map5win|}}
 
  |1={{#var:m5p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m5p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map5|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame5={{#var:vodgame5|}}
 
|is map number=5
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map5win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map5win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map5win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map5win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map5win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map5win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map5win|}}|draw|true|false}}|Has map date={{#var:map5_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}<!--
 
 
 
Map 6
 
-->{{#if:{{#var:map6_date|}}|{{#vardefine:Match_date|{{#var:map6_date|}}}}}}{{#if:{{#var:map6|}}|{{#ifeq:{{#var:map6win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map6|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_6
 
|has winning race={{#switch:{{#var:map6win|}}
 
  |1={{#var:m6p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m6p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map6win|}}
 
  |1={{#var:m6p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m6p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map6|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame6={{#var:vodgame6|}}
 
|is map number=6
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map6win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map6win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map6win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map6win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map6win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map6win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map6win|}}|draw|true|false}}|Has map date={{#var:map6_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}<!--
 
 
 
Map 7
 
-->{{#if:{{#var:map7_date|}}|{{#vardefine:Match_date|{{#var:map7_date|}}}}}}{{#if:{{#var:map7|}}|{{#ifeq:{{#var:map7win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map7|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_7
 
|has winning race={{#switch:{{#var:map7win|}}
 
  |1={{#var:m7p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m7p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map7win|}}
 
  |1={{#var:m7p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m7p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map7|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame7={{#var:vodgame7|}}
 
|is map number=7
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map7win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map7win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map7win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map7win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map7win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map7win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map7win|}}|draw|true|false}}|Has map date={{#var:map7_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}<!--
 
 
 
Map 8
 
-->{{#if:{{#var:map8_date|}}|{{#vardefine:Match_date|{{#var:map8_date|}}}}}}{{#if:{{#var:map8|}}|{{#ifeq:{{#var:map8win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map8|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_8
 
|has winning race={{#switch:{{#var:map8win|}}
 
  |1={{#var:m8p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m8p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map8win|}}
 
  |1={{#var:m8p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m8p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map8|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame8={{#var:vodgame8|}}
 
|is map number=8
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map8win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map8win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map8win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map8win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map8win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map8win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map8win|}}|draw|true|false}}|Has map date={{#var:map8_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}<!--
 
 
 
Map 9
 
-->{{#if:{{#var:map9_date|}}|{{#vardefine:Match_date|{{#var:map9_date|}}}}}}{{#if:{{#var:map9|}}|{{#ifeq:{{#var:map9win|}}|skip| |<!--
 
-->{{#subobject:{{#var:player1|TBD}}_vs_{{#var:player2|TBD}}_on_{{#var:map9|}}_at_{{#var:Raw_Match_date|}}_in_Match_{{#var:match_number|TBD}}_Map_9
 
|has winning race={{#switch:{{#var:map9win|}}
 
  |1={{#var:m9p1race|{{#var:p1race|TBD}}}}
 
  |2={{#var:m9p2race|{{#var:p2race|TBD}}}}
 
  |#default=
 
}}
 
|has losing race={{#switch:{{#var:map9win|}}
 
  |1={{#var:m9p2race|{{#var:p2race|TBD}}}}
 
  |2={{#var:m9p1race|{{#var:p1race|TBD}}}}
 
  |#default=
 
}}
 
|is played on={{#explode:{{#var:map9|}}|{{!}}|0}}
 
<!-- Commented out as the data is not used yet
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame9={{#var:vodgame9|}}
 
|is map number=9
 
|has player left={{#var:player1|TBD}}
 
|has player right={{#var:player2|TBD}}
 
|has player 1={{#ifeq:{{#var:map9win|}}|draw|{{#var:player1|TBD}} }}
 
|has winner={{#switch:{{#var:map9win|}}
 
  |1={{#var:player1|TBD}}
 
  |2={{#var:player2|TBD}}
 
  |#default=
 
}}
 
|has player 2={{#ifeq:{{#var:map9win|}}|draw|{{#var:player2|TBD}} }}
 
|has loser={{#switch:{{#var:map9win|}}
 
  |1={{#var:player2|TBD}}
 
  |2={{#var:player1|TBD}}
 
  |#default=
 
}}
 
|has player left page={{#var:{{#var:player1|TBD}}_page|TBD}}
 
|has player right page={{#var:{{#var:player2|TBD}}_page|TBD}}
 
|has winner page={{#switch:{{#var:map9win|}}
 
  |1={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|has loser page={{#switch:{{#var:map9win|}}
 
  |1={{#var:{{#var:player2|TBD}}_page|TBD}}
 
  |2={{#var:{{#var:player1|TBD}}_page|TBD}}
 
  |#default=
 
}}
 
|is draw={{#ifeq:{{#var:map9win|}}|draw|true|false}}|Has map date={{#var:map9_date|{{#var:Match_date}}}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament tier={{#var:tournament_tier|}}-->
 
}}
 
}}
 
}}}}<!--
 
-->{{#vardefine:player1wins|0}}<!--
 
-->{{#vardefine:player2wins|0}}<!--
 
-->{{#vardefine:finished|}}</includeonly><noinclude>{{documentation}}</noinclude>
 

Latest revision as of 08:12, 24 March 2021

Documentation (view - edit)

BracketMatchPlayers.png

This is a subtemplate that you will never use directly.

It only renders the header row of the popups.

It handles Player/team1 and Player/team1flag to the left, and Player/team2 + Player/team2flag to the right.

After it, {{BracketMatchSummary}} renders all rows below, like date, maps, scores, overtime, etc.

BracketMatchPlayers2

BracketMatchPlayers2.png

For 2on2 contexts, used only by certain brackets ending with '2on2' , where you want both teamname and teamlineups shown in the header, see {{BracketMatchPlayers2}}.

It handles team1, team1flag and team1lineup to the left, and team2, team2flag and team2lineup to the right.



Adapted from Liquipedia