Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:RoundN/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Example 1==== {{demo|<nowiki>{{#invoke:RoundN|main|columns=2 |Day 1|A|'''7'''|B|5 |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. |- |style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|style}}}} |style='background-color:#fff'| Set the <code>style</code> parameter to add custom CSS to the table. {{Module talk:RoundN/testcases/1|param=style|style=width:20em;font-size:70%}} |- |style='text-align:center;vertical-align:top'|{{TOC tab|''{{blue|scroll_height}}''}} |style='background-color:#fff'| For large tables, set {{code|scroll_height}} to the desired height in pixels. {{Module talk:RoundN/testcases/1|param=scroll_height|scroll_height=140}} CSS units are also allowed (i.e. '20em', '30%', etc.). '''Note''' This works by duplicating the entire table and then using CSS to lock the clone of the table to the top of the div. Conceivably, for extremely large tables, this can result in a significant amount of extra HTML code to download versus if {{code|scroll_head_unlock}} is used. |- |style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|scroll_head_unlock}}|depth=2}} |style='background-color:#fff'| If it is desirable to have the round heading scroll with the table (such as if a larger viewing area is desired), set {{code|scroll_head_unlock}} to 'yes' {{Module talk:RoundN/testcases/1|param=scroll_head_unlock|scroll_head_unlock=yes|scroll_height=140|example=the code the {{code|scroll_height}} example}} |- |style='text-align:center;vertical-align:top'| {{TOC tab|skipmatch##}} |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}}: 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]]) |- |style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|omit_blanks}}|depth=2}} |style='background-color:#fff'|If <code>omit_blanks</code> is set to yes, then 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.) {{Module talk:RoundN/testcases/1|param=omit_blanks|omit_blanks=yes|skipmatch2=yes|example=''Example 1'' with <code>{{!}}skipmatch2=yes</code>}} |- |style='text-align:center;vertical-align:top'|{{TOC tab|{{blue|bold_winner}}}} |style='background-color:#fff'|The {{code|bold_winner}} parameter accepts either {{code|'high'}} or {{code|'low'}}, which will automatically bold the text of the participant with the ''higher'' or ''lower'' score, respectively. In other words, set this to 'low' if the lower score wins and 'high' if the high score wins.
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)