Content deleted Content added
more params |
|||
Line 5:
<pre>{{#invoke:{{BASEPAGENAME}}|main|columns = number of columns (3 columns for Round8, 4 columns for Round16, etc.)}}</pre>
*'''bold''' parameter names are required
*''italicized'' parameter names are required in some cases
Line 11:
! Parameter name
! Description
|-
|style='text-align:center;vertical-align:top;width:9em'| {{
| Number of columns/eliminations (3 columns for Round8, 4 columns for Round16, etc.)
'''Note'''
* For <code>columns</code> ''less than 4'' (i.e. Round2-Round8), the 3rd Place match box is hidden by default. For <code>columns</code> ''greater or equal to 4'', the 3rd Place match box is visible by default. This reflects the behavior of the templates prior to this module's release.
|-
|style='text-align:center;vertical-align:top'|{{
|Unnamed parameters (i.e. a value not prefixed by <code>[param_name] =</code>) are read sequentially in groups of 5 such that:
====
<pre>{{#invoke:RoundN|main|columns=2
|Day 1|A|'''7'''|B|5
Line 32 ⟶ 36:
}}
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 <code><nowiki><!-- Date-Place/Team 1/Score 1/Team 2/Score 2 --></nowiki></code> on top and <code><nowiki><!-- Finals --></nowiki></code> above the first group of 5 in the finals round, etc.
|-
|style='text-align:center;vertical-align:top'| {{TOC tab|skipmatch[#]}}
|No boxes will be shown for the #th match group. For example, adding <code><nowiki>|</nowiki>skipmatch2=yes</code> to '''
{{#invoke:RoundN|main|columns=2|skipmatch2=yes
|Day 1|A|'''7'''|B|5
Line 45 ⟶ 51:
*The 5 parameters that would have populated the skipped box will be ignored regardless of value unless <code>omit_blanks</code> is set to 'yes' (see below).
*Match skipping is currently only allowed in the first round (in this case, the 'Semi Finals'). For example, setting <code>columns=3</code> normally has 4 matches in the first round; thus, skipmatch5 and beyond will be ignored.
|-
|style='text-align:center;vertical-align:top'|{{TOC tab|omit_blanks|depth=2}}
|Add <code><nowiki>|omit_blanks=yes|skipmatch2=yes</nowiki></code> to '''
{{#invoke:RoundN|main|columns=2|skipmatch2=yes|omit_blanks=yes
|Day 1|A|'''7'''|B|5
Line 53 ⟶ 61:
|tdb|A|||
}}
|-
|bold_winner▼
|style='text-align:center;vertical-align:top'|{{TOC tab|bold_winner}}
|Instead of using wikimark-up to bold the names/scores, just set <code>bold_winner</code> like in the following:
====
turned off by default because most templates made before the release of this module were required to use empty parameters as placeholders.)
<pre>{{#invoke:RoundN|main|columns=3
Line 83 ⟶ 93:
* If scores are tied, neither are bolded.
|-
|style='text-align:center;vertical-align:top'|{{TOC tab|low_score_wins|depth=2}}
||Add <code>|low_score_wins=yes</code> to '''Example 2''' to bold the team with the lower score if <code>bold_winner</code> is set to yes. (Example is cropped to save space)
<div style='height:200px;overflow:hidden'>{{#invoke:RoundN|main|columns=3
▲|bold_winner=yes
|widescore=yes
|low_score_wins=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|||
}}</div>
|-
|style='text-align:center;vertical-align:top'|{{TOC tab|manualboldmatch[#]|depth=2}}
||In the same manner as the <code>skipmatch</code> parameters, you may use <code>|manualboldmatch1=yes</code> on '''Example 2''' to prevent automatic bolding in the first group, etc.
<div style='height:150px;overflow:hidden'>{{#invoke:RoundN|main|columns=3
|bold_winner=yes
|widescore=yes
|low_score_wins=yes
|manualboldmatch1=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|||
}}</div>
|}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
|