Template:12TeamBracket-2Elim: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
two bracket support |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Build bracket|main |
<includeonly>{{#invoke:Build bracket|main |
||
| rounds=6 |
| rounds={{#if:{{{groups|}}}|5|6}} |
||
| col1-headers = 1, |
| col1-headers = 1{{#if:{{{groups|}}}||,16}} |
||
⚫ | |||
| col1-teams = 4,5,8,9,12,13,16,17, 21,22,25,26,29,30,33,34 |
|||
| |
| col3-headers = 1{{#if:{{{groups|}}}||,16}} |
||
⚫ | |||
| col2-teams = 3,4,7,8,11,12,15,16, 23,24,31,32 |
|||
| |
| col5-headers = {{#if:{{{groups|}}}|1|16}} |
||
| col3-teams = 5,6,13,14, 22,23,30,31 |
|||
⚫ | |||
| col4-teams = 9,10, 26,27 |
|||
| col5-headers = 19 |
|||
⚫ | |||
| col5-teams = 25,26 |
|||
| col6-headers = 1 |
| col6-headers = 1 |
||
| col6-teams = 17,18 |
|||
| col1-matches = {{#switch:{{{upperstyle|}}} |
|||
| col1-col2-paths = {{#if:{{{RD1-reseed|}}}||4/5-3/4, 8/9-7/8, 12/13-11/12, 16/17-15/16}}, 21/22-23/24, 25/26-23/24, 29/30-31/32, 33/34-31/32 |
|||
| 2 = 4.5,7.5,10.5,13.5 |
|||
| col2-col3-paths = 3/4-5/6, 7/8-5/6, 11/12-13/14, 15/16-13/14, 23/24-22/23, 31/32-30/31 |
|||
| #default = 4,7, {{#if:{{both|{{{groups|}}}|{{{RD1-single-elim|}}}}}||10,13}} |
|||
| col3-col4-paths = 5/6-9/10, 13/14-9/10, 22/23-26/26, 30/31-26/27 |
|||
}}, {{#if:{{{groups|}}}|16,19|18,21, {{#if:{{{RD1-single-elim|}}}||24,27}}}} |
|||
| col4-col5-paths = {{#ifeq:{{{maxrounds|}}}|5||9/10-9/10}}, 26/27-25/26 |
|||
| col2-matches = 3,6,{{#if:{{{groups|}}}|11.5|9,12}}, {{#if:{{{groups|}}}|15,18,23.5|19.5,25.5}} |
|||
⚫ | |||
| col3-matches = 4.5,10.5, {{#switch:{{{lowerstyle|}}} |
|||
| 2 = 18,22.5 |
|||
| #default = {{#if:{{{groups|}}}|16.5,22.5|18.5,24.5}} |
|||
}} |
|||
| col4-matches = 7.5, {{#switch:{{{lowerstyle|}}} |
|||
| 2 = 20.5 |
|||
| #default = {{#if:{{{groups|}}}|19.5|21.5}} |
|||
}} |
|||
| col5-matches = {{#switch:{{{lowerstyle|}}} |
|||
| 2 = 19.5 |
|||
| #default = {{#if:{{{groups|}}}|13.5|20.5}} |
|||
}} |
|||
| col6-matches = {{#switch: {{{lowerstyle|}}} |
|||
| 2 = 13.5 |
|||
| #default = 14 |
|||
}} |
|||
| col1-col2-paths = {{#switch:{{{upperstyle|}}} |
|||
| 2 = (4.5,7.5)-6,(10.5,13.5)-12 |
|||
| #default = 4-3,7-6,{{#if:{{{groups|}}}|{{#if:{{{RD1-single-elim|}}}||(10,13)-11.5}}|10-9,13-12}} |
|||
}}, {{#if:{{{groups|}}}|16-15,19-18|(18,21)-19.5}}, {{#if:{{{RD1-single-elim|}}}||(24,27)-25.5}} |
|||
| col2-col3-paths = (3,6)-4.5, {{#if:{{{groups|}}}|11.5-10.5|(9,12)-10.5}}, {{#switch:{{{lowerstyle|}}} |
|||
| 2 = (19.5,25.5)-22.5 |
|||
| #default = {{#if:{{{groups|}}}|(15,18)-16,5, 23.5-22.5|19.5-18.5,25.5-24.5}} |
|||
}} |
|||
| col3-col4-paths = (4.5,10.5)-7.5, {{#switch:{{{lowerstyle|}}} |
|||
| 2 = (18,22.5)-20.5 |
|||
| #default = {{#if:{{{groups|}}}|(16.5,22.5)-19.5|(18.5,24.5)-21.5}} |
|||
}} |
|||
| col4-col5-paths = {{#if:{{{groups|}}}||{{#ifeq:{{{maxround|}}}|5||7.5-7.5,}}}} {{#switch:{{{lowerstyle|}}} |
|||
| 2 = 20.5-19.5 |
|||
| #default = {{#if:{{{groups|}}}|(7.5,19.5)-13.5|21.5-20.5}} |
|||
}} |
|||
⚫ | |||
| 2 = (7.5,19.5)-13.5 |
|||
| #default = (7.5,20.5)-14 |
|||
}} |
|||
<!-- Defaults --> |
<!-- Defaults --> |
||
| RD1 = Upper round 1 |
| RD1 = {{#if:{{{groups|}}}|First round|Upper round 1}} |
||
| RD2 = Upper round 2 |
| RD2 = {{#if:{{{groups|}}}|Second round|Upper round 2}} |
||
| RD3 = Upper round 3 |
| RD3 = {{#if:{{{groups|}}}|Third round|Upper round 3}} |
||
| RD4 = Upper final |
| RD4 = {{#if:{{{groups|}}}|Semifinals|Upper final}} |
||
| RD5b = Lower final |
| RD5b = Lower final |
||
}} |
}}</includeonly><noinclude>{{documentation}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 17:14, 24 November 2022
Variants
[edit]- Standard
{{12TeamBracket-2Elim}}
Upper round 1 | Upper round 2 | Upper round 3 | Upper final | Final | ||||||||||||||||||||||||
Lower round 1 | Lower round 2 | Lower round 3 | Lower round 4 | Lower final | ||||||||||||||||||||||||
- Upper bracket
{{12TeamBracket-2Elim
| upperstyle = 2
...
}}
Upper round 1 | Upper round 2 | Upper round 3 | Upper final | Final | ||||||||||||||||||||||||
Lower round 1 | Lower round 2 | Lower round 3 | Lower round 4 | Lower final | ||||||||||||||||||||||||
- Lower bracket
{{12TeamBracket-2Elim
| lowerstyle = 2
...
}}
Upper round 1 | Upper round 2 | Upper round 3 | Upper final | Final | ||||||||||||||||||||||||
Lower round 1 | Lower round 2 | Lower round 3 | Lower round 4 | Lower final | ||||||||||||||||||||||||
- Two brackets
{{12TeamBracket-2Elim
| groups = y
...
}}
First round | Second round | Third round | Semifinals | Final | |||||||||||||||||||
This template uses Lua: |
Usage
[edit]{{12TeamBracket-2Elim
| 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
[edit]Parameter | Description | Default |
---|---|---|
maxround |
final round to display. This parameter should be omitted unless it is less than the default value set by rounds . |
|
minround |
first round to display. | 1
|
height |
the amount of vertical visibility desired for the bracket. Creates a vertical scroll bar. Enter a number with units (e.g., 30em or 480px ). |
|
col-spacing |
the amount of horizontal space between rounds. Enter as a plain number (e.g., 10 for 10px). |
5
|
seed-width |
the width of the cells for seeds. Plain numbers are assumed to be in px units (e.g., 25 for 25px 2em for 2em) |
25
|
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) |
150
|
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) |
25
|
agg-width |
the width of the cells for aggregate scores. score-width will change aggregate score widths unless this parameter is used. Plain numbers are assumed to be in px units (e.g., 25 or 25px 2em for 2em) |
25
|
seeds |
set to no to omit seeds in in all matches. set to yes to show seed cells to show for all matches. |
|
legs |
the number of legs for all rounds. Use RDm-legs to individually set columns. Use RDm-legsk to individually set teams. |
1
|
autolegs |
set to yes to automatically generate score cells per team. If legs or RDm-legs is used, autolegs will be set to no . |
no
|
byes |
set to yes to hide any team cells that are empty. Alternatively, set to m to have rounds 1 through m hide any team cells that are empty. Use RDm-byes for just matches under column m. Use RDmh-byes for just matches under header h only in column m. |
no
|
show-bye-paths |
set to yes to replace any team cells that that are hidden byes with a path. |
no
|
aggregate |
set to yes to add an aggregate score box to each match. Only matches with two or more legs will show the aggregate score box. |
no
|
boldwinner |
set to yes to automatically bold the seed/team/score with the higher score in each match. |
no
|
shift |
vertically shifts all of the entries by the number entered. Use RDm-shift for individual in columns. |
0
|
RDm , RDmh |
The header text of the (alpha hth) header in column m (e.g., RD1 or RD1a for the first header and RD1b for the second header in column 1). |
|
RDm-seedk |
The seed of the kth team in column m. Alternatively, use RDmh-seedk for the kth team under header mh. |
|
RDm-teamk |
The name of the kth team in column m. Alternatively, use RDmh-teamk for the kth team under header mh. |
|
RDm-scorek |
The score of the kth team in column m. Alternatively, use RDmh-scorek for the kth team under header mh. Append the suffix -l for the lth leg or -agg for the aggregate score. |
|
RDm-textk |
The text above the kth match in column m. Alternatively, use RDmh-textk for the kth match under header mh. |
|
RDm-groupk |
The text for the kth group in column m. Group text will appear to the left of whenever two paths meet. | |
RD-shade |
the background color (in hex format, e.g. #ABCDEF ) of all headers. Use RDm-shade or RDmh-shade for individual headers. |
#F2F2F2
|
RDm-RD(m+1)-path [a] |
set to no or 0 to omit the paths from round m to round m+1. |
yes
|
paramstyle [b] |
set to numbered change the parameter name style of RDm-textk , RDm-seedk , RDm-teamk , and RDm-scorek to a numbered notation (|1= ,|2= ...). Set |seeds=yes add seeds. |
indexed
|
Parameter hierarchy
[edit]- Whenever there are multiple headers in a single column, more than one parameter may be assigned to a cell value. For example, in the following bracket, both
|RD1-team3=
and|RD1b-team1=
can be used to assign the third team in the first column. By default, entries with subheader prefixes will override those without. In the below example,RD1b-team1
will override any value that has been set byRD1-team3
.
Upper round | |||
Lower round | |||
RD1-team3 or RD1b-team1 | |||
- Parameters used in articles take precedence over parameters used in the template itself. For example, suppose ArticleX used the template NTeamBracket, and suppose NTeamBracket had the parameter
|RD1-seed1=1
set. If ArticleX implemented{{NTeamBracket|RD1-seed1=2}}
, then the first team in round 1 would have a seed of 2.
Examples
[edit]Text
[edit]{{12TeamBracket-2Elim
| RD1-text1 = Text 1
| RD1-text2 = Text 2
| RD2-text1 = Text 3
| RD1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1 =
...
}}
Groups
[edit]{{12TeamBracket-2Elim
| RD1-group1 = Group 1
| RD1-group2 = Group 2
| RD2-group1 = Group 3
| RD1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1 =
...
}}
Legs and aggregate
[edit]{{12TeamBracket-2Elim
| legs = 2
| RD1-legs = 3
| aggregate = y
| RD1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1-1=
| RD1-score1-2=
| RD1-score1-3=
| RD1-score1-agg=
...
}}
Byes
[edit]{{12TeamBracket-2Elim
| RD1-byes = y
| RD1 =
| RD1-seed1 =
| RD1-team1 = Team 1
| RD1-score1 =
| RD1-seed2 =
| RD1-team2 = Team 2
| RD1-score2 =
...
}}
Numbered parameters
[edit]{{12TeamBracket-2Elim
| paramstyle = numbered
| RD1 =
| Text 1 | Team 1 | S1 | Team 2 | S2
| Text 2 | Team 3 | S3 | Team 4 | S4
...
}}