Difference between revisions of "Template:4DETeamBracket"

From comp.tf
Jump to navigation Jump to search
m (Team/ -> Team1/ + changed bracket summary)
m
Line 56: Line 56:
 
<div class="left">{{#if:{{{R2W1team|}}}|{{Team2/{{{R2W1team}}}}}|{{#if:{{{R2W1|}}}|<span style="vertical-align:-1px;">{{{R2W1}}}</span>{{Team2/tf}}|{{#if:{{{R2W1literal|}}}|{{{R2W1literal}}}|&nbsp;}}}}}}</div>
 
<div class="left">{{#if:{{{R2W1team|}}}|{{Team2/{{{R2W1team}}}}}|{{#if:{{{R2W1|}}}|<span style="vertical-align:-1px;">{{{R2W1}}}</span>{{Team2/tf}}|{{#if:{{{R2W1literal|}}}|{{{R2W1literal}}}|&nbsp;}}}}}}</div>
 
<div class="right">{{#if:{{{R2W2team|}}}|{{Team1/{{{R2W2team}}}}}|{{#if:{{{R2W2|}}}|{{Team/tf}}<span style="vertical-align:-1px;">{{{R2W2}}}</span>|{{#if:{{{R2W2literal|}}}|{{{R2W2literal}}}|&nbsp;}}}}}}</div></div>
 
<div class="right">{{#if:{{{R2W2team|}}}|{{Team1/{{{R2W2team}}}}}|{{#if:{{{R2W2|}}}|{{Team/tf}}<span style="vertical-align:-1px;">{{{R2W2}}}</span>|{{#if:{{{R2W2literal|}}}|{{{R2W2literal}}}|&nbsp;}}}}}}</div></div>
{{{R1G2details}}}</div>}}
+
{{{R2G2details}}}</div>}}
 
<div class="bracket-cell-r2" style="{{#if:{{{R2W2win|}}}|font-weight:bold}}">
 
<div class="bracket-cell-r2" style="{{#if:{{{R2W2win|}}}|font-weight:bold}}">
 
<div class="bracket-team-bottom" style="{{#if:{{{R2W2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R2W2team|}}}|{{TeamBracket/{{{R2W2team}}}}}|{{#if:{{{R2W2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R2W2}}}</span>|{{#if:{{{R2W2literal|}}}|{{{R2W2literal}}}|&nbsp;}}}}}}
 
<div class="bracket-team-bottom" style="{{#if:{{{R2W2literal}}}||background:#ebebeb;}}padding-right:{{#expr:{{{score-width|21}}}+2}}px">{{#if:{{{R2W2team|}}}|{{TeamBracket/{{{R2W2team}}}}}|{{#if:{{{R2W2|}}}|{{TeamBracket/tf}}<span style="vertical-align:-1px;">{{{R2W2}}}</span>|{{#if:{{{R2W2literal|}}}|{{{R2W2literal}}}|&nbsp;}}}}}}

Revision as of 19:22, 16 August 2015

(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!