Module:TeamBracket-Tennis/doc

From Omniversalis

This is the documentation page for Module:TeamBracket-Tennis

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[edit]

{{#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 =
}}

Parameter list[edit]

The parameters are as follows:

seed-width – the width of the cells for seeds.
team-width – the width of the cells for team names.
score-width – the width of the cells for scores.
compact – set to yes for compact format
seeds – set to no to omit seed cells, and yes to always show seed cells
nowrap – set to yes to prevent lines from wrapping
byes – set to 1, 2, ... to specify the maximum round number with byes
headings – set to no to omit the column headings
RDnThe name of round n.
RDn-seedmThe seed of team m in round n.
RDn-teammThe name of team m in round n.
RDn-scorem-sThe score of set s for team m in round n.
RDn-groupmLabel for the mth group in round n.

Examples[edit]

{{#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
}}
Semifinals Finals
          
1 John 6 3 7
4 Declan 0 6 6
1 John
 
2 Barry
3 Steve

Templates using this module[edit]