Module:RoundN/doc: Difference between revisions

Content deleted Content added
color_repechage: new parameter
cat
 
(4 intermediate revisions by 3 users not shown)
Line 1:
{{#ifeq:{{SUBPAGENAME}}|sandbox||{{high-use | |Wikipedia talk:High-risk templates }}}}
{{Module rating |release<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{High-use}}
{{Module rating |release<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
 
== Usage ==
This is a module for meta templates such as {{tl|Round16}}, {{tl|Round8}}, etc. Though originally designed for sports, it can be used to present any tree.
Line 10 ⟶ 11:
Alternatively, the shorthand form <code><nowiki>{{#invoke:RoundN|N16}}</nowiki></code> (or any power of 2 between N2 and N512) is equivalent to {{code|<nowiki>{{#invoke:RoundN|main|columns = 4}}</nowiki>}}
 
==Parameter Listlist==
*{{red|red}} parameter names are required.
*''italicized'' parameter names are required in some cases
Line 49 ⟶ 50:
 
{{Module talk:RoundN/testcases/1|param=style|style=width:20em;font-size:70%}}
 
To center-align the whole block, use <code>style=margin:auto;</code>
 
|-
Line 242 ⟶ 245:
|style='text-align:center;vertical-align:top'|{{TOC tab|score-boxes}}
|style='background-color:#fff'|Set <code>score-boxes</code> to the desired number of score boxes per match. (Default is 1). The number can be followed by <code> + sum</code>, which will add one more score box with the sum of all the others. For examples, see [[Module_talk:RoundN/testcases/5|test case 5]] and [[Module_talk:RoundN/testcases/6|test case 6]].
 
|-
 
|style='text-align:center;vertical-align:top'|{{TOC tab|template}}
|style='background-color:#fff'|Set <code>|template=yes</code> if used to create a template for a specific game (add V.T.E. link using {{tl|navbar}}).
 
|-
Line 294 ⟶ 292:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Sports modules]]
 
}}</includeonly>