Content deleted Content added
No edit summary |
|||
(51 intermediate revisions by 7 users not shown) | |||
Line 2:
| Module =
{{high-use|| Wikipedia talk:High-risk templates}}
{{Module rating|
This module is intended to be used to create and edit intricate sports brackets that cannot be made by [[Module:RoundN]] or [[Module:Team bracket]]. For example, additional headers (for double-elimination brackets; 3rd-, 5th-, 7th-place matches; etc), singular omitted matches (i.e., having a horizonal line instead of a match), and ''N''-way brackets (''N'' teams per match). The syntax is slightly more complicated than the aforementioned brackets, but simpler than using the standard wikitable code.
Line 18:
| col1-headers =
| col1-matches =
| col2-headers =
| col2-matches =
...
Line 39 ⟶ 37:
| RD1-score1 =
...</nowiki>
{{))}}|lang=
Per [[MOS:ACCESS#Font size]] and [[MOS:SMALLFONT]], "avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections". Since this template's text is already reduced to 90% of the normal size, use of the {{tl|Small}} template or {{tag|small}} tags within this template produces a font size that is 77% of the page default, well below the 85% minimum specified in the linked guidelines.
}}
Line 51 ⟶ 49:
| Module =
{{!}} <code>rounds</code> {{!!}} number of rounds (columns). {{!!}} <code>1</code>
{{!-}}
{{!}} <code>autocol</code> {{!!}} set to <code>yes</code> to automatically set set maximum round to display based on entries. {{!!}} <code>no</code>
{{!-}}
{{!}} <code>rows</code> {{!!}} manually set the number of rows. {{!!}} Automatic
{{!-}}
{{!}} <code>teams-per-match</code
{{!-}}
{{!}} <code>col<i>m</i>-headers</code> {{!!}} (optional) enter the row numbers where headers are desired in column ''m''. Separate entries with <code>,</code>. Half integer values are allowed. {{!!}} Automatic
Line 60:
{{!}} <code>col<i>m</i>-matches</code> {{!!}} enter the row numbers where a match is desired in column ''m''. Matches take up two rows by default. Separate entries with <code>,</code>. Half integer values are allowed. {{!!}}
{{!-}}
{{!}} <code>col<i>m</i>-
{{!-}}
{{!}} <code>col<i>m</i>-col<i>m</i>+1-paths</code> {{!!}} enter the starting and ending row numbers, separated by <code>-</code>, from columns ''m'' and ''m''+1 where a path is desired. Separate entries with <code>,</code>. Half integer values are allowed. {{!!}}
{{!-}}
{{!}} <code>col<i>m</i>-col<i>m</i>+1-cross</code> {{!!}} enter the row number where paths intersect from column ''m'' to ''m''+1. {{!!}}
<!--
{{!-}}
{{!}} <code>compact</code> {{!!}} set to <code>yes</code> to vertically condense the bracket. {{!!}} <code>no</code>
-->
{{!-}}
{{!}} <code>RD<i>m</i>-altname</code> {{!!}} Alternate name for <code>RD<i>m</i></code> (e.g., if {{para|RD1-altname|first}}, then <code>first-team1</code> can be used instead of <code>RD1-team1</code>). Use <code>RD<i>mh</i>-altname</code> for cells under header ''mh''. {{!!}}
Line 79 ⟶ 81:
| <code>minround</code> || first round to display. || <code>1</code>
|-
| <code>
|-
| <code>col-spacing</code> || the amount of horizontal space between rounds. Enter as a plain number (e.g., <code>10</code> for 10px). || <code>5</code>
|-
| <code>seed-width</code> || the width of the cells for seeds. Plain numbers are assumed to be in px units (e.g., <code>25</code> for 25px or <code>2em</code> for 2em) || <code>25</code>
|-
| <code>team-width</code> || the width of the cells for team names. Plain numbers are assumed to be in px units (e.g., <code>200</code> for 200px or <code>15em</code> for 15em) || <code>150</code>
|-
| <code>score-width</code> || the width of the cells for scores. Plain numbers are assumed to be in px units (e.g., <code>25</code>
|-
| <code>agg-width</code> || the width of the cells for aggregate scores. <code>score-width</code> will change aggregate score widths unless this parameter is used. Plain numbers are assumed to be in px units (e.g., <code>25</code> for 25px or <code>2em</code> for 2em) || <code>25</code>
|-
| <code>seeds</code> || set to <code>no</code> to omit seeds in in all matches. set to <code>yes</code> to show seed cells to show for all matches. ||
Line 95 ⟶ 99:
| <code>autolegs</code> || set to <code>yes</code> to automatically generate score cells per team. If <code>legs</code> or <code>RD<i>m</i>-legs</code> is used, <code>autolegs</code> will be set to <code>no</code> .|| <code>no</code>
|-
| <code>byes</code> || set to <code>yes</code> to hide any team cells that are empty. Alternatively, set to <code>m</code> to have rounds <code>1</code> through <code>m</code> hide any team cells that are empty. Use <code>RD<i>m</i>-byes</code>
|-
| <code>RD<i>m</i>-hide</code> || set to <code>yes</code> to hide the all matches in columns ''m'' unless any of those entries are non empty. Use <code>RD<i>mh</i>-byes</code> to hide the (alpha) ''h''th header and all matches beneath it in column ''m''. Useful for consolation matches. {{!!}}
|-
| <code>show-bye-paths</code> || set to <code>yes</code> to replace any team cells that that are hidden <code>byes</code> with a path. || <code>no</code>
<!--
|-
Line 101 ⟶ 109:
-->
|-
| <code>aggregate</code> ||
|-
| <code>boldwinner</code> || set to <code>
|-
| <code>
|-
| colspan=3 |
|-
| <code>RD<i>m</i></code>, <code>RD<i>mh</i></code> || The header text of the (alpha ''h''th) header in column ''m'' (e.g., <code>RD1</code> or <code>RD1a</code> for the first header and <code>RD1b</code> for the second header in column 1). ||
|-
| <code>RD<i>m</i>-seed<i>k</i></code> || The seed of the ''k''th team in column ''m''. Alternatively, use <code>RD<i>mh</i>-seed<i>k</i></code> for the ''k''th team under header ''mh''. ||
Line 118 ⟶ 126:
|-
| <code>RD<i>m</i>-text<i>k</i></code> || The text above the ''k''th match in column ''m''. Alternatively, use <code>RD<i>mh</i>-text<i>k</i></code> for the ''k''th match under header ''mh''. ||
|-
| <code>RD<i>m</i>-group<i>k</i></code> || The text for the ''k''th group in column ''m''. Group text will appear to the left of whenever two paths meet. ||
|-
| <code>RD-shade</code> || the background color (in hex format, e.g. <code>#ABCDEF</code>) of all headers. Use <code>RD<i>m</i>-shade</code> or <code>RD<i>mh</i>-shade</code> for individual headers. || <code>#F2F2F2</code>
|-
| <code>RD<i>m</i>-RD(<i>m</i>+1)-path</code>{{efn|name=note1}} || set to <code>no</code> or <code>0</code> to omit the paths from round ''m'' to round ''m''+1
|-
| <code>paramstyle</code>{{efn|name=
|}
{{notelist|refs=▼
{{efn|name=note1|Does not currently work for paths under subheaders.}}
{{efn|name=
}}▼
=== Parameter hierarchy ===
Line 242 ⟶ 256:
| col1-matches = 4,11
| col2-matches = 3,10
| col3-matches = 9
| col4-matches = 6
Line 266 ⟶ 279:
| col1-matches = 4,11
| col2-matches = 3,10
| col3-matches = 9
| col4-matches = 6
Line 301 ⟶ 313:
| col1-col2-cross = 5
}}
▲}}
| RD1-seed1 =▼
| RD1-team1 =▼
}}
Line 375 ⟶ 351:
| RD1-score1 =
...</nowiki>
{{))}}|lang=
{{{{#if:{{{limitexamples|}}}|void|{{BASEPAGENAME}}}}|RD1-text1=Text 1|RD1-text2=Text 2|RD2-text1=Text 3}}
}}
===
{{#switch:{{NAMESPACE}}
| Module =
Line 385 ⟶ 361:
{{#invoke:Build bracket|main
| rounds=3
| RD1-legs = 3▼
| col1-matches = 3,6,9,12
| col2-matches = 4.5,10.5
Line 394 ⟶ 367:
| col1-col2-paths = (3,6)-4.5, (9,12)-10.5
| col2-col3-paths = (4.5,10.5)-7.5
| RD2-group1 = Group 3
}}
</pre>
{{#invoke:Build bracket|main
| rounds=3
| RD1-legs = 3▼
| col1-matches = 3,6,9,12
| col2-matches = 4.5,10.5
Line 407 ⟶ 381:
| col1-col2-paths = (3,6)-4.5, (9,12)-10.5
| col2-col3-paths = (4.5,10.5)-7.5
| RD1-group2 = Group 2
| RD2-group1 = Group 3
}}
|#default =
{{#tag:syntaxhighlight|
{{((}}{{BASEPAGENAME}}<nowiki>
|
| RD1-
| RD2-group1 = Group 3
| RD1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1
...</nowiki>
{{))}}|lang=
{{{{#if:{{{limitexamples|}}}|void|{{BASEPAGENAME}}}}|
}}
===
{{#switch:{{NAMESPACE}}
| Module =
Line 430 ⟶ 407:
{{#invoke:Build bracket|main
| rounds=3
| legs = 2
|
| aggregate = y
| col1-matches = 3,6,9,12
Line 443 ⟶ 421:
{{#invoke:Build bracket|main
| rounds=3
| legs = 2
|
| aggregate = y
| col1-matches = 3,6,9,12
Line 456 ⟶ 435:
{{#tag:syntaxhighlight|
{{((}}{{BASEPAGENAME}}<nowiki>
| legs = 2
|
| aggregate = y
| RD1 =
| RD1-seed1
| RD1-team1
| RD1-score1-1
| RD1-score1-2
| RD1-score1-agg=
...</nowiki>
{{))}}|lang=
{{{{#if:{{{limitexamples|}}}|void|{{BASEPAGENAME}}}}|legs=2|RD1-legs=3|aggregate=y}}
}}
Line 514 ⟶ 495:
| RD1-score2 =
...</nowiki>
{{))}}|lang=
{{{{#if:{{{limitexamples|}}}|void|{{BASEPAGENAME}}}}|RD1-byes=y|RD1-team1=Team 1|RD1-team2=Team 2}}
}}
<!--=== Numbered parameters ===
{{#switch:{{NAMESPACE}}
| Module =
Line 560 ⟶ 541:
| Text 2 | Team 3 | S3 | Team 4 | S4
...</nowiki>
{{))}}|lang=
{{{{#if:{{{limitexamples|}}}|void|{{BASEPAGENAME}}}}|paramstyle=numbered|1=Text 1|2=Team 1|3=S1 |4=Team 2|5=S2|6=Text 2|7=Team 3|8=S3|9=Team 4|10=S4}}
}}-->
{{#switch:{{NAMESPACE}}
Line 609 ⟶ 590:
{{#switch:{{NAMESPACE}}
| Module =
▲{{notelist|refs=
▲ {{efn|name=note|May not be compatible with certain other features.}}
== See also ==
* [[Module:Team bracket]]
* [[Module:RoundN]]
* [[Module:Bracket]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here, and interwikis go in Wikidata -->
Line 623 ⟶ 599:
}}</includeonly>
| #default =
==Alternatives to avoid Wikipedia's [[WP:PEIS|Post-expand include size]] limit==
Pages with many brackets or large brackets, especially those containing flag icons, may come close to or exceed Wikipedia's [[WP:PEIS|Post-expand include size]] limit. In these cases consider using modules directly instead:
* {{#invoke:Bracket|doc}}
* In most cases, flag templates can be replaced with {{ml|flag}}, e.g. {{tlx|flag|CAN}}→{{mlx|flag|{{!}}CAN}} or {{tlx|flag athlete|CAN}}→{{mlx|flag|athlete|CAN}}.
{{#if:{{{see also|}}}|
== See also ==
Line 628 ⟶ 609:
}}
}}
<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|