Module:Build bracket/doc: Difference between revisions

Content deleted Content added
Line 46:
{| class="wikitable"
|-
! Parameter !! Description !! Default value
|-
| <code>rounds</code> || number of rounds (columns). || <code>1</code>
|-
| <code>rows</code> || (optional) manually set the number of rows. || Automatic
|-
| <code>teams-per-match</code><br /> || (optional) enter the number of teams in each match. Use <code>col<i>m</i>-teams-per-match</code> to set individual columns || <code>2</code>
| colspan=2 |
|-
| <code>col<i>m</i>-headers</code> || (optional) Enter the row numbers where headers are desired in column ''m''. Separate entries with <code>,</code>. If|| empty for all ''m'', then top round headers will auto-generate.Automatic
|-
| <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>.||
|-
| <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 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>.||
|-
| colspan=23 |
| <code>teams-per-match</code><br /><code>col<i>m</i>-teams-per-match</code> || Enter the number of teams in each macth (in column ''m'').
|-
| <code>RD<i>m</i>-text<i>k</i></code><br /><code>RD<i>mh</i>-text<i>k</i></code> || The header text aboveof the (alpha ''kh''th) matchheader in round ''m'' or(e.g., the<code>RD1b</code> ''k''thfor matchthe undersecond header ''mh''in round 1). ||
| colspan=2 |
|-
| <code>RD<i>m</i></code><br /><code>RD-seed<i>mhk</i></code> || The header textseed of the (alpha ''hk''th) headerteam in round ''m'' (e.g. Alternatively, use <code>RD1bRD<i>mh</i>-seed<i>k</i></code> for the second''k''th headerteam inunder roundheader 1)''mh''. ||
|-
| <code>RD<i>m</i>-seed<i>k</i></code><br /><code>RD<i>mh</i>-seedteam<i>k</i></code> || The seedname of the ''k''th team in round ''m''. Alternatively, use <code>RD<i>mh</i>-team<i>k</i></code> orfor the ''k''th team under header ''mh''. ||
|-
| <code>RD<i>m</i>-teamscore<i>k</i></code><br /><code>RD<i>mhm</i>-teamscore<i>k</i>-<i>l</i></code><br /><code>RD<i>m</i>-score<i>k</i>-<i>agg</i></code> || The namescore of (the ''l''th leg or aggregate score of) the ''k''th team in round ''m''. orAlternatively, use <code>RD<i>mh</i>-score<i>k</i>...</code> for the ''k''th team under header ''mh''.
|-
| <code>RD<i>m</i>-scoretext<i>k</i></code><br /><code>RD<i>m</i>-score<i>|| The text above the ''k</i>-<i>l</i></code><br''th match in round ''m''. Alternatively, use /><code>RD<i>mmh</i>-scoretext<i>k</i>-<i>agg</i></code> || The score of (the ''l''th leg or aggregate score of) the ''k''th team in round ''m'' orfor the ''k''th teammatch under header ''mh''.
|-
| <code>RD<i>m</i>-text<i>k</i></code><br /><code>RD<i>mh</i>-text<i>k</i></code> || The text above the ''k''th match in round ''m'' or the ''k''th match under header ''mh''.
|-
| colspan=2 |
|-
| <code>seed-widthmaxround</code> || themaximum widthround ofto thedisplay. cellsThis forparameter seeds.should Plainbe numbersomitted areunless assumedit tois beless inthan pxthe unitsdefault (e.g., <code>25</code>value orset 25pxby <code>2emrounds</code> for 2em).
|-
| <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>scoreseed-width</code> || the width of the cells for scoresseeds. Plain numbers are assumed to be in px units (e.g., <code>25</code> or 25px <code>2em</code> for 2em) || <code>25</code>
|-
| <code>seedsteam-width</code> || setthe width of the cells for team names. Plain numbers are assumed to be in px units (e.g., <code>no200</code> tofor omit200px seedsor in<code>15em</code> allfor rounds.15em) || <code>150</code>
|-
| <code>teamscore-width</code> || the width of the cells for team namesscores. Plain numbers are assumed to be in px units (e.g., <code>20025</code> for 200px or 25px <code>15em2em</code> for 15em2em) || <code>25</code>
| <code>legs</code> || the number of legs for all rounds.
|-
| <code>RD<i>m</i>-legsseeds</code> || theset numberto of<code>no</code> legsto omit seeds in roundall ''m''rounds. Overrides {{para|legs}}.| <code>yes</code>
|-
| <code>RD-shadelegs</code> || the backgroundnumber colorof (inlegs hexfor format,all e.grounds. Use <code>#ABCDEFRD<i>m</i>-legs</code>) ofto allindividually headersset columns. || <code>1</code>
|-
| <code>RD<i>m</i>-shade</code><br /><code>RD<i>mh</i>-shade</code> || the background color (in hex format, e.g. <code>#ABCDEF</code>) of theall (alphaheaders. ''h''th)Use header in round ''<code>RD<i>m''.</i>-shade</code> Overridesor {{para|<code>RD<i>mh</i>-shade}}</code> for individual headers. || <code>#F2F2F2</code>
<!--
|-
Line 98 ⟶ 94:
-->
|-
| <code>aggregate</code> || set to <code>yes</code> to add an aggregate score box to each match. Only matches with two or more legs will show the aggregate score box. || <code>no</code>
|-
| <code>compact</code> || set to <code>yes</code> to vertically condense the bracket. || <code>no</code>
|-
| <code>boldwinner</code> || set to <code>yes</code> to automatically bold the seed/team/score with the higher score. || <code>no</code>
|}