Difference between revisions of "Template:Draw links"
Jump to navigation
Jump to search
imported>Somnifuguist m |
imported>Somnifuguist (changed spaces after commas to non-breaking) |
||
| Line 9: | Line 9: | ||
|<span style="color:white;">S<span>|S}}{{Square bracket close|2}}{{ | |<span style="color:white;">S<span>|S}}{{Square bracket close|2}}{{ | ||
#if: {{{D|}}}{{{WD|}}}{{{MD|}}}{{{X|}}} | #if: {{{D|}}}{{{WD|}}}{{{MD|}}}{{{X|}}} | ||
| − | |,{{ | + | |,{{spaces}}|}} |
}}{{ | }}{{ | ||
#if: {{{D|}}}{{{WD|}}}{{{MD|}}} | #if: {{{D|}}}{{{WD|}}}{{{MD|}}} | ||
| Line 20: | Line 20: | ||
|<span style="color:white;">D<span>|D}}{{Square bracket close|2}}{{ | |<span style="color:white;">D<span>|D}}{{Square bracket close|2}}{{ | ||
#if: {{{X|}}} | #if: {{{X|}}} | ||
| − | |,{{ | + | |,{{spaces}}|}} |
}}{{ | }}{{ | ||
#if: {{{X|}}} | #if: {{{X|}}} | ||
Revision as of 15:14, 3 October 2020
()
Usage
{{Draw links|YYYY tournament name|event1=|event2=|...|white=}}
Used to simplify the linking of tennis tournaments' events' draws in templates such as Template:2019 WTA Tour
The following are the optional parameters for the different events in the tournament:
|S=1Singles (for single-sex tournaments)|MS=1Men's singles|WS=1Women's singles|D=1Doubles (for single-sex tournaments)|MD=1Men's doubles|WD=1Women's doubles|X=1Mixed doubles
The optional parameter |white=1 sets the colour of the links' text to white.
(e.g. for Women's singles and doubles at the 2020 Italian Open, use {{Draw links|2020 Italian Open|WS=1|WD=1}}, which renders as: (S, D)
Note: the tournament name is the one used in the events' draw articles themselves, which doesn't always correspond with that of the parent tournament article.