Module:RoundN/doc: Difference between revisions

Content deleted Content added
No edit summary
whew.. .done
Line 30:
|Day 2|C||D|
|tdb|A|||
}}</nowiki>|br=0}}
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.
 
Line 87:
|style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|manualboldmatch##}}|depth=2}}
|style='background-color:#fff'|
{{Module talk:RoundN/testcases/2|result_arg=output|param=manualboldmatch1|manualboldmatch1=yes|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, leading zeroes may be added as desired.}}
 
|-
 
|style='text-align:center;vertical-align:top'|{{TOC tab|RD##}}
|style='background-color:#fff'|Use <code>RD#</code>, replacing # with the desired column such that 1 is the leftmost round and NX is the rightmost when <code>columns = NX</code>. For example:
{{demo|<nowiki>{{#invoke:RoundN|main|columns=7
|RD2 = {{red|'''SECOND ROUND'''}}|RD7 = {{red|'''Championship'''}} | RD8 = {{red|'''So close, yet so far'''}}
|RD1 = Auditions|RD3 = Blah Blah|RD7 = Championship
|scroll_height=15em
|style=display:inline-block;height:15em;max-width:80%;overflow:auto;border:2px solid;padding:2px
|1}}</nowiki>}}
'''Note'''
*RD[N+1] = Third Place, and will perform the job of the <code>Consol</code> parameter if the latter is omitted, i.e. RD[N+1] is ignored if Consol is true. Also, this alternate name for Consol was not available prior to the release of this module (and is provided because the module's programmer thought 'Consol' was unintuitive).
|-
 
|style='text-align:center;vertical-align:top'|{{TOC tab|3rdplace}}
|style='background-color:#fff'|By default, <code><nowiki>|3rdplace=</codenowiki></nowikicode> is set to 'yes' when <code>columns</code> is greater than 3 and 'no' otherwise. Override as desired. (See <code>Consol</code> if you wish to rename this heading)
 
{{demo|<nowiki>{{#invoke:RoundN|main|columns=1
|1
}}</nowiki>|br=0}}
 
|-
 
|style='text-align:center;vertical-align:top'|{{TOC tab|Consol|depth=2}}
|style='background-color:#fff'|Set <code>Consol=name</code> to change the 'Third Place' label to 'name'. You may also use the form RD# where # = columns + 1.
{{demo|<nowiki>{{#invoke:RoundN|main|columns=1
|3rdplace=yes
|Consol=Runner up}}
|1
}}</nowiki>|br=0}}
 
|-
Line 111 ⟶ 125:
|color=yes
|3rdplace=yes
|1||||
|2||||
|3||||
|4||||
|5||||
|6||||
|7|Gold medalist|3|Silver medalist|2
|8|Bronze medalist|1||0
}}
|-
 
|style='text-align:center;vertical-align:top'|{{TOC tab|3rdplace}}
|style='background-color:#fff'|By default, <code><nowiki>|3rdplace=</code></nowiki> is set to 'yes' when <code>columns</code> is greater than 3 and 'no' otherwise. Override as desired.
 
|}