Difference between revisions of "Template:DEFinalBracket"

From QWiki
(Created page with "<includeonly><div class="bracket-wrapper bracket-player"><div class="bracket-scroller"><div style="width:{{#expr:{{{column-width|150}}}*3+20*2{{#if:{{{R5W1score2|}}}|+{{{score...")
 
m
 
Line 7: Line 7:
 
<div class="bracket-player-top" style="{{#if:{{{R1W1race|}}}|background:{{RaceColor|{{{R1W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1W1flag|}}}|{{FlagNoLink/{{lc:{{{R1W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1W1|R1W1}}}</span><div class="bracket-score" style="width:21px">{{{R1W1score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R1W1race|}}}|background:{{RaceColor|{{{R1W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1W1flag|}}}|{{FlagNoLink/{{lc:{{{R1W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1W1|R1W1}}}</span><div class="bracket-score" style="width:21px">{{{R1W1score|}}}</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:{{{R1W1|}}}|{{{R1W1}}}|TBD}}|{{{R1W1race|}}}|{{#if:{{{R1W2|}}}|{{{R1W2}}}|TBD}}|{{{R1W2race|}}}}} {{{R1G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R1W1|}}}|{{{R1W1}}}|TBD}}|{{{R1W1flag|}}}|{{#if:{{{R1W2|}}}|{{{R1W2}}}|TBD}}|{{{R1W2flag|}}}}} {{{R1G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R1W2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R1W2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R1W2race|}}}|background:{{RaceColor|{{{R1W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1W2flag|}}}|{{FlagNoLink/{{lc:{{{R1W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1W2|R1W2}}}</span><div class="bracket-score" style="width:21px">{{{R1W2score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R1W2race|}}}|background:{{RaceColor|{{{R1W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R1W2flag|}}}|{{FlagNoLink/{{lc:{{{R1W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R1W2|R1W2}}}</span><div class="bracket-score" style="width:21px">{{{R1W2score|}}}</div></div></div>
Line 18: Line 18:
 
<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">{{{R3W1score|}}}</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">{{{R3W1score|}}}</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">{{{R3W2score|}}}</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">{{{R3W2score|}}}</div></div></div>
Line 50: Line 50:
 
<div class="bracket-player-top" style="{{#if:{{{R4D1race|}}}|background:{{RaceColor|{{{R4D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R4D1flag|}}}|{{FlagNoLink/{{lc:{{{R4D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R4D1|R4D1}}}</span><div class="bracket-score" style="width:21px">{{{R4D1score|}}}</div></div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R4D1race|}}}|background:{{RaceColor|{{{R4D1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R4D1flag|}}}|{{FlagNoLink/{{lc:{{{R4D1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R4D1|R4D1}}}</span><div class="bracket-score" style="width:21px">{{{R4D1score|}}}</div></div></div>
 
{{#if:{{{R4G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R4G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R4D1|}}}|{{{R4D1}}}|TBD}}|{{{R4D1race|}}}|{{#if:{{{R4W1|}}}|{{{R4W1}}}|TBD}}|{{{R4W1race|}}}}} {{{R4G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R4D1|}}}|{{{R4D1}}}|TBD}}|{{{R4D1flag|}}}|{{#if:{{{R4W1|}}}|{{{R4W1}}}|TBD}}|{{{R4W1flag|}}}}} {{{R4G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R4W1win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R4W1win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R4W1race|}}}|background:{{RaceColor|{{{R4W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R4W1flag|}}}|{{FlagNoLink/{{lc:{{{R4W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R4W1|R4W1}}}</span><div class="bracket-score" style="width:21px">{{{R4W1score|}}}</div></div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R4W1race|}}}|background:{{RaceColor|{{{R4W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R4W1flag|}}}|{{FlagNoLink/{{lc:{{{R4W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R4W1|R4W1}}}</span><div class="bracket-score" style="width:21px">{{{R4W1score|}}}</div></div></div>
Line 77: Line 77:
 
<div class="bracket-player-top" style="{{#if:{{{R5W1race|}}}|background:{{RaceColor|{{{R5W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R5W1flag|}}}|{{FlagNoLink/{{lc:{{{R5W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R5W1|R5W1}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R5W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R5W1score|}}}</div>{{#if:{{{R5W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R5W1score2|}}}</div>}}</div></div>
 
<div class="bracket-player-top" style="{{#if:{{{R5W1race|}}}|background:{{RaceColor|{{{R5W1race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R5W1flag|}}}|{{FlagNoLink/{{lc:{{{R5W1flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R5W1|R5W1}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R5W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R5W1score|}}}</div>{{#if:{{{R5W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R5W1score2|}}}</div>}}</div></div>
 
{{#if:{{{R5G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
 
{{#if:{{{R5G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-player" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup">
{{BracketMatchPlayers|{{#if:{{{R5W1|}}}|{{{R5W1}}}|TBD}}|{{{R5W1race|}}}|{{#if:{{{R5W2|}}}|{{{R5W2}}}|TBD}}|{{{R5W2race|}}}}} {{{R5G1details}}}</div></div>}}
+
{{BracketMatchPlayers|{{#if:{{{R5W1|}}}|{{{R5W1}}}|TBD}}|{{{R5W1flag|}}}|{{#if:{{{R5W2|}}}|{{{R5W2}}}|TBD}}|{{{R5W2flag|}}}}} {{{R5G1details}}}</div></div>}}
 
<div class="bracket-cell-r1" style="{{#if:{{{R5W2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r1" style="{{#if:{{{R5W2win|}}}|font-weight:bold}}">
 
<div class="bracket-player-bottom" style="{{#if:{{{R5W2race|}}}|background:{{RaceColor|{{{R5W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R5W2flag|}}}|{{FlagNoLink/{{lc:{{{R5W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R5W2|R5W2}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R5W2score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R5W2score|}}}</div>{{#if:{{{R5W2score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R5W2score2|}}}</div>}}</div></div>
 
<div class="bracket-player-bottom" style="{{#if:{{{R5W2race|}}}|background:{{RaceColor|{{{R5W2race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px">&nbsp;{{#if:{{{R5W2flag|}}}|{{FlagNoLink/{{lc:{{{R5W2flag}}}}}}}}}&nbsp;<span style="vertical-align:-1px;">{{{R5W2|R5W2}}}</span><div class="bracket-score" style="width:21px;{{#if:{{{R5W2score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R5W2score|}}}</div>{{#if:{{{R5W2score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R5W2score2|}}}</div>}}</div></div>

Latest revision as of 20:23, 3 September 2017

Documentation (view - edit)

From Winners Bracket
  R1W1
  R1W2
From Losers Bracket
  R3W1
  R3W2
Losers Finals
  R4D1
  R4W1
Grand Finals
  R5W1
 
  R5W2
 
{{DEFinalBracket
|R1W1= |R1W1race= |R1W1score= |R1W1flag= |R1W1win=
|R1W2= |R1W2race= |R1W2score= |R1W2flag= |R1W2win=
|R3W1= |R3W1race= |R3W1score= |R3W1flag= |R3W1win=
|R3W2= |R3W2race= |R3W2score= |R3W2flag= |R3W2win=

|R4D1= |R4D1race= |R4D1score= |R4D1flag= |R4D1win=
|R4W1= |R4W1race= |R4W1score= |R4W1flag= |R4W1win=

|R5W1= |R5W1race= |R5W1score= |R5W1flag= |R5W1win=
|R5W2= |R5W2race= |R5W2score= |R5W2flag= |R5W2win=
|R5W1score2=
|R5W2score2=
}}

If you don't need R5W1score2 and R5W2score2 just leave them empty.