Difference between revisions of "Template:4SEBracket2on2"
From QWiki
m (Sandboxing) |
m (Modified to accept lineup displayed in popup (rxdxlineup=)) |
||
Line 14: | Line 14: | ||
<div class="bracket-player-top" style="{{#if:{{{R1D3race|}}}|background:{{RaceColor|{{{R1D3race}}}}};}} padding-right:{{#expr:{{{score-width|21}}}+2}}px"> {{#if:{{{R1D3flag|}}}|{{FlagNoLink/{{lc:{{{R1D3flag}}}}}}}}} <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"> {{#if:{{{R1D3flag|}}}|{{FlagNoLink/{{lc:{{{R1D3flag}}}}}}}}} <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-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | {{#if:{{{R1G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | ||
− | {{ | + | {{BracketMatchPlayers2|{{{R1D3|TBD}}}|{{{R1D3flag|}}}|{{{R1D3lineup|}}}|{{{R1D4|TBD}}}|{{{R1D4flag|}}}|{{{R1D4lineup|}}}}} {{{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"> {{#if:{{{R1D4flag|}}}|{{FlagNoLink/{{lc:{{{R1D4flag}}}}}}}}} <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"> {{#if:{{{R1D4flag|}}}|{{FlagNoLink/{{lc:{{{R1D4flag}}}}}}}}} <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"> {{#if:{{{R2W1flag|}}}|{{FlagNoLink/{{lc:{{{R2W1flag}}}}}}}}} <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"> {{#if:{{{R2W1flag|}}}|{{FlagNoLink/{{lc:{{{R2W1flag}}}}}}}}} <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-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | {{#if:{{{R2G1details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | ||
− | {{ | + | {{BracketMatchPlayers2|{{{R2W1|TBD}}}|{{{R2W1flag|}}}|{{{R2W1lineup|}}}|{{{R2W2|TBD}}}|{{{R2W2flag|}}}|{{{R2W2lineup|}}}}} {{{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"> {{#if:{{{R2W2flag|}}}|{{FlagNoLink/{{lc:{{{R2W2flag}}}}}}}}} <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"> {{#if:{{{R2W2flag|}}}|{{FlagNoLink/{{lc:{{{R2W2flag}}}}}}}}} <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"> {{#if:{{{R2D1flag|}}}|{{FlagNoLink/{{lc:{{{R2D1flag}}}}}}}}} <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"> {{#if:{{{R2D1flag|}}}|{{FlagNoLink/{{lc:{{{R2D1flag}}}}}}}}} <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-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | {{#if:{{{R2G2details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{{column-width|150}}}px;"><div class="bracket-popup"> | ||
− | {{ | + | {{BracketMatchPlayers2|{{{R2D1|TBD}}}|{{{R2D1flag|}}}|{{{R2D1lineup|}}}|{{{R2D2|TBD}}}|{{{R2D2flag|}}}|{{{R2D2lineup|}}}}} {{{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"> {{#if:{{{R2D2flag|}}}|{{FlagNoLink/{{lc:{{{R2D2flag}}}}}}}}} <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"> {{#if:{{{R2D2flag|}}}|{{FlagNoLink/{{lc:{{{R2D2flag}}}}}}}}} <span style="vertical-align:-1px;">{{{R2D2|R2D2}}}</span><div class="bracket-score" style="width:21px">{{{R2D2score|}}}</div></div></div> |
Latest revision as of 21:29, 24 March 2021
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.
- Display declaration of players for each team with |RxDxlineup=. No linked text. Separate with '&' or ',':
|R1D1lineup=Player1 & player2
- 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=
- To add information about maps, link to vods, a short note, etc. use (See Template:BracketMatchSummary for further details):
Copy/Paste
{{4SEBracket2on2 <!-- SEMIFINALS--> |R1D1= |R1D1flag= |R1D1lineup= |R1D1score= |R1D1win= |R1D2= |R1D2flag= |R1D2lineup= |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= |R1D3flag= |R1D3lineup= |R1D3score= |R1D3win= |R1D4= |R1D4flag= |R1D4lineup= |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= |R2W1flag= |R2W1lineup= |R2W1score= |R2W1win= |R2W2= |R2W2flag= |R2W2lineup= |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= }} <!-- 3RD PLACE (optional) --> |R2D1= |R2D1flag= |R2D1lineup= |R2D1score= |R2D1win= |R2D2= |R2D2flag= |R2D2lineup= |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