Jump to content

Template:Judo Bracket/doc

From Wikipedia, the free encyclopedia

{{Judo Bracket/doc}} 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-finalsFinal
 
      
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{{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##

N##
Number of slots for judoka in pool. N32 \ N16 \ N8 \ N4 \ N2.

{{Judo Bracket|N##
}}

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|
}}
 
Semi-finalsFinal
 
      
 
Day 1
 
 
A10 Yellow card
 
tdb
 
B01 Two ShidoTwo Shido
 
A
 
Day 2
 
C
 
C11
 
 
D00 Hansoku makeHansoku makeHansoku make
 

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 <!-- Date-Place/Team 1/Score 1/Team 2/Score 2 --> on top and <!-- quarterfinals --> above the first group of 5 in the finals round, etc. The scores on the 3rd and 5th parameters are automatically displayed via {{Judo score}}.

style

style
Set the style parameter to add custom CSS to the bracket.

skipmatch

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

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

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:

  • If indicating penalties, as in 10s2, for one judoka – indicate them for the other even if they have got none (as in 01s0).

manualboldmatch

manualboldmatch
Used to prevent automatic bolding in the indicated matches.

previewnumbers

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

team-width
Set team-width to the desired width in pixels. (Default is 170)

score-width

score-width
Set score-width to the desired width in pixels. (Default is 30)

widescore

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

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.
Semi-finalsFinal
      
 
 
 
 
 
 

short_brackets

short_brackets
Set |short_brackets=yes to make the brackets horizontally more compact. That is, to have less space between matches of following rounds.
 
Semi-finalsFinal
 
      
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RD##

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]