Difference between revisions of "Template:4DETeamBracket"

From comp.tf
Jump to navigation Jump to search
m (source category)
m
Line 126: Line 126:
 
<div style="height:164px;margin-top:0px">{{#ifeq:true|{{{hideroundtitles}}}||<div class="bracket-header">{{{R3|Grand Finals}}}</div>}}</div>
 
<div style="height:164px;margin-top:0px">{{#ifeq:true|{{{hideroundtitles}}}||<div class="bracket-header">{{{R3|Grand Finals}}}</div>}}</div>
 
<div class="bracket-game">
 
<div class="bracket-game">
<div class="bracket-cell-r1" style="{{#if:{{{R3W1win|}}}|font-weight:bold}}">
+
<div class="bracket-cell-r1">
<div class="bracket-team-top" style="{{#if:{{{R3W1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}{{#if:{{{R3W1score2|}}}|+{{{score-width|21}}}}}+2}}px">{{#if:{{{R3W1team|}}}|{{TeamBracket/{{{R3W1team}}}}}|{{#if:{{{R3W1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R3W1}}}</span>|{{#if:{{{R3W1literal|}}}|{{{R3W1literal}}}|&nbsp;}}}}}}
+
<div class="bracket-team-top" style="{{#if:{{{R3W1win|}}}|font-weight:bold; }}{{#if:{{{R3W1literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}{{#if:{{{R3W1score2|}}}|+{{{score-width|21}}}}}+2}}px">{{#if:{{{R3W1team|}}}|{{TeamBracket/{{{R3W1team}}}}}|{{#if:{{{R3W1|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R3W1}}}</span>|{{#if:{{{R3W1literal|}}}|{{{R3W1literal}}}|&nbsp;}}}}}}
<div class="bracket-score" style="width:{{{score-width|21}}}px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W1score|}}}</div>
+
<div class="bracket-score" style="{{#if:{{{R3W1win2|}}}|font-weight:bold; }}width:{{{score-width|21}}}px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W1score|}}}</div>
 
{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W1score2|}}}</div>}}</div></div>
 
{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W1score2|}}}</div>}}</div></div>
 
{{#if:{{{R3G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;">
 
{{#if:{{{R3G1details|}}}|<div class="bracket-game-details" style="margin-left:{{{column-width|170}}}px;">
Line 135: Line 135:
 
<div class="right">{{#if:{{{R3W2team|}}}|{{Team1/{{{R3W2team}}}}}|{{#if:{{{R3W2|}}}|{{Team/tf}}<span style="vertical-align:-1px;">{{{R3W2}}}</span>|{{#if:{{{R3W2literal|}}}|{{{R3W2literal}}}|&nbsp;}}}}}}</div></div>
 
<div class="right">{{#if:{{{R3W2team|}}}|{{Team1/{{{R3W2team}}}}}|{{#if:{{{R3W2|}}}|{{Team/tf}}<span style="vertical-align:-1px;">{{{R3W2}}}</span>|{{#if:{{{R3W2literal|}}}|{{{R3W2literal}}}|&nbsp;}}}}}}</div></div>
 
{{{R3G1details}}}</div>}}
 
{{{R3G1details}}}</div>}}
<div class="bracket-cell-r1" style="{{#if:{{{R3W2win|}}}|font-weight:bold}}">
+
<div class="bracket-cell-r1">
<div class="bracket-team-bottom" style="{{#if:{{{R3W2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}{{#if:{{{R3W1score2|}}}|+{{{score-width|21}}}}}+2}}px">{{#if:{{{R3W2team|}}}|{{TeamBracket/{{{R3W2team}}}}}|{{#if:{{{R3W2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R3W2}}}</span>|{{#if:{{{R3W2literal|}}}|{{{R3W2literal}}}|&nbsp;}}}}}}
+
<div class="bracket-team-bottom" style="{{#if:{{{R3W2win|}}}|font-weight:bold; }}{{#if:{{{R3W2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}{{#if:{{{R3W1score2|}}}|+{{{score-width|21}}}}}+2}}px">{{#if:{{{R3W2team|}}}|{{TeamBracket/{{{R3W2team}}}}}|{{#if:{{{R3W2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R3W2}}}</span>|{{#if:{{{R3W2literal|}}}|{{{R3W2literal}}}|&nbsp;}}}}}}
<div class="bracket-score" style="width:{{{score-width|21}}}px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W2score|}}}</div>
+
<div class="bracket-score" style="{{#if:{{{R3W2win2|}}}|font-weight:bold; }}width:{{{score-width|21}}}px;{{#if:{{{R3W1score2|}}}|right:{{#expr:{{{score-width|21}}}+1}}px}}">{{{R3W2score|}}}</div>
 
{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W2score2|}}}</div>}}</div></div>
 
{{#if:{{{R3W1score2|}}}|<div class="bracket-score" style="width:{{{score-width|21}}}px">{{{R3W2score2|}}}</div>}}</div></div>
 
</div>
 
</div>

Revision as of 04:56, 22 April 2016

(view - edit) Documentation

Semi-finals
R1D1
R1D2
R1D3
R1D4
Winners' Finals
R2W1
R2W2
Losers' Round 1
R1D5
R1D6
Losers' Finals
R2D1
R2W3
Grand Finals
R3W1
R3W2

Use

Template for a double-elimination bracket with 4 starting teams
  • The 4 initial seeds drop into the first round of the bracket (R1D1-R1D4)
  • Two matches are played. The winners advance to winner's finals (R2W1-R2W2) while the losers drop down to the loser's round 1 (R1D5-R1D6)
  • The winners play and the winner of that match advances to the grand finals (R3W1) while the loser drops down to loser's finals (R2D1) to face the winner of the loser's round 1 match (R2W3)
  • The winner of the loser's finals also advances to the grand finals (R3W2)
  • Make R1D1win variable non empty to bold winning team
  • If the grand finals have 2 series played, a 2nd series score cell is available under R3W1score2 and R3W2score2 (should be left blank if no 2nd series is played)
  • To see this template in action, view the source to one of the pages listed on WhatLinksHere:4DETeamBracket


Copy/Paste

Simple bracket with no further details

{{4DETeamBracket
<!-- SEMIFINALS -->
|R1D1team= |R1D1score= |R1D1win=
|R1D2team= |R1D2score= |R1D2win=
|R1D3team= |R1D3score= |R1D3win=
|R1D4team= |R1D4score= |R1D4win=
<!-- WINNER'S FINALS -->
|R2W1team= |R2W1score= |R2W1win=
|R2W2team= |R2W2score= |R2W2win=
<!-- LOSER'S ROUND 1 -->
|R1D5team= |R1D5score= |R1D5win=
|R1D6team= |R1D6score= |R1D6win=
<!-- LOSER'S FINALS -->
|R2D1team= |R2D1score= |R2D1win=
|R2W3team= |R2W3score= |R2W3win=
<!-- GRAND FINALS -->
|R3W1team= |R3W1score= |R3W1win=
|R3W2team= |R3W2score= |R3W2win=
}}


Bracket with maps, bo3

{{4DETeamBracket
<!-- SEMIFINALS -->
|R1D1team= |R1D1score= |R1D1win=
|R1D2team= |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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}
|R1D3team= |R1D3score= |R1D3win=
|R1D4team= |R1D4score= |R1D4win=
|R1G2details={{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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}

<!-- WINNER'S FINALS -->
|R2W1team= |R2W1score= |R2W1win=
|R2W2team= |R2W2score= |R2W2win=
|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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}
<!-- LOSER'S ROUND 1 -->
|R1D5team= |R1D5score= |R1D5win=
|R1D6team= |R1D6score= |R1D6win=
|R1G3details={{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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}

<!-- LOSER'S FINALS -->
|R2D1team= |R2D1score= |R2D1win=
|R2W3team= |R2W3score= |R2W3win=
|R2G2details={{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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}

<!-- GRAND FINALS -->
|R3W1team= |R3W1score= |R3W1win=
|R3W2team= |R3W2score= |R3W2win=
|R3G1details={{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= |vod2= |vod3=
     |interview= 
   }}
   |comment=
 }}
}}

Credit to Liquipedia!