Difference between revisions of "Template:2SEBracket"

From QWiki
(Created page with "<includeonly><div class="bracket-wrapper bracket-player"><div class="bracket-scroller"><div style="width:{{{column-width|150}}}px" class="bracket bracket-width-1col"> <div c...")
 
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|{{#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>

Revision as of 18:02, 21 June 2017

Documentation (view - edit)

Round 1
  R1D1
  R1D2

Use

Template for a single-elimination bracket with 2 players
  • One round, 2 players.
  • Variables are R1D1 and R1D2 for the players, with the addition of "race" and "score" for the races and scores.
  • Race variable uses the first letter of the race, p z t r or bye.
  • To bold winners and winners' scores use:
|R1D1=Playername |R1D1score=2 |R1D1win=1
  • To customize the names of the Round (default: Round 1) use:
|R1=
  • To remove the round title completely use:
|hideroundtitles=true
  • To customize column width or score width use:
|column-width=
|score-width=
  • To add information about maps, link to vods, a short note, etc. use (See Template:BracketMatchSummary for further details):
  • Overtime: If a map went to overtime, add |map#ot=1. The value 1 equals the number of consecutive overtimes, rarely more than 1.
  • Walkover: If a player leaves WO, add |R#D#race=wo. Can also be set to red, green, blue, yellow and white - please avoid this if you can.

Copy/Paste

{{2SEBracket
|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=
}}
}}