Template:8TeamBracket: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "{{#invoke: TeamBracket | teamBracket | rounds=3 | RD1-group1 = {{{group1|}}} | RD1-group2 = {{{group2|}}} }}<noinclude> {{documentation}} </noinclude>")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#invoke: TeamBracket | teamBracket | rounds=3
{| border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
| RD1-group1 = {{{group1|}}}
| &nbsp;
| RD1-group2 = {{{group2|}}}
| align="center" colspan="3" style="border:1px solid #aaa;" bgcolor=#f2f2f2|{{{RD1|Quarter-finals}}}
}}<noinclude>
| colspan="2"|
| align="center" colspan="3" style="border:1px solid #aaa;" bgcolor=#f2f2f2|{{{RD2|Semi-finals}}}
| colspan="2"|
| align="center" colspan="3" style="border:1px solid #aaa;" bgcolor=#f2f2f2|{{{RD3|Final}}}
 
|-
| &nbsp;
| style="width:{{{seed-width|2em}}};"|&nbsp;
| style="width:{{{team-width|11em}}};"|&nbsp;
| style="width:{{{score-width|2em}}};"|&nbsp;
| style="width:1em;"|&nbsp;
| style="width:1em;"|&nbsp;
| style="width:{{{seed-width|2em}}};"|&nbsp;
| style="width:{{{team-width|11em}}};"|&nbsp;
| style="width:{{{score-width|2em}}};"|&nbsp;
| style="width:1em;"|&nbsp;
| style="width:1em;"|&nbsp;
| style="width:{{{seed-width|2em}}};"|&nbsp;
| style="width:{{{team-width|11em}}};"|&nbsp;
| style="width:{{{score-width|2em}}};"|&nbsp;
 
|-
| height="14" |&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed1|1}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team1|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score1|&nbsp;}}}
| style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed2|8}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team2|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score2|&nbsp;}}}
| rowspan="6" style="border-width:2px 2px 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD2-seed1|&nbsp;}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD2-team1|}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score1|&nbsp;}}}
| rowspan="2" style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| colspan="3" rowspan="2" align="center"| {{{group1|}}}
 
|-
| height="7" |
| rowspan="2" style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD2-seed2|&nbsp;}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD2-team2|}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score2|&nbsp;}}}
| rowspan="10" style="border-width:2px 2px 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed3|4}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team3|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score3|&nbsp;}}}
 
|-
| height="7" |
 
|-
| height="14" |&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed4|5}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team4|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score4|&nbsp;}}}
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="14" colspan="2" |
| colspan="8" rowspan="2"|&nbsp;
| style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD3-seed1|&nbsp;}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD3-team1|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD3-score1|&nbsp;}}}
 
|-
| height="14" colspan="2" |
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD3-seed2|&nbsp;}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD3-team2|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD3-score2|&nbsp;}}}
 
|-
| height="14"|&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed5|3}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team5|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score5|&nbsp;}}}
| style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed6|6}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team6|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score6|&nbsp;}}}
| rowspan="6" style="border-width:2px 2px 2px 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" style="border-width:0 0 2px 0; border-style:solid;border-color:black;"|&nbsp;
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD2-seed3|&nbsp;}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD2-team3|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score3|&nbsp;}}}
 
|-
| height="7" |
| colspan="3" rowspan="2" align="center"| {{{group2|}}}
 
|-
| height="7" |
| rowspan="2" style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD2-seed4|&nbsp;}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD2-team4|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD2-score4|&nbsp;}}}
| rowspan="2" style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
 
|-
| height="7" |
| rowspan="2" align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed7|2}}}
| rowspan="2" style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team7|&nbsp;}}}
| rowspan="2" align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score7|&nbsp;}}}
 
|-
| height="7" |
 
|-
| height="14" |&nbsp;
| align=center bgcolor="#f2f2f2" style="border:1px solid #aaa;"| {{{RD1-seed8|7}}}
| style="border:1px solid #aaa;" bgcolor=#f9f9f9| &nbsp;{{{RD1-team8|&nbsp;}}}
| align=center style="border:1px solid #aaa;" bgcolor=#f9f9f9| {{{RD1-score8|&nbsp;}}}
| style="border-width:2px 0 0 0; border-style:solid;border-color:black;"|&nbsp;
|}
<noinclude>
{{documentation}}
{{documentation}}
[[Category:Tournament bracket templates]]
[[Category:8 team bracket templates]]
</noinclude>
</noinclude>

Latest revision as of 02:20, 31 December 2020

  Quarter-finals Semi-finals Final
                           
  1       
8       
         
         
4     
  5       
          
        
  3       
6       
        
          
2     
  7       
[edit] [purge] Template documentation

Template:Lua

Usage

Template description

This template generates a generic 8-team (3-round) tournament bracket.

Complete set of blank template parameters

{{8TeamBracket 

| RD1         = 
| RD2         = 
| RD3         = 

| 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 = 

| RD1-seed5  = 
| RD1-team5  = 
| RD1-score5 = 
| RD1-seed6  = 
| RD1-team6  = 
| RD1-score6 = 

| RD1-seed7  =
| RD1-team7  =
| RD1-score7 =
| RD1-seed8  =
| RD1-team8  =
| RD1-score8 =

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

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

| RD3-seed1  =
| RD3-team1  = 
| RD3-score1 =
| RD3-seed2  = 
| RD3-team2  =
| RD3-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 (125 by default).
  • score-width – [OPTIONAL] sets the width of the score fields (20 by default).
  • RD1, RD2, RD3 – [OPTIONAL] The names of each round. Defaults are "Quarterfinals", "Semifinals", and "Finals", respectively.
  • group1, group2 – [OPTIONAL] The name of the first and second of two groups of four first-round teams, 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 (13)
    • xxxx is one of seed, team, or score
    • t is the position within the round, counting from top to bottom (18)

There are 8 first-round (quarterfinals) teams, 4 second-round (semifinals) teams, and 2 third-round (finals) teams.

See also