Changes

Jump to: navigation, search

Module:TeamBracket-Tennis/doc

4,370 bytes added, 19:55, 13 January 2018
Templates using this module: colwidth=
{{high-use| 14,000+ | Wikipedia talk:High-risk templates }}
{{Module rating |protected}}

This template implements a variant of [[Module:TeamBracket]] for tennis tournaments. It is a generic visual representation of the tournament bracket. For common usage, use the templates in [[:Category:Tennis tournament bracket templates]].

== Usage ==
<pre style="overflow:auto">
{{#invoke: TeamBracket-Tennis | teamBracket
| rounds =
| sets =
| seeds = <!-- yes / no / or blank -->
| compact = <!-- yes / no / or blank -->
| nowrap = <!-- yes / no / or blank -->

| seed-width =
| team-width =
| score-width =

| RD1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1-1 =
| RD1-score1-2 =
| RD1-score1-3 =
}}
</pre>

== Parameter list ==
The parameters are as follows:

: <code>seed-width – </code>the width of the cells for seeds.
: <code>team-width – </code>the width of the cells for team names.
: <code>score-width – </code>the width of the cells for scores.
: <code>compact – </code>set to <code>yes</code> for compact format
: <code>seeds – </code>set to <code>no</code> to omit seed cells, and <code>yes</code> to always show seed cells
: <code>nowrap – </code>set to <code>yes</code> to prevent lines from wrapping
: <code>byes – </code>set to <code>1</code>, <code>2</code>, ... to specify the maximum round number with byes
: <code>headings – </code>set to <code>no</code> to omit the column headings

: <code>RD<sub>n</sub> – </code>The name of round ''n''.
: <code>RD<sub>n</sub>-seed<sub>m</sub> – </code>The seed of team ''m'' in round ''n''.
: <code>RD<sub>n</sub>-team<sub>m</sub> – </code>The name of team ''m'' in round ''n''.
: <code>RD<sub>n</sub>-score<sub>m</sub>-<sub>s</sub> – </code>The score of set ''s'' for team ''m'' in round ''n''.
: <code>RD<sub>n</sub>-group<sub>m</sub> – </code>Label for the ''m''th group in round ''n''.

== Examples ==
<pre style="overflow: auto;">
{{#invoke: TeamBracket-Tennis | teamBracket
| rounds = 2
| sets = 3

| RD1-seed1 = '''1'''
| RD1-seed2 = 4
| RD1-team1 = '''John'''
| RD1-team2 = Declan
| RD1-score1-1 = '''6'''
| RD1-score2-1 = 0
| RD1-score1-2 = 3
| RD1-score2-2 = '''6'''
| RD1-score1-3 = '''7'''
| RD1-score2-3 = 6
| RD1-seed3 = 2
| RD1-seed4 = 3
| RD1-team3 = Barry
| RD1-team4 = Steve

| RD2-seed1 = 1
| RD2-team1 = John
}}
</pre>

{{#invoke: {{BASEPAGENAME}} | teamBracket
| rounds = 2
| sets = 3

| RD1-seed1 = '''1'''
| RD1-seed2 = 4
| RD1-team1 = '''John'''
| RD1-team2 = Declan
| RD1-score1-1 = '''6'''
| RD1-score2-1 = 0
| RD1-score1-2 = 3
| RD1-score2-2 = '''6'''
| RD1-score1-3 = '''7'''
| RD1-score2-3 = 6
| RD1-seed3 = 2
| RD1-seed4 = 3
| RD1-team3 = Barry
| RD1-team4 = Steve

| RD2-seed1 = 1
| RD2-team1 = John
}}

== Templates using this module ==
{{colbegin|colwidth=29em}}
* {{tl|2TeamBracket-Tennis3}}
* {{tl|2TeamBracket-Tennis5}}
* {{tl|2TeamBracket-Tennis7}}
* {{tl|2TeamBracket-Tennis9}}
* {{tl|2TeamBracket-Compact-Tennis3}}
* {{tl|2TeamBracket-Compact-Tennis5}}
* {{tl|4TeamBracket-Tennis3}}
* {{tl|4TeamBracket-Tennis5}}
* {{tl|4TeamBracket-Tennis35}}
* {{tl|4TeamBracket-Tennis3-with third}}
* {{tl|4TeamBracket-Tennis35-with third}}
* {{tl|4TeamBracket-Tennis5-with 3rd}}
* {{tl|4TeamBracket-Tennis7-with 3rd}}
* {{tl|4TeamBracket-Compact-Tennis3}}
* {{tl|4TeamBracket-Compact-Tennis7}}
* {{tl|8TeamBracket-Tennis3}}
* {{tl|8TeamBracket-Tennis5}}
* {{tl|8TeamBracket-Tennis35}}
* {{tl|8TeamBracket-Tennis353}}
* {{tl|8TeamBracket-Tennis355}}
* {{tl|8TeamBracket-Tennis3-with third}}
* {{tl|8TeamBracket-Tennis5-with third}}
* {{tl|8TeamBracket-Tennis35-with third}}
* {{tl|8TeamBracket-Compact-Tennis7}}
* {{tl|16TeamBracket-Tennis3}}
* {{tl|16TeamBracket-Tennis5}}
* {{tl|16TeamBracket-Tennis5777}}
* {{tl|16TeamBracket-Compact-Tennis3}}
* {{tl|16TeamBracket-Compact-Tennis5}}
* {{tl|16TeamBracket-Compact-Tennis35}}
* {{tl|16TeamBracket-Compact-Tennis7}}
* {{tl|16TeamBracket-Compact-Tennis3355}}
* {{tl|16TeamBracket-Compact-Tennis3555}}
* {{tl|16TeamBracket-Compact-Tennis3-with 3rd}}
* {{tl|16TeamBracket-Compact-Tennis7-with 3rd}}
* {{tl|32TeamBracket-Tennis3}}
* {{tl|32TeamBracket-Tennis5}}
{{colend}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Tennis tournament bracket templates]]
}}</includeonly>
Anonymous user

Navigation menu