Difference between revisions of "Template:4SEBracket"

From QWiki
(Created page with "<includeonly><div class="bracket-wrapper bracket-player"><div class="bracket-scroller"><div style="width:{{#expr:{{{column-width|150}}}*2+25}}px" class="bracket bracket-width-...")
 
m
Line 6: Line 6:
 
<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|{{{R1D1|TBD}}}|{{{R1D1race|}}}|{{{R1D2|TBD}}}|{{{R1D2race|}}}}} {{{R1G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{{R1D1|TBD}}}|{{{R1D1flag|}}}|{{{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 14: Line 14:
 
<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|{{{R1D3|TBD}}}|{{{R1D3race|}}}|{{{R1D4|TBD}}}|{{{R1D4race|}}}}} {{{R1G2details}}}</div></div>}}
+
{{BracketMatchPlayers|{{{R1D3|TBD}}}|{{{R1D3flag|}}}|{{{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 41: Line 41:
 
<div class="bracket-player-top" style="{{#if:{{{R2W1race|}}}|background:{{RaceColor|{{{R2W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W1flag|}}}|{{FlagNoLink/{{lc:{{{R2W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W1|R2W1}}}</span><div class="bracket-score" style="width:21px">{{{R2W1score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R2W1race|}}}|background:{{RaceColor|{{{R2W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W1flag|}}}|{{FlagNoLink/{{lc:{{{R2W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W1|R2W1}}}</span><div class="bracket-score" style="width:21px">{{{R2W1score|}}}</div></div></div>
 
{{#if:{{{R2G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R2G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{{R2W1|TBD}}}|{{{R2W1race|}}}|{{{R2W2|TBD}}}|{{{R2W2race|}}}}} {{{R2G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{{R2W1|TBD}}}|{{{R2W1flag|}}}|{{{R2W2|TBD}}}|{{{R2W2flag|}}}}} {{{R2G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R2W2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R2W2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R2W2race|}}}|background:{{RaceColor|{{{R2W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W2flag|}}}|{{FlagNoLink/{{lc:{{{R2W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W2|R2W2}}}</span><div class="bracket-score" style="width:21px">{{{R2W2score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R2W2race|}}}|background:{{RaceColor|{{{R2W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2W2flag|}}}|{{FlagNoLink/{{lc:{{{R2W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2W2|R2W2}}}</span><div class="bracket-score" style="width:21px">{{{R2W2score|}}}</div></div></div>
Line 51: Line 51:
 
<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|{{{R2D1|TBD}}}|{{{R2D1race|}}}|{{{R2D2|TBD}}}|{{{R2D2race|}}}}} {{{R2G2details}}}</div></div>}}
+
{{BracketMatchPlayers|{{{R2D1|TBD}}}|{{{R2D1flag|}}}|{{{R2D2|TBD}}}|{{{R2D2flag|}}}}} {{{R2G2details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R2D2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R2D2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R2D2race|}}}|background:{{RaceColor|{{{R2D2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2D2flag|}}}|{{FlagNoLink/{{lc:{{{R2D2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2D2|R2D2}}}</span><div class="bracket-score" style="width:21px">{{{R2D2score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R2D2race|}}}|background:{{RaceColor|{{{R2D2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R2D2flag|}}}|{{FlagNoLink/{{lc:{{{R2D2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R2D2|R2D2}}}</span><div class="bracket-score" style="width:21px">{{{R2D2score|}}}</div></div></div>

Revision as of 12:09, 28 April 2017

Documentation (view - edit)

Semifinals
  R1D1
  R1D2
  R1D3
  R1D4
Finals
  R2W1
  R2W2

Use

Template for a single-elimination bracket with 4 starting players
  • Two rounds, 4 and 2 players respectively.
  • Variables are R1D1-4, R2W1-2 for the players, with the addition of "race" and "score" for the races and scores.
  • 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.
  • 3rd place match variables are R2D1 and R2D2. If the 3rd place match is not played, nothing needs to be filled in those fields and the 3rd place match will not appear on the page.
  • To bold winners and winners' scores use:
|R1D1=Playername |R1D1score=2 |R1D1win=1
  • To customize the names of the Rounds (default: Quarterfinals, Semifinals, Finals) use:
|R1=
|R2=
|L2=
  • To remove Round titles completely use:
|hideroundtitles=true
  • To customize column width or score width use:
|column-width=
|score-width=

Copy/Paste

{{4SEBracket
 <!-- SEMIFINALS-->
|R1D1= |R1D1race= |R1D1flag= |R1D1score= |R1D1win=
|R1D2= |R1D2race= |R1D2flag= |R1D2score= |R1D2win=
|R1G1details={{BracketMatchSummary
|date=
|finished=
|stream=
|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=
|map1= |map1win= |map1p1frags= |map1p2frags= 
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}

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

 <!-- BRONZE MATCH-->
|R2D1= |R2D1race= |R2D1flag=au |R2D1score= |R2D1win=
|R2D2= |R2D2race= |R2D2flag=au |R2D2score= |R2D2win=
|R2G2details={{BracketMatchSummary
|date=
|finished=
|stream=
|map1= |map1win= |map1p1frags= |map1p2frags= 
|map2= |map2win= |map2p1frags= |map2p2frags=
|map3= |map3win= |map3p1frags= |map3p2frags=
|map4= |map4win= |map4p1frags= |map4p2frags=
|map5= |map5win= |map5p1frags= |map5p2frags=
}}
}}


Adapted from Liquipedia