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 2==== {{Module talk:RoundN/testcases/2}} '''Note:''' * If entering a score that includes non-numbers{{--}}such as <code>3 (6)</code>, the Semi Final score for team C in the above example{{--}}the module will first remove all non-digit characters and concatenate the rest. For example, <code>3 (5)</code> and <code>3 (6)</code> would be converted to <code>35</code> and <code>36</code>, respectively, before being compared. This should be valid for most cases, however, you may override using the <code>manualboldmatch##</code> parameter. * If the scores are tied or contain no numbers, then neither will be bolded, however, you may still manually bold them with wikimarkup. * This does not remove any formatting already present. |- |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. |- |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 X is the rightmost when <code>columns = X</code>. For example: {{demo|<nowiki>{{#invoke:RoundN|N128 |RD2 = {{red|'''SECOND ROUND'''}}|RD7 = {{red|'''Championship'''}} | RD8 = {{red|'''So close, yet so far'''}} |scroll_height=15em }}</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=</nowiki></code> 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}} |- |style='text-align:center;vertical-align:top'|{{TOC tab|color}} |style='background-color:#fff'|Add <code><nowiki>|color=yes</nowiki></code> {{#invoke:RoundN|main|columns=1 |color=yes |3rdplace=yes |7|Team A|3|Team B|2 |8|Team C||Team D|0 }} * '''Note:''' When <code><nowiki>|color=yes</nowiki></code> is set, the brackets are hardcoded to be colored as shown in the example above. To color the "correct" cells, you must also activate '''''bold_winner''''' to either ''high'' or ''low''. Thus allowing the module to identify and color the winners and losers correctly. ---- Add <code><nowiki>|color=yes & |bold_winner=high</nowiki></code> for colored brackets when the winner is the ''highest scorer''. {{#invoke:RoundN|main|columns=1 |bold_winner=high |color=yes |3rdplace=yes |7|Silver medalist|2|Gold medalist|3 |8||0|Bronze medalist|1 }} ---- Add <code><nowiki>|color=yes & |bold_winner=low</nowiki></code> for colored brackets when the winner is the ''lowest scorer''. {{#invoke:RoundN|main|columns=1 |bold_winner=low |color=yes |3rdplace=yes |7|Gold medalist|2|Silver medalist|3 |8|Bronze medalist|0||1 }} |- |style='text-align:center;vertical-align:top'|{{TOC tab|color_repechage}} |style='background-color:#fff'|Add <code><nowiki>|color_repechage=yes</nowiki></code> for repechage brackets, where the winner is awarded a bronze medal. {{#invoke:RoundN|main|columns=1 |color_repechage=yes |7|Team A|3|Team B|2 }} * '''Note 1:''' When <code><nowiki>|color_repechage=yes</nowiki></code> is set, the brackets are hardcoded to be colored as shown in the example above. To color the "correct" cells, you must also activate '''''bold_winner''''' to either ''high'' or ''low''. Thus allowing the module to identify and color the winners and losers correctly. * '''Note 2:''' When <code><nowiki>|color_repechage=yes</nowiki></code> is set AND the final match of the brackest is skipped, as in cases where there are two bronze medalists, all winners of the final stage visible will be colored bronze. ---- Add <code><nowiki>|color_repechage=yes & |bold_winner=high</nowiki></code> for colored brackets when the winner is the ''highest scorer''. {{#invoke:RoundN|main|columns=1 |bold_winner=high |color_repechage=yes |7|Team A|3|Team B|2 }} ---- Add <code><nowiki>|color_repechage=yes & |bold_winner=low</nowiki></code> for colored brackets when the winner is the ''lowest scorer''. {{#invoke:RoundN|main|columns=1 |bold_winner=low |color_repechage=yes |7|Team A|3|Team B|2 }} ---- Add <code><nowiki>|color_repechage=yes & skip the final match of the brackets</nowiki></code> for colored brackets when there are two bronze medalists. {{#invoke:RoundN|main|columns=3 |bold_winner = high |color_repechage = yes |flex_tree = yes |skipmatch = 2;4;7 |omit_blanks = yes |RD1 = Repechage |RD2 = Bronze medal |RD3 = omit_label |1|Team A|3|Team B|2 |2|Team C|6|Team D|5 |3|Team A|8|Team E|7 |4|Team C|10|Team F|11 }} |- |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) |- |style='text-align:center;vertical-align:top'|{{TOC tab|widescore|depth=2}} |style='background-color:#fff'|Setting <code><nowiki>|widescore=yes</nowiki></code> is basically equal to <code><nowiki>|score-width=40</nowiki></code>. Provided for compatibility. Ignored if <code>score-width</code> is set. |- |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}}). |- |style='text-align:center;vertical-align:top'|{{TOC tab|flex_tree}} |style='background-color:#fff'|Set <code>|flex_tree=yes</code> to make the brackets vertically more compact. That is, to have less space between matches of the same round. {{#invoke:RoundN|N4 | 3rdplace = no | flex_tree = yes }} |- |style='text-align:center;vertical-align:top'|{{TOC tab|short_brackets}} |style='background-color:#fff'|Set <code>|short_brackets=yes</code> to make the brackets horizontally more compact. That is, to have less space between matches of following rounds. {{#invoke:RoundN|N4 | 3rdplace = no | short_brackets = yes }} |}
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)