Template:Judo Bracket
{{Judo Bracket}} is part of a template family implementing Module:RoundN for usage in judo competition articles. The template {{Judo score}} is embedded into this template. This template is designed to be used for final block brackets ending at the Final, with 2 to 32 teams \ judoka in the bracket.
Usage
[edit]Standard use syntax
[edit]Semi-finals | Final | |||||
{{Judo Bracket|N4
| color =
| team-width =
| widescore =
<!-- /Team 1/Score 1/Team 2/Score 2 -->
<!-- semifinals -->
|||||
|||||
<!-- finals -->
|||||
}}
Module:RoundN Equivalent usage
[edit]{{#invoke:RoundN|N4
| skipmatch =
| omit_blanks = yes
| bold_winner = high
| 3rdplace = no
| color =
| team-width =
| widescore =
| flex_tree =
| RD1 =
| RD2 =
<!-- /Team 1/Score 1/Team 2/Score 2 -->
<!-- semifinals -->
|||{{Judo score|{{trim|}}}}||{{Judo score|{{trim|}}}}
|||{{Judo score|{{trim|}}}}||{{Judo score|{{trim|}}}}
<!-- finals -->
|||{{Judo score|{{trim|}}}}||{{Judo score|{{trim|}}}}
}}
Full syntax
[edit]{{Judo Bracket|N32
| style =
| scroll_height =
| scroll_head_unlock =
| skipmatch =
| omit_blanks =
| bold_winner =
| manualboldmatch =
| previewnumbers =
| 3rdplace =
| color =
| color_repechage =
| team-width =
| score-width =
| flex_tree =
| short_brackets =
| RD1 =
| RD2 =
| RD3 =
| RD4 =
| RD5 =
<!-- /Team 1/Score 1/Team 2/Score 2 -->
<!-- round of 32 -->
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
<!-- round of 16 -->
|||||
|||||
|||||
|||||
|||||
|||||
|||||
|||||
<!-- quarterfinals -->
|||||
|||||
|||||
|||||
<!-- semifinals -->
|||||
|||||
<!-- finals -->
|||||
}}
Parameter list
[edit]- red parameter names are required.
Parameter name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
N## | Number of slots for judoka in pool. N32 \ N16 \ N8 \ N4 \ N2.
N32 will be a five-stage-pool with 17 to 32 judoka. N8 will be a three-stage-pool with 5 to 8 judoka. | |||||||||||||||||||||||||||||||||||||||||||||||||||
{{{#}}} | Unnamed parameters (i.e. a value not prefixed by [param_name] = ) are read sequentially in groups of 5 such that:
Example 1[edit]{{Judo Bracket|N4
|Day 1|A|10s1|B|01s2
|Day 2|C|11s0|D|00s3
|tdb|A||C|
}}
Placing each group of 5 on a new line is optional, but does make it easier to read. Also, consider adding the comments such as | |||||||||||||||||||||||||||||||||||||||||||||||||||
style | Set the style parameter to add custom CSS to the bracket.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
skipmatch | If set, boxes for the #th match will not be shown. Most often used for playoffs or when the number of teams playing in the first round is not a power of 2. | |||||||||||||||||||||||||||||||||||||||||||||||||||
omit_blanks | If omit_blanks is set to yes (which is the default setting), then all parameters that would have been skipped will instead be shifted to the next non-skipped box.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
bold_winner | The bold_winner parameter accepts either 'high' (the default setting) or 'low' , which will automatically bold the text of the participant with the higher or lower score, respectively. In other words, set this to 'low' if the lower score wins and 'high' if the high score wins.
Note:
| |||||||||||||||||||||||||||||||||||||||||||||||||||
manualboldmatch | Used to prevent automatic bolding in the indicated matches. | |||||||||||||||||||||||||||||||||||||||||||||||||||
previewnumbers | Set |previewnumbers = yes to show numbers next to each match (useful for skipmatch and manualboldmatch ) when viewing on the template page.
Note that these numbers will not appear in article space. | |||||||||||||||||||||||||||||||||||||||||||||||||||
team-width | Set team-width to the desired width in pixels. (Default is 170)
| |||||||||||||||||||||||||||||||||||||||||||||||||||
score-width | Set score-width to the desired width in pixels. (Default is 30)
| |||||||||||||||||||||||||||||||||||||||||||||||||||
widescore | Setting |widescore=yes is equivalent to setting |score-width=60 , and is used for penalties to be shown properly. Ignored if score-width is set.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
flex_tree | Set |flex_tree=yes to make the brackets vertically more compact. That is, to have less space between matches of the same round.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
short_brackets | Set |short_brackets=yes to make the brackets horizontally more compact. That is, to have less space between matches of following rounds.
| |||||||||||||||||||||||||||||||||||||||||||||||||||
RD## | Allows to overried the Automated stage names. |
Deprecated parameters
[edit]The following is a list of Module:RoundN that are not supported by this template:
- columns
- skipmatch##
- manualboldmatch##
- Consol
See also
[edit]- {{Judo Bracket}}
- {{Judo Bracket QF}}
- {{Judo Repechage}}