Difference between revisions of "Template:4TeamBracket"

From blackwiki
Jump to navigation Jump to search
blackwiki>SocietyBox
m (remove borders for mobile)
blackwiki>SocietyBox
m (width)
Line 6: Line 6:
 
|-
 
|-
 
| style="border-style:none" |
 
| style="border-style:none" |
| style="width:{{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}; border-style:none" | 
+
| style="width:{{#if: {{{seed-width|}}}|{{{seed-width}}}|25}}px; border-style:none" | 
| style="width:{{#if: {{{team-width|}}}|{{{team-width}}}|150px}}; border-style:none" | 
+
| style="width:{{#if: {{{team-width|}}}|{{{team-width}}}|150}}px; border-style:none" | 
| style="width:{{#if: {{{score-width|}}}|{{{score-width}}}|25px}}; border-style:none" | 
+
| style="width:{{#if: {{{score-width|}}}|{{{score-width}}}|25}}px; border-style:none" | 
 
| style="width:10px; border-style:none" | 
 
| style="width:10px; border-style:none" | 
 
| style="width:10px; border-style:none" | 
 
| style="width:10px; border-style:none" | 
| style="width:{{#if: {{{seed-width|}}}|{{{seed-width}}}|25px}}; border-style:none" | 
+
| style="width:{{#if: {{{seed-width|}}}|{{{seed-width}}}|25}}px; border-style:none" | 
| style="width:{{#if: {{{team-width|}}}|{{{team-width}}}|150px}}; border-style:none" | 
+
| style="width:{{#if: {{{team-width|}}}|{{{team-width}}}|150}}px; border-style:none" | 
| style="width:{{#if: {{{score-width|}}}|{{{score-width}}}|25px}}; border-style:none" | 
+
| style="width:{{#if: {{{score-width|}}}|{{{score-width}}}|25}}px; border-style:none" | 
 
|-
 
|-
 
| style="height:6px; border-style:none" |
 
| style="height:6px; border-style:none" |
Line 85: Line 85:
 
{{!}} colspan="4" style="text-align:center; border:1px solid #aaa; background-color:#f2f2f2"{{!}} {{{RD3|Third-place}}}
 
{{!}} colspan="4" style="text-align:center; border:1px solid #aaa; background-color:#f2f2f2"{{!}} {{{RD3|Third-place}}}
 
{{!}}-
 
{{!}}-
{{!}} colspan="6" style="border-style:none" {{!}}  
+
{{!}} colspan="6" style="border-style:none" {{!}}
 
{{#if:{{{RD2-seed3|}}}
 
{{#if:{{{RD2-seed3|}}}
 
|
 
|

Revision as of 03:30, 22 December 2013

Semi-finals Finals
               
      
      
        
      
    
      
Template documentation[view] [edit] [history] [purge]

Usage

Template description

This template generates a generic 4-team (2-round) tournament bracket.

Complete set of blank template parameters

{{4TeamBracket 

| RD1         = 
| RD2         = 

| group1      = 
| group2      = 

| seed-width  = 
| team-width  = 
| score-width = 

| RD1-seed1   = 
| RD1-team1   = 
| RD1-score1  = 
| RD1-seed2   = 
| RD1-team2   = 
| RD1-score2  = 

| RD1-seed3   = 
| RD1-team3   = 
| RD1-score3  = 
| RD1-seed4   = 
| RD1-team4   = 
| RD1-score4  = 

| RD2-seed1   = 
| RD2-team1   = 
| RD2-score1  = 
| RD2-seed2   = 
| RD2-team2   = 
| RD2-score2  = 
}}

Parameter definitions

  • seed-width – [OPTIONAL] sets the width of the seed fields (25 by default).
  • team-width – [OPTIONAL] sets the width of the team name fields (150 by default).
  • score-width – [OPTIONAL] sets the width of the score fields (25 by default).
  • RD1, RD2 – [OPTIONAL] The names of each round. Defaults are "Semi-finals" and "Finals", respectively.
  • Each team takes three [OPTIONAL] parameters – the seed, team name, and score. The parameter names are of the form RDn-xxxxt, where:
    • n is the round number (12)
    • xxxx is one of seed, team, or score
    • t is the position within the round, counting from top to bottom (14)

There are 4 first-round (semifinals) teams and 2 second-round (finals) teams.

See also