Difference between revisions of "Template:4SEBracket"

From QWiki
m (First attempt att fixing too small width of popup match details (BracketMatchSummary))
m (In "deep water" trying to fix bad classes for font sizes in match detail popup)
 
Line 5: Line 5:
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D1win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R1D1win|}}}|font-weight:bold}}">
 
<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-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
+
{{#if:{{{R1G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"><div class="bracket-popup-header">
{{BracketMatchPlayers|{{{R1D1|TBD}}}|{{{R1D1flag|}}}|{{{R1D2|TBD}}}|{{{R1D2flag|}}}}} {{{R1G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{{R1D1|TBD}}}|{{{R1D1flag|}}}|{{{R1D2|TBD}}}|{{{R1D2flag|}}}}} </div>{{{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:{{{R1D2flag|}}}|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:{{{R1D2flag|}}}|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>

Latest revision as of 10:33, 18 December 2020

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