Jump to content

Module:RoundN/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codehydro (talk | contribs) at 20:24, 30 December 2014 (alpha release and basic doc). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

  • For columns less than 4 (i.e. Round2-Round8), the 3rd Place match box is hidden by default. For columns 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.
{{{#}}} Unnamed parameters (i.e. a value not prefixed by [param_name] =) are read sequentially in groups of 5 such that:

Template 1

{{#invoke:RoundN|main|columns=2
 |Day 1|A|'''7'''|B|5
 |Day 2|C||D|
 |tdb|A|||
}}
 
Semi-finalsFinal
 
      
 
Day 1
 
 
A7
 
tdb
 
B5
 
A
 
Day 2
 
 
 
C
 
 
D
 

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 <!-- Date-Place/Team 1/Score 1/Team 2/Score 2 --> on top and <!-- Finals --> above the first group of 5 in the finals round, etc.

skipmatch[#] No boxes will be shown for the #th match group. For example, adding |skipmatch2=yes to Template 1 will result in
 
Semi-finalsFinal
 
      
 
Day 1
 
 
A7
 
tdb
 
B5
 
A
 
 
 
 
 
 
 

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:

  • The next 5 unnamed parameters will be ignored regardless of value unless omit_blanks is set to 'yes' (see below).
  • Skipping is currently only allowed in the first round (in this case, the 'Semi Finals'). For example, setting columns=3 normally has 4 matches in the first round; thus, skipmatch5 and beyond will be ignored.
omit_blanks Add |omit_blanks=yes|skipmatch2=yes to Template 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.)
 
Semi-finalsFinal
 
      
 
Day 1
 
 
A7
 
Day 2
 
B5
 
C
 
 
D
 
 
 
 
bold_winner Instead of using wikimark-up to bold the names/scores, just set bold_winner like in the following:

Template 2

turned off by default because most templates made before the release of this module were required to use empty parameters as placeholders.)

 
Quarter-finalsSemi-finalsFinal
 
          
 
Feb 1
 
 
A7
 
Feb 2
 
B5
 
A3
 
Feb 1
 
C5
 
C1
 
 
 
D2
 
 
 
Feb 1
 
 
 
E3
 
Feb 3
 
F5
 
F
 
Feb 2
 
 
 
G
 
 
H