Content deleted Content added
more params I forgot to document... |
new skipmatch/manualboldmatch shorthand; preview numbers; |
||
Line 57:
{{Module talk:RoundN/testcases/1|param=scroll_head_unlock|scroll_head_unlock=yes|scroll_height=140|example=the code the {{code|scroll_height}} example}}
|-
Line 62 ⟶ 63:
|style='background-color:#fff'|If set, boxes for the #th match group 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.
{{Module talk:RoundN/testcases/1|param=skipmatch2|skipmatch2=yes}}
{{TOC tab|{{blue|'''NEW'''}}|shorthand (range)|depth=2}}:
'''Note:'''▼
The shorthand <code>|skipmatch = 1-2;4;6-7</code> will do the same thing as:
<pre>|skipmatch1=yes
|skipmatch2=yes
|skipmatch4=yes
|skipmatch6=yes
|skipmatch7=yes</pre>
▲'''Note:'''
*Unlike in the original templates, 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).
*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).
*Previously, skipmatch only worked in the first round. This limitation no longer applies. (See [[Module talk:RoundN/testcases/3]])
|-
Line 88 ⟶ 96:
|style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|manualboldmatch##}}|depth=2}}
|style='background-color:#fff'|
{{Module talk:RoundN/testcases/2|param=manualboldmatch1|param2=scroll_height|manualboldmatch1=yes|scroll_height=12em|result_arg=output|before=In the same manner as the <code>skipmatch</code> parameters, you may use |after= on '''Example 2''' to prevent automatic bolding in the first group, etc. Again, as with skipmatch, leading zeroes may be added as desired.}}
{{TOC tab|'''Shorthand'''|shorthand (range)|depth=3}}
The form <code>manualboldmatch = 1-3;6;9-12</code> is also available.
|-
|style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|previewnumbers}}}}
|style='background-color:#fff'|
Set <code>|previewnumbers = yes</code> to show numbers next to each match group (useful for {{code|skipmatch}} and {{code|manualboldmatch}}) when viewing on the template page.
Note that these numbers will not appear in article space.
|-
Line 132 ⟶ 152:
|style='text-align:center;vertical-align:top'|{{TOC tab|team-width}}
|style='background-color:#fff'|Set <code><nowiki>team-width</nowiki></code> to the desired width in pixels. (Default is 170)
|-
|style='text-align:center;vertical-align:top'|{{TOC tab|score-width}}
|style='background-color:#fff'|Set <code><nowiki>score-width</nowiki></code> to the desired width in pixels. (Default is 30)
|-
|