Module:RoundN/doc
![]() | This is a documentation subpage for Module:RoundN. It may contain usage information, categories and other content that is not part of the original module page. |
Usage
Basic form:
{{#invoke:{{BASEPAGENAME}}|main|columns = number of columns (3 columns for Round8, 4 columns for Round16, etc.)}}
Parameter List
- bold parameter names are required
- italicized parameter names are required in some cases
Parameter name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
columns | Number of columns/eliminations (3 columns for Round8, 4 columns for Round16, etc.)
Note
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{{#}}} | Unnamed parameters (i.e. a value not prefixed by [param_name] = ) are read sequentially in groups of 5 such that:
Example 1{{#invoke:RoundN|main|columns=2 |Day 1|A|'''7'''|B|5 |Day 2|C||D| |tdb|A||| }}
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
skipmatch[#] | No boxes will be shown for the #th match group. For example, adding |skipmatch2=yes to Example 1 will result in
Useful for playoffs or when the number of teams playing in a round is not a power of 2. Unlike in the original template, this module does not require leading zeroes in this parameter, i.e. skipmatch001 is the same as skipmatch1 (though it may make your template code easier to read if lead with an appropriate number of zeroes). Note:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
omit_blanks | Add |omit_blanks=yes|skipmatch2=yes to Example 1 and all parameters that would have been skipped will instead be shifted to the next non-skipped box. (This is turned off by default because most templates made before the release of this module were required to use empty parameters as placeholders.)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bold_winner | Instead of using wikimark-up to bold the names/scores, just set bold_winner like in the following:
Example 2turned off by default because most templates made before the release of this module were required to use empty parameters as placeholders.) {{#invoke:RoundN|main|columns=3 |bold_winner=yes |widescore=yes |Feb 1|A|7|B|5 |Feb 1|C|1|D|2 |Feb 1|E|3|F|5 |Feb 2|G||H| |Feb 2|A|3 (5)|C|3 (6) |Feb 3|F||| }}
Note:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
low_score_wins | Add |low_score_wins=yes to Example 2 to bold the team with the lower score if bold_winner is set to yes. (Example is cropped to save space)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
manualboldmatch[#] | In the same manner as the skipmatch parameters, you may use |manualboldmatch1=yes on Example 2 to prevent automatic bolding in the first group, etc.
|