Difference between revisions of "Template:3SETeamBracket"
Jump to navigation
Jump to search
m (source category) |
|||
Line 6: | Line 6: | ||
<div class="bracket-team-top" style="{{#if:{{{R1D1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R1D1team|}}}|{{TeamBracket/{{{R1D1team}}}}}|{{#if:{{{R1D1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R1D1}}}</span>|{{#if:{{{R1D1literal|}}}|{{{R1D1literal}}}| }}}}}} | <div class="bracket-team-top" style="{{#if:{{{R1D1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R1D1team|}}}|{{TeamBracket/{{{R1D1team}}}}}|{{#if:{{{R1D1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R1D1}}}</span>|{{#if:{{{R1D1literal|}}}|{{{R1D1literal}}}| }}}}}} | ||
<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R1D1score|}}}</div></div></div> | <div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R1D1score|}}}</div></div></div> | ||
− | {{#if:{{{R1G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;"> | + | {{{#if:{{{R1G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;"> |
− | + | {{BracketMatchTeams| | |
− | + | |team1={{{R1D1team|}}} | |
− | + | |team2={{{R1D2team|}}} | |
− | + | |team1tf={{{R1D1|}}} | |
+ | |team2tf={{{R1D2|}}} | ||
+ | |team1literal={{{R1D1literal|}}} | ||
+ | |team2literal={{{R1D2literal|}}} | ||
+ | |default={{#if:{{{R1D1default|}}}|1|{{#if:{{{R1D2default|}}}|2}}}} | ||
+ | |details={{{R1G1details|}}} | ||
+ | }}</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-team-bottom" style="{{#if:{{{R1D2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R1D2team|}}}|{{TeamBracket/{{{R1D2team}}}}}|{{#if:{{{R1D2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R1D2}}}</span>|{{#if:{{{R1D2literal|}}}|{{{R1D2literal}}}| }}}}}} | <div class="bracket-team-bottom" style="{{#if:{{{R1D2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R1D2team|}}}|{{TeamBracket/{{{R1D2team}}}}}|{{#if:{{{R1D2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R1D2}}}</span>|{{#if:{{{R1D2literal|}}}|{{{R1D2literal}}}| }}}}}} | ||
Line 35: | Line 41: | ||
<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R2D1score|}}}</div></div></div> | <div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R2D1score|}}}</div></div></div> | ||
{{#if:{{{R2G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;"> | {{#if:{{{R2G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;"> | ||
− | + | {{BracketMatchTeams| | |
− | + | |team1={{{R2W1team|}}} | |
− | + | |team2={{{R2W2team|}}} | |
− | + | |team1tf={{{R2W1|}}} | |
+ | |team2tf={{{R2W2|}}} | ||
+ | |team1literal={{{R2W1literal|}}} | ||
+ | |team2literal={{{R2W2literal|}}} | ||
+ | |default={{#if:{{{R2W1default|}}}|1|{{#if:{{{R2W2default|}}}|2}}}} | ||
+ | |details={{{R2G1details|}}} | ||
+ | }}</div>}} | ||
<div class="bracket-cell-r1" style="{{#if:{{{R2W1win|}}}|font-weight:bold}}"> | <div class="bracket-cell-r1" style="{{#if:{{{R2W1win|}}}|font-weight:bold}}"> | ||
<div class="bracket-team-bottom" style="{{#if:{{{R2W1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R2W1team|}}}|{{TeamBracket/{{{R2W1team}}}}}|{{#if:{{{R2W1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R2W1}}}</span>|{{#if:{{{R2W1literal|}}}|{{{R2W1literal}}}| }}}}}} | <div class="bracket-team-bottom" style="{{#if:{{{R2W1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R2W1team|}}}|{{TeamBracket/{{{R2W1team}}}}}|{{#if:{{{R2W1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R2W1}}}</span>|{{#if:{{{R2W1literal|}}}|{{{R2W1literal}}}| }}}}}} |
Revision as of 17:06, 28 February 2017
(view - edit) Documentation
Qualification Round
R1D1
{
R1D2
Grand Final
R2D1
R1W1
Use
- Template for a single-elimination bracket with 2 starting teams and 3 participating teams
- Two rounds, with 2 and 2 teams respectively
- Variables are R1D1-R1D2, R2W1 with the addition of "team" and "score" for the teams and scores
- Make R1D1win variable non empty to bold winning team
- To see this template in action, view the source to one of the pages listed on WhatLinksHere:3SETeamBracket
More options |
---|
|R1D1literal=
|R1=Qualification Round |R2=Grand Final
|hideroundtitles=true
|column-width=170 |score-width=21 |
Copy/Paste
Simple bracket with no further details
{{3SETeamBracket |R1D1team= |R1D1score= |R1D1win= |R1D2team= |R1D2score= |R1D2win= <!-- FINALS --> |R2D1team= |R2D1score= |R2D1win= |R2W1team= |R2W1score= |R2W1win= }}
Bracket with maps, bo3
{{3SETeamBracket |R1D1team= |R1D1flag= |R1D1score= |R1D1win= |R1D2team= |R1D2flag= |R1D2score= |R1D2win= | R1G1details={{BracketMatchSummary | date= |stream= |finished= | match1= {{Game |t1score= |t2score= |map= |win= }} | match2= {{Game |t1score= |t2score= |map= |win= }} | match3= {{Game |t1score= |t2score= |map= |win= }} | details={{Details |log1= |log1gc= |log2= |log2gc= |log3= |log3gc= |vod1= |vod1gc= |vod2= |vod2gc= |vod3= |vod3gc= }} }} <!-- FINALS --> |R2D1team= |R2D1flag= |R2D1score= |R2D1win= |R2W1team= |R2W1flag= |R2W1score= |R2W1win= |R2G1details={{BracketMatchSummary | date= |stream= |finished= | match1= {{Game |t1score= |t2score= |map= |win= }} | match2= {{Game |t1score= |t2score= |map= |win= }} | match3= {{Game |t1score= |t2score= |map= |win= }} | details={{Details |log1= |log1gc= |log2= |log2gc= |log3= |log3gc= |vod1= |vod1gc= |vod2= |vod2gc= |vod3= |vod3gc= }} }} }}