Module:Build bracket/doc: Difference between revisions

Content deleted Content added
No edit summary
Line 65:
{{!-}}
{{!}} <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>. Use <code>RD<i>mh</i>-altname</code> for cells under header ''mh''. {{!!}}
{{!-}}
{{!}} colspan=3 {{!}}
Line 82 ⟶ 84:
|-
| <code>byes</code> || set to <code>yes</code> to hide any team cells that are empty. Use <code>RD<i>m</i>-byes</code> to set individual columns. || <code>no</code>
|-
| <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>
<!--
|-
Line 104:
|-
| <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-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> || set to <code>no</code> or <code>0</code> to omit the paths from round ''m'' to round ''m''+1. ''Note: Does not currently work for paths under subheaders''. || <code>yes</code>
|}
 
=== Parameter hierarchy ===
Whenever there are multiple headers in a single column, more than one parameter may be assigned to a cell value. For example, in the following bracket, both {{para|RD1-team3}} and {{para|RD1b-team1}} can be used to assign the third team in the first column:
{{#invoke:Build bracket|main
| rounds = 1
| col1-headers = 1,6
| col1-matches = 3,8
| RD1-team3 = <code>RD1-team3</code> or <code>RD1b-team1</code>
}}
By default, entries with subheader prefixes will override those without. In the above example, <code>RD1b-team1</code> will override any value that has been set by <code>RD1-team3</code>.
 
{{#switch:{{NAMESPACE}}
| Module =
Line 123 ⟶ 138:
}}
}}
 
== Examples ==
{{#switch:{{NAMESPACE}}