Modul:Team bracket/dok
Utseende
Dette er dokumentasjonssiden for Modul:Team bracket
![]() | Denne modulen brukes på 5,000+ sider. Det anbefales at endringer testes i en sandkasse før de legges inn. Diskuter gjerne også endringer på diskusjonssiden først. |
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 | main | 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 cellssets –
the number of sets in each match orlegs –
for the number of legs in a match (delimit with / for different numbers of sets or legs per round)nowrap –
set toyes
to prevent lines from wrappingbyes –
set to1
,2
, ... to specify the maximum round number with byesboldwinner –
set tohigh
to automatically bold the seed/team/scores for the team with the highest score, andlow
for the lowest scoresepwidth –
set to1
or2
to override the default separator widthheadings –
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.RDn-scorem-s –
The score of team m in round n and set s (or leg for multileg matches).
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 | main | rounds = 2 | seeds = no }}
Semifinaler | Finale | ||||||
Groups
{{#invoke: Team bracket | main | autoseeds = y | rounds = 3 | RD1-group1 = Pacific | RD1-group2 = Mountain | RD2-group1 = West }}
Kvartfinaler | Semifinaler | Finale | ||||||||||||
1 | ||||||||||||||
8 | ||||||||||||||
Pacific | ||||||||||||||
5 | ||||||||||||||
4 | ||||||||||||||
West | ||||||||||||||
3 | ||||||||||||||
6 | ||||||||||||||
Mountain | ||||||||||||||
7 | ||||||||||||||
2 |
Tennis
{{#invoke: Team bracket | main | autoseeds = y | rounds = 3 | sets = 3 / 5 / 5 }}
Kvartfinaler | Semifinaler | Finale | ||||||||||||||||||||||
1 | ||||||||||||||||||||||||
8 | ||||||||||||||||||||||||
5 | ||||||||||||||||||||||||
4 | ||||||||||||||||||||||||
3 | ||||||||||||||||||||||||
6 | ||||||||||||||||||||||||
7 | ||||||||||||||||||||||||
2 |
Bold winner with byes and hide omitted scores
{{#invoke: Team bracket | main |rounds=3|byes=1|legs=3/5/5|sepwidth=1|boldwinner=high|hideomittedscores = 1 |RD1-seed3=4|RD1-team3=[[BC Vienna|Hallmann Vienna]]|RD1-score3-1=80|RD1-score3-2=66|RD1-score3-3=64 |RD1-seed4=5|RD1-team4=[[WBC Wels|WBC Raiffeisen Wels]]|RD1-score4-1=64|RD1-score4-2=81|RD1-score4-3=69 |RD1-seed7=3|RD1-team7=[[Kapfenberg Bulls|ece Bulls Kapfenberg]]|RD1-score7-1=97|RD1-score7-2=95 |RD1-seed8=6|RD1-team8=[[Arkadia Traiskirchen Lions]]|RD1-score8-1=80|RD1-score8-2=82 <!--SF--> |RD2-seed1=1|RD2-team1=[[Oberwart Gunners|Redwell Gunners Oberwart]]|RD2-score1-1=75|RD2-score1-2=89|RD2-score1-3=57|RD2-score1-4=79|RD2-score1-5=77 |RD2-seed2=5|RD2-team2=[[WBC Wels|WBC Raiffeisen Wels]]|RD2-score2-1=84|RD2-score2-2=83|RD2-score2-3=63|RD2-score2-4=62|RD2-score2-5=67 |RD2-seed3=2|RD2-team3=[[Swans Gmunden]]|RD2-score3-1=73|RD2-score3-2=79|RD2-score3-3=68|RD2-score3-4=59 |RD2-seed4=3|RD2-team4=[[Kapfenberg Bulls|ece Bulls Kapfenberg]]|RD2-score4-1=92|RD2-score4-2=65|RD2-score4-3=81|RD2-score4-4=61 <!--F--> |RD3-seed1=1|RD3-team1=[[Oberwart Gunners|Redwell Gunners Oberwart]]|RD3-score1-1=61|RD3-score1-2=56|RD3-score1-3=55|RD3-score1-4=72|RD3-score1-5=64 |RD3-seed2=3|RD3-team2=[[Kapfenberg Bulls|ece Bulls Kapfenberg]]|RD3-score2-1=57|RD3-score2-2=66|RD3-score2-3=56|RD3-score2-4=73|RD3-score2-5=73 }}
Kvartfinaler | Semifinaler | Finale | ||||||||||||||||||||||
1 | Redwell Gunners Oberwart | 75 | 89 | 57 | 79 | 77 | ||||||||||||||||||
5 | WBC Raiffeisen Wels | 84 | 83 | 63 | 62 | 67 | ||||||||||||||||||
4 | Hallmann Vienna | 80 | 66 | 64 | ||||||||||||||||||||
5 | WBC Raiffeisen Wels | 64 | 81 | 69 | ||||||||||||||||||||
1 | Redwell Gunners Oberwart | 61 | 56 | 55 | 72 | 64 | ||||||||||||||||||
3 | ece Bulls Kapfenberg | 57 | 66 | 56 | 73 | 73 | ||||||||||||||||||
2 | Swans Gmunden | 73 | 79 | 68 | 59 | |||||||||||||||||||
3 | ece Bulls Kapfenberg | 92 | 65 | 81 | 61 | |||||||||||||||||||
3 | ece Bulls Kapfenberg | 97 | 95 | |||||||||||||||||||||
6 | Arkadia Traiskirchen Lions | 80 | 82 |