Module:Team bracket/doc
Appearance
![]() | This is a documentation subpage for Module:Team bracket. It may contain usage information, categories and other content that is not part of the original module page. |
This module is being considered for merging with Module:RoundN. Please discuss this matter at this module's entry at templates for discussion to help reach a consensus. |
![]() | This Lua module is used on 51,000+ pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes at Wikipedia talk:High-risk templates before implementing them. |
This template implements a generic visual representation of the bracket of a single-elimination tournament with any number or rounds. For common usage, use the {{64TeamBracket}}, {{32TeamBracket}}, {{16TeamBracket}}, {{8TeamBracket}}, {{4TeamBracket}}, {{2TeamBracket}} templates.
Usage
{{#invoke: Team bracket | teamBracket | rounds = | seed-width = | team-width = | score-width = | RD1 = | RD1-group1 = | RD1-seed1 = | RD1-team1 = | RD1-score1 = ... }}
Parameter list
The parameters are as follows:
seed-width –
the width of the cells for seeds.team-width –
the width of the cells for team names.score-width –
the width of the cells for scores.compact –
set toyes
for compact bracket and to disable groups.seeds –
set tono
to omit seed cells, andyes
to always show seed cellsnowrap –
set toyes
to prevent lines from wrappingbyes –
set to1
,2
, ... to specify the maximum round number with byesheadings –
set tono
to omit the column headings
RDn –
The name of round n.RDn-groupm –
The name of group m in round n.RDn-seedm –
The seed of team m in round n.RDn-teamm –
The name of team m in round n.RDn-scorem –
The score of team m in round n.
Parameter descriptions
- seed-width
- The width of the seed cells in CSS. Examples:
N [em/%/px]
auto
- team-width
- The width of the team name cells in CSS.
- score-width
- The width of the score cells in CSS.
- 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. m is the zero-padded position.
- RDn-scorem
- The score of team m in round n. m is the zero-padded position.
Examples
No seeds
{{#invoke: Team bracket | teamBracket | rounds = 2 | seeds = no }}
Semifinals | Finals | ||||||
Groups
{{#invoke: Team bracket | teamBracket | autoseeds = y | rounds = 3 | RD1-group1 = Pacific | RD1-group2 = Mountain | RD2-group1 = West }}
Quarterfinals | Semifinals | Finals | ||||||||||||
1 | ||||||||||||||
8 | ||||||||||||||
Pacific | ||||||||||||||
5 | ||||||||||||||
4 | ||||||||||||||
West | ||||||||||||||
3 | ||||||||||||||
6 | ||||||||||||||
Mountain | ||||||||||||||
7 | ||||||||||||||
2 |