Jump to content

Template:24TeamBracket/doc

From Wikipedia, the free encyclopedia

This template implements a generic visual representation of the bracket of a single-elimination tournament with 5 rounds.

Usage

{{24TeamBracket
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Per MOS:ACCESS#Font size and MOS:SMALLFONT, "avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections". Since this template's text is already reduced to 90% of the normal size, use of the {{Small}} template or <small>...</small> tags within this template produces a font size that is 77% of the page default, well below the 85% minimum specified in the linked guidelines.

Parameters

Parameter Description
maxround maximum round to display. This parameter should be omitted unless it is less than the default value set by rounds.
seed-width the width of the cells for seeds. Plain numbers are assumed to be in px units (e.g., 25 or 25px 2em for 2em or auto for automatic width sizing)
team-width the width of the cells for team names. Plain numbers are assumed to be in px units (e.g., 200 for 200px or 15em for 15em or auto for automatic width sizing)
score-width the width of the cells for scores. Plain numbers are assumed to be in px units (e.g., 25 or 25px 2em for 2em or auto for automatic width sizing)
compact set to yes for compact bracket and to disable groups.
seeds set to no to omit seed cells, and yes to always show seed cells
sets or legs the number of sets/legs in each round of matches (delimit with / for different numbers of sets or legs per round)
nowrap set to yes to prevent lines from wrapping
byes set to 1, 2, ... to specify the maximum round number with byes
boldwinner set to high to automatically bold the seed/team/scores for the team with the highest score, and low for the lowest score
hideomittedscores set to 1 to hide all omitted score cells. To only omit score cells from the second set or leg onwards, use 2
sepwidth set to 1 or 2 to override the default separator width
headings set to no to omit the column headings
RDn The name of round n. Defaults are "Round of m", ..., "Quarterfinals", "Semifinals", and "Finals", where m is the number of teams in the round.
RDn-groupm The name of group m in round n. For each round, every set of four teams is classified as a group.
RDn-seedm The seed of team m in round n. For round 1, this value defaults to the conventional seed allocation for tournaments. If omitted, the cell is hidden. To hide seeds for round 1, the value must be explicitly set to be empty. m is the zero-padded position.
RDn-teamm The name of team m in round n.
RDn-scorem The score of team m in round n.
RDn-scorem-s The score of team m in round n and set s (or leg for multileg matches). Alternatively, the last score in the round can be specified using the -agg suffix.
RD1-omit Selectively omit teams from the first round. For example, use 1 / 2 / 5 / 6 to omit team1, team2, team5, and team6 from the first round.
RD-shade Background color for the RDn headings
RDn-shadem-s Background coloring for team m in round n and set s (or leg for multileg matches).
RDn-RDn+1-path Set to 0 to omit the path between round n and round n+1.
float Float the bracket to the left or right or center or centre of the page.
clear Set to no to prevent "clearing" the left/right side of the page before floating to the left/right. This parameter is only valid with |float=left or |float=right.
aggregate Set to sets or legs to sum the sets/legs won and append to the end of the scores. Set to score to sum the scores from each set/leg and append to the end of the scores. Set to y or yes to enable the -agg suffix, but without any auto computation. Only works when there are two or more legs/sets in the round. Any automatically computed value can be overridden by setting the value manually with the -agg suffix for the score.

Alternatives to avoid Wikipedia's Post-expand include size limit

Pages with many brackets or large brackets, especially those containing flag icons, may come close to or exceed Wikipedia's Post-expand include size limit. In these cases consider using modules directly instead:

Examples

No seeds

{{24TeamBracket
| seeds = no
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Compact

{{24TeamBracket
| compact = yes
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Third place

{{24TeamBracket
| RD1 =
| RD5b = Third place

| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Groups

{{24TeamBracket
| RD1 =
| RD1-group1  = Pacific
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Sets

{{24TeamBracket
| sets = 3/5
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1-1=
| RD1-score1-2=
| RD1-score1-3=
 ...
}}

Aggregate

{{24TeamBracket
| legs = 2
| aggregate = y
| RD1 =

| RD1-seed1   =
| RD1-team1   =
| RD1-score1-1=
| RD1-score1-2=
| RD1-score1-agg=
 ...
}}


See also

Complete set of blank template parameters

{{24TeamBracket
|RD1=
|RD2=
|RD3=
|RD4=
|RD5=

| RD1-seed01  =
| RD1-team01  =
| RD1-score01 =
| RD1-seed02  =
| RD1-team02  =
| RD1-score02 =
| RD1-seed03  =
| RD1-team03  =
| RD1-score03 =
| RD1-seed04  =
| RD1-team04  =
| RD1-score04 =
| RD1-seed05  =
| RD1-team05  =
| RD1-score05 =
| RD1-seed06  =
| RD1-team06  =
| RD1-score06 =
| RD1-seed07  =
| RD1-team07  =
| RD1-score07 =
| RD1-seed08  =
| RD1-team08  =
| RD1-score08 =
| RD1-seed09  =
| RD1-team09  =
| RD1-score09 =
| RD1-seed10  =
| RD1-team10  =
| RD1-score10 =
| RD1-seed11  =
| RD1-team11  =
| RD1-score11 =
| RD1-seed12  =
| RD1-team12  =
| RD1-score12 =
| RD1-seed13  =
| RD1-team13  =
| RD1-score13 =
| RD1-seed14  =
| RD1-team14  =
| RD1-score14 =
| RD1-seed15  =
| RD1-team15  =
| RD1-score15 =
| RD1-seed16  =
| RD1-team16  =
| RD1-score16 =


| RD2-seed01  =
| RD2-team01  =
| RD2-score01 =
| RD2-seed02  =
| RD2-team02  =
| RD2-score02 =
| RD2-seed03  =
| RD2-team03  =
| RD2-score03 =
| RD2-seed04  =
| RD2-team04  =
| RD2-score04 =
| RD2-seed05  =
| RD2-team05  =
| RD2-score05 =
| RD2-seed06  =
| RD2-team06  =
| RD2-score06 =
| RD2-seed07  =
| RD2-team07  =
| RD2-score07 =
| RD2-seed08  =
| RD2-team08  =
| RD2-score08 =
| RD2-seed09  =
| RD2-team09  =
| RD2-score09 =
| RD2-seed10  =
| RD2-team10  =
| RD2-score10 =
| RD2-seed11  =
| RD2-team11  =
| RD2-score11 =
| RD2-seed12  =
| RD2-team12  =
| RD2-score12 =
| RD2-seed13  =
| RD2-team13  =
| RD2-score13 =
| RD2-seed14  =
| RD2-team14  =
| RD2-score14 =
| RD2-seed15  =
| RD2-team15  =
| RD2-score15 =
| RD2-seed16  =
| RD2-team16  =
| RD2-score16 =

| RD3-seed01  =
| RD3-team01  =
| RD3-score01 =
| RD3-seed02  =
| RD3-team02  =
| RD3-score02 =
| RD3-seed03  =
| RD3-team03  =
| RD3-score03 =
| RD3-seed04  =
| RD3-team04  =
| RD3-score04 =
| RD3-seed05  =
| RD3-team05  =
| RD3-score05 =
| RD3-seed06  =
| RD3-team06  =
| RD3-score06 =
| RD3-seed07  =
| RD3-team07  =
| RD3-score07 =
| RD3-seed08  =
| RD3-team08  =
| RD3-score08 =

| RD4-seed01  =
| RD4-team01  = 
| RD4-score01 =
| RD4-seed02  =
| RD4-team02  =
| RD4-score02 =
| RD4-seed03  =
| RD4-team03  =
| RD4-score03 =
| RD4-seed04  =
| RD4-team04  =
| RD4-score04 =

| RD5-seed01  =
| RD5-team01  =
| RD5-score01 =
| RD5-seed02  =
| RD5-team02  =
| RD5-score02 =
}}