Module:Build bracket/doc: Difference between revisions

Content deleted Content added
fix code
No edit summary
Line 32:
| style="border:0;" | || style="border:0;" | || style="border:0;" | <code>1</code> || style="border:0;" | <code>2</code> || style="border:0;" | <code>3</code> || style="border:0;" | …
|-
| style="border:0;" | <code>01</code> || || || || || …
|-
| style="border:0;" | <code>2</code> || || || || || …
| width=5 | &nbsp;
| width=175 | &nbsp;
| width=175 | &nbsp;
| width=175 | &nbsp;
| width=175 | …
|-
| style="border:0;" | <code>13</code> || || || || || …
|-
| style="border:0;" | <code>24</code> || || || || || …
|-
| style="border:0;" | <code>3</code> || || || || || …
|-
| style="border:0;" | ⋮ || || ⋮ || ⋮ || ⋮ || ⋱
Line 71 ⟶ 64:
| <code>col<i>m</i>-lines</code> || Enter the row numbers where a line is desired in column ''m''. Separate entries with <code>,</code>.
|-
| <code>col<i>m</i>-col<i>m</i>+1-paths</code> || Enter the rowstarting numberand whereending therow startnumbers, ofseparated aby path<code>-</code>, is desired betweenfrom columns ''m'' and ''m''+1, followedwhere bya <code>:</code>path andis desired. If a path codesshould meet in between two rows, enter the rows (separated by <code>,/</code>). Separate entries with <code>;,</code>.
|-
| colspan=2 |
|-
| <code>RD<i>m</i></code><br /><code>RD<i>m</i>-<i>kmk</i></code> || The header text of the (alpha ''k''th) header in round ''m'' (e.g., <code>RD1b</code> for the second header in round 1).
|-
| <code>RD<i>m</i>-seed<i>k</i></code> || The seed of the ''k''th team in round ''m''.
Line 102 ⟶ 95:
|-
| <code>RD<i>m</i>-shade</code><br /><code>RD<i>m</i>-<i>k</i>-shade</code> || the background color (in hex format, e.g. <code>#ABCDEF</code>) of the (''k''th) header in round ''m''. Overrides {{para|RD-shade}}.
<!--
|-
| <code>RD<i>m</i>-score<i>k</i>-shade</code><br /><code>RD<i>m</i>-score<i>k</i>-<i>l</i>-shade</code> || the background color (in hex format, e.g. <code>#ABCDEF</code>) the (''l''th leg of) ''k''th team's score round ''m''.
-->
|-
| <code>boldwinner</code> || set to <code>yes</code> to automatically bold the seed/team/score with the higher score. For ''N''-way brackets (''N'' teams per match, ''N''>2), set <code>teams-per-match=<i>N</i></code>.
|}
 
=== Path codes ===
Path codes are entered in the form <code>| col<i>m<a/i>b-col<i>mc/d</icode>+1-paths =, <icode>row numbera-c/d</icode>:, or <i>path code>a/b-c</icode>, where <icode>path codea</icode>, ..., <icode>path codeb</icode>; <i>are the row number</i>:numbers <i>pathin the code</i>starting column, and <icode>path codec</icode>, ..., <i>path code</i>;d</code> are the row numbers in the ending column.
{| class="wikitable"
|-
! CodeExample !! Output !! Notes
|-
|<code>out</code>
|{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=5 style="border-width:0 0 1px 0; border-style:solid;border-color:black;" | &nbsp; || &nbsp;
|-
| width=5 style="border-width:1px 0 0 0; border-style:solid;border-color:black;" | &nbsp; || &nbsp;
{{!)}}
| rowspan="4" | By default, path will connect between two rows, e.g.:
{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=25 style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;" | &nbsp;
| width=125 style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" | &nbsp;
| width=25 style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | &nbsp;
| width=10 style="border-width:0 0 1px 0; border-style:solid;border-color:black;" | &nbsp;
|-
| width=25 style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;" | &nbsp;
| width=125 style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" | &nbsp;
| width=25 style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | &nbsp;
| width=10 style="border-width:1px 0 0 0; border-style:solid;border-color:black;" | &nbsp;
{{!)}}
 
Appending the text <code>split</code> will cause the path to connect in the middle of a row, e.g.:
 
{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=25 style="text-align:center;background-color:#f2f2f2;border:1px solid #aaa;" | &nbsp;
| width=125 style="border:1px solid #aaa;background-color:#f9f9f9;padding-left:0.3em;" | &nbsp;
| width=25 style="text-align:center;border:1px solid #aaa;background-color:#f9f9f9;" | &nbsp;
| colspan="2" | {{(!}} border=0 cellpadding=0 cellspacing=0
{{!-}}
| style="border-width:0 0 1px 0; border-style:solid;border-color:black; font-size:50%;" | &#8195; || style="border-width:0 0 1px 0; border-style:solid;border-color:black; font-size:50%;" | &#8195;
{{!-}}
| style="border-width:1px 0 0 0; border-style:solid;border-color:black; font-size:50%;" | &#8195; || style="border-width:1px 0 0 0; border-style:solid;border-color:black; font-size:50%;" | &#8195;
{{!)}}
{{!)}}
|-
|<code>in</code>
|{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=5 | &nbsp; || width=5 style="border-width:0 0 1px 0; border-style:solid;border-color:black;" | &nbsp;
|-
| width=5 | &nbsp; || width=5 style="border-width:1px 0 0 0; border-style:solid;border-color:black;" | &nbsp;
{{!)}}
|-
|<code>up</code>
|{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=5 style="border-width:0 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp;
|-
| width=5 | &nbsp; || width=5 | &nbsp;
{{!)}}
|-
|<code>down</code>
|{{(!}} border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=5 | &nbsp; || width=5 | &nbsp;
|-
| width=5 style="border-width:0 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp;
{{!)}}
|}
 
Path codes can be combined to create any combination, repeats are ignored, and order does not matter. For example, <code>out up down</code> creates
 
{| border=0 cellpadding=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| width=5 style="border-width:0 1px 1px 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp;
|-
| width=5 style="border-width:1px 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp;
|}
 
Path codes that start in row ''n'' control the paths between row ''n'' and ''n+1'' and are created from top to bottom. Overlap may occur. For example, the code <code>| col1-col2-paths = 3: out down, down, in, down, down out;</code> would create the following path between columns 1 and 2, staring at row 3:
 
{| border=0 cellspacing=0 style="font-size: 90%; margin:1em 2em 1em 1em;"
|-
| Row 3 || width=5 style="border-width:0 0 1px 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 0; border-style:solid;border-color:black;" | &nbsp; || rowspan="2" | <code>out down</code>
|-
| Row 4 || width=5 style="border-width:1px 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp; || rowspan="2" | <code>down</code>
|-
| Row 5 || width=5 style="border-width:0 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 1px 1px; border-style:solid;border-color:black;" | &nbsp; || rowspan="2" | <code>in</code>
|-
|<code>1/2-3/4</code>
| Row 6 || width=5 style="border-width:0 1px 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:1px 0 0 1px; border-style:solid;border-color:black;" | &nbsp; || rowspan="2" | <code>down</code>
| {{#invoke:Build bracket|main|rounds=2|noheaders=yes|col1-teams=1,2|col2-teams=3,4|col1-col2-paths=1/2-3/4}}
|-
|<code>1-3/4</code>
| Row 7 || width=5 style="border-width:0 1px 1px 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 1px; border-style:solid;border-color:black;" | &nbsp; || rowspan="2" | <code>down out</code>
| {{#invoke:Build bracket|main|rounds=2|noheaders=yes|col1-teams=1,2|col2-teams=3,4|col1-col2-paths=1-3/4}}
|-
|<code>1/2-3</code>
| Row 8 || width=5 style="border-width:1px 0 0 0; border-style:solid;border-color:black;" | &nbsp; || width=5 style="border-width:0 0 0 0; border-style:solid;border-color:black;" | &nbsp; ||
| {{#invoke:Build bracket|main|rounds=2|noheaders=yes|col1-teams=1,2|col2-teams=3,4|col1-col2-paths=1/2-3}}
|}
 
Line 207 ⟶ 127:
{{#invoke:Build bracket|main
| rounds=2
| rows=6
 
| col1-headers = 01
| col1-teams = 13,24,57,68
| col2-headers = 01
| col2-teams = 35,46
 
| col1-col2-paths = 1:out down3/4-5/6, down, in, up, up out;7/8-5/6
 
<!-- OverridesDefaults -->
| RD2 = Grand Final
 
Line 226 ⟶ 145:
{{#invoke:Build bracket|main
| rounds=2
| rows=6
 
| col1-headers = 01
| col1-teams = 13,24,57,68
| col2-headers = 01
| col2-teams = 35,46
 
| col1-col2-paths = 1:out down3/4-5/6, down, in, up, up out;7/8-5/6
 
<!-- OverridesDefaults -->
| RD2 = Grand Final
 
Line 246 ⟶ 164:
{{#invoke:Build bracket|main
| rounds=2
| rows=2
| seeds = no
 
| col1-headers = 01
| col1-teams = 13,24
| col2-headers = 01
| col2-teams = 13,24
 
| col1-col2-paths = 1:out in;3/4-3/4
 
}}
Line 260 ⟶ 177:
{{#invoke:Build bracket|main
| rounds=2
| rows=2
| seeds = no
 
| col1-headers = 01
| col1-teams = 13,24
| col2-headers = 01
| col2-teams = 13,24
 
| col1-col2-paths = 3/4-3/4
 
| col1-col2-paths = 1:out in;
}}
 
Line 275 ⟶ 192:
{{#invoke:Build bracket|main
| rounds=3
| rows=4
| legs=2
| RD3-legs=3
 
| col1-headers = 01
| col1-teams = 35,46
| col2-headers = 01
| col2-teams = 24,35
| col3-headers = 01
| col3-teams = 13,24
 
| col1-col2-paths = 2: in down, out5/6-4/5
| col2-col3-paths = 1: in down, out4/5-3/4
}}
</pre>
{{#invoke:Build bracket|main
| rounds=3
| rows=4
| legs=2
| RD3-legs=3
 
| col1-headers = 01
| col1-teams = 35,46
| col2-headers = 01
| col2-teams = 24,35
| col3-headers = 01
| col3-teams = 13,24
 
| col1-col2-paths = 2: in down, out5/6-4/5
| col2-col3-paths = 1: in down, out4/5-3/4
}}
 
Line 311 ⟶ 226:
{{#invoke:Build bracket|main
| rounds=2
| rows=11
 
| col1-headers = 01
| col1-teams = 1,2,3,4,5,6,7,8,9,10,11,12,13
| col2-headers = 01
| col2-teams = 57,68,79
 
| col1-col2-paths = 2:out down split4-8, up8-8, up, up, out up down in split, up, up, up, out up split;12-8
}}
</pre>
 
{{#invoke:Build bracket|main
| rounds=2
| rows=11
 
| col1-headers = 01
| col1-teams = 1,2,3,4,5,6,7,8,9,10,11,12,13
| col2-headers = 01
| col2-teams = 57,68,79
 
| col1-col2-paths = 2:out down split4-8, up8-8, up, up, out up down in split, up, up, up, out up split;12-8
}}