Difference between revisions of "Template:4DEBracket"

From QWiki
(Copy/paste from http://wiki.teamliquid.net/starcraft2/index.php?title=Template:4DEBracket&action=edit)
 
m
Line 7: Line 7:
 
<div class="bracket-player-top" style="{{#if:{{{R1D1race|}}}|background:{{RaceColor|{{{R1D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D1flag|}}}|{{FlagNoLink/{{lc:{{{R1D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D1|R1D1}}}</span><div class="bracket-score" style="width:21px">{{{R1D1score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R1D1race|}}}|background:{{RaceColor|{{{R1D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D1flag|}}}|{{FlagNoLink/{{lc:{{{R1D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D1|R1D1}}}</span><div class="bracket-score" style="width:21px">{{{R1D1score|}}}</div></div></div>
 
{{#if:{{{R1G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R1G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R1D1|}}}|{{{R1D1}}}|TBD}}|{{{R1D1race|}}}|{{#if:{{{R1D2|}}}|{{{R1D2}}}|TBD}}|{{{R1D2race|}}}}} {{{R1G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R1D1|}}}|{{{R1D1}}}|TBD}}|{{{R1D1flag|}}}|{{#if:{{{R1D2|}}}|{{{R1D2}}}|TBD}}|{{{R1D2flag|}}}}} {{{R1G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D2race|}}}|background:{{RaceColor|{{{R1D2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D2flag|}}}|{{FlagNoLink/{{lc:{{{R1D2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D2|R1D2}}}</span><div class="bracket-score" style="width:21px">{{{R1D2score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D2race|}}}|background:{{RaceColor|{{{R1D2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D2flag|}}}|{{FlagNoLink/{{lc:{{{R1D2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D2|R1D2}}}</span><div class="bracket-score" style="width:21px">{{{R1D2score|}}}</div></div></div>
Line 15: Line 15:
 
<div class="bracket-player-top" style="{{#if:{{{R1D3race|}}}|background:{{RaceColor|{{{R1D3race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D3flag|}}}|{{FlagNoLink/{{lc:{{{R1D3flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D3|R1D3}}}</span><div class="bracket-score" style="width:21px">{{{R1D3score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R1D3race|}}}|background:{{RaceColor|{{{R1D3race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D3flag|}}}|{{FlagNoLink/{{lc:{{{R1D3flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D3|R1D3}}}</span><div class="bracket-score" style="width:21px">{{{R1D3score|}}}</div></div></div>
 
{{#if:{{{R1G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R1G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R1D3|}}}|{{{R1D3}}}|TBD}}|{{{R1D3race|}}}|{{#if:{{{R1D4|}}}|{{{R1D4}}}|TBD}}|{{{R1D4race|}}}}} {{{R1G2details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R1D3|}}}|{{{R1D3}}}|TBD}}|{{{R1D3flag|}}}|{{#if:{{{R1D4|}}}|{{{R1D4}}}|TBD}}|{{{R1D4flag|}}}}} {{{R1G2details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D4win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D4win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D4race|}}}|background:{{RaceColor|{{{R1D4race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D4flag|}}}|{{FlagNoLink/{{lc:{{{R1D4flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D4|R1D4}}}</span><div class="bracket-score" style="width:21px">{{{R1D4score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D4race|}}}|background:{{RaceColor|{{{R1D4race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D4flag|}}}|{{FlagNoLink/{{lc:{{{R1D4flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D4|R1D4}}}</span><div class="bracket-score" style="width:21px">{{{R1D4score|}}}</div></div></div>
Line 53: Line 53:
 
<div class="bracket-player-top" style="{{#if:{{{R1D5race|}}}|background:{{RaceColor|{{{R1D5race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D5flag|}}}|{{FlagNoLink/{{lc:{{{R1D5flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D5|R1D5}}}</span><div class="bracket-score" style="width:21px">{{{R1D5score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R1D5race|}}}|background:{{RaceColor|{{{R1D5race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D5flag|}}}|{{FlagNoLink/{{lc:{{{R1D5flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D5|R1D5}}}</span><div class="bracket-score" style="width:21px">{{{R1D5score|}}}</div></div></div>
 
{{#if:{{{R1G3details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R1G3details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R1D5|}}}|{{{R1D5}}}|TBD}}|{{{R1D5race|}}}|{{#if:{{{R1D6|}}}|{{{R1D6}}}|TBD}}|{{{R1D6race|}}}}} {{{R1G3details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R1D5|}}}|{{{R1D5}}}|TBD}}|{{{R1D5flag|}}}|{{#if:{{{R1D6|}}}|{{{R1D6}}}|TBD}}|{{{R1D6flag|}}}}} {{{R1G3details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D6win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D6win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D6race|}}}|background:{{RaceColor|{{{R1D6race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D6flag|}}}|{{FlagNoLink/{{lc:{{{R1D6flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D6|R1D6}}}</span><div class="bracket-score" style="width:21px">{{{R1D6score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R1D6race|}}}|background:{{RaceColor|{{{R1D6race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1D6flag|}}}|{{FlagNoLink/{{lc:{{{R1D6flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1D6|R1D6}}}</span><div class="bracket-score" style="width:21px">{{{R1D6score|}}}</div></div></div>
Line 76: Line 76:
 
<div class="bracket-player-top" style="{{#if:{{{R2D1race|}}}|background:{{RaceColor|{{{R2D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2D1flag|}}}|{{FlagNoLink/{{lc:{{{R2D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2D1|R2D1}}}</span><div class="bracket-score" style="width:21px">{{{R2D1score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R2D1race|}}}|background:{{RaceColor|{{{R2D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2D1flag|}}}|{{FlagNoLink/{{lc:{{{R2D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2D1|R2D1}}}</span><div class="bracket-score" style="width:21px">{{{R2D1score|}}}</div></div></div>
 
{{#if:{{{R2G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R2G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R2D1|}}}|{{{R2D1}}}|TBD}}|{{{R2D1race|}}}|{{#if:{{{R2W3|}}}|{{{R2W3}}}|TBD}}|{{{R2W3race|}}}}} {{{R2G2details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R2D1|}}}|{{{R2D1}}}|TBD}}|{{{R2D1flag|}}}|{{#if:{{{R2W3|}}}|{{{R2W3}}}|TBD}}|{{{R2W3flag|}}}}} {{{R2G2details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R2W3win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R2W3win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R2W3race|}}}|background:{{RaceColor|{{{R2W3race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W3flag|}}}|{{FlagNoLink/{{lc:{{{R2W3flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W3|R2W3}}}</span><div class="bracket-score" style="width:21px">{{{R2W3score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R2W3race|}}}|background:{{RaceColor|{{{R2W3race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W3flag|}}}|{{FlagNoLink/{{lc:{{{R2W3flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W3|R2W3}}}</span><div class="bracket-score" style="width:21px">{{{R2W3score|}}}</div></div></div>
Line 104: Line 104:
 
<div class="bracket-player-top" style="{{#if:{{{R3W1race|}}}|background:{{RaceColor|{{{R3W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R3W1flag|}}}|{{FlagNoLink/{{lc:{{{R3W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R3W1|R3W1}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W1score|}}}</div>{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W1score2|}}}</div>}}</div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R3W1race|}}}|background:{{RaceColor|{{{R3W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R3W1flag|}}}|{{FlagNoLink/{{lc:{{{R3W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R3W1|R3W1}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W1score|}}}</div>{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W1score2|}}}</div>}}</div></div>
 
{{#if:{{{R3G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R3G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R3W1|}}}|{{{R3W1}}}|TBD}}|{{{R3W1race|}}}|{{#if:{{{R3W2|}}}|{{{R3W2}}}|TBD}}|{{{R3W2race|}}}}} {{{R3G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R3W1|}}}|{{{R3W1}}}|TBD}}|{{{R3W1flag|}}}|{{#if:{{{R3W2|}}}|{{{R3W2}}}|TBD}}|{{{R3W2flag|}}}}} {{{R3G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R3W2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R3W2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R3W2race|}}}|background:{{RaceColor|{{{R3W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R3W2flag|}}}|{{FlagNoLink/{{lc:{{{R3W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R3W2|R3W2}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R3W2score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W2score|}}}</div>{{#if:{{{R3W2score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W2score2|}}}</div>}}</div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R3W2race|}}}|background:{{RaceColor|{{{R3W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R3W2flag|}}}|{{FlagNoLink/{{lc:{{{R3W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R3W2|R3W2}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R3W2score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W2score|}}}</div>{{#if:{{{R3W2score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W2score2|}}}</div>}}</div></div>

Revision as of 10:11, 18 September 2017

Documentation (view - edit)

Semifinals
  R1D1
  R1D2
  R1D3
  R1D4
Winners' Finals
  R2W1
  R2W2
Losers' Round 1
  R1D5
  R1D6
Losers' Finals
  R2D1
  R2W3
Grand Finals
  R3W1
  R3W2

Use

  • The 4 intial seeds drop into the first round of the bracket (R1D1-4)
  • Two matches are played. The winners advance to Round 2 (R2W1 and R2W2) while the losers drop down to the first round of the LB (R1D5 and R1D6).
  • The winners play and the winner of that match advances to the Grand Finals (R3W1) while the loser drops down to the LB (R2D1) to face the winner of the first LB match (R2W3).
  • The winner of the LB finals also advances to the Grand Finals (R3W2).
  • If the Grand Finals has 2 series played, a 2nd series score cell is available under R3W1score2 and R3W2score2. (Should be left blank if no 2nd series is played)
  • To add information about maps, link to vods, a short note, etc. use (See Template:BracketMatchSummary for further details):
  • If a map went to overtime, use |mapXot=. The value equals the number of consecutive OT's on this map.
  • Walkover: set race to wo, i.e |R1D3race=wo. Can also be set to red, green, blue, yellow and white - please avoid this if you can.


To customize the names of the Rounds (default: Round 1, Round 2, Grand Final) use:

  • |R1=
  • |R2=
  • |R3=


Copy/Paste

{{4DEBracket
<!-- WINNER'S BRACKET -->
|R1D1= |R1D1race= |R1D1flag= |R1D1score= |R1D1win=
|R1D2= |R1D2race= |R1D2flag= |R1D2score= |R1D2win=
|R1G1details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

|R1D3= |R1D3race= |R1D3flag= |R1D3score= |R1D3win=
|R1D4= |R1D4race= |R1D4flag= |R1D4score= |R1D4win=
|R1G2details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

|R2W1= |R2W1race= |R2W1flag= |R2W1score= |R2W1win=
|R2W2= |R2W2race= |R2W2flag= |R2W2score= |R2W2win=
|R2G1details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

<!-- LOSER'S BRACKET -->
|R1D5= |R1D5race= |R1D5flag= |R1D5score= |R1D5win=
|R1D6= |R1D6race= |R1D6flag= |R1D6score= |R1D6win=
|R1G3details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

|R2D1= |R2D1race= |R2D1flag= |R2D1score= |R2D1win=
|R2W3= |R2W3race= |R2W3flag= |R2W3score= |R2W3win=
|R2G2details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

<!-- GRAND FINALS -->
|R3W1= |R3W1race= |R3W1flag= |R3W1score= |R3W1win=
|R3W2= |R3W2race= |R3W2flag= |R3W2score= |R3W2win=
|R3G1details={{BracketMatchSummary
|date= 
|finished=
|stream=
|vod=
|map1= |map1win= |map1p1frags= |map1p2frags=
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

<!-- EXTENDED SERIES (optional) -->
|R3W1score2=
|R3W2score2=
}}

Adapted from Liquipedia