Difference between revisions of "Template:Draw links"
Jump to navigation
Jump to search
imported>Somnifuguist (added doc template) |
imported>Jonesey95 (Fix Linter errors. Fix too small font per MOS:FONTSIZE) |
||
| Line 1: | Line 1: | ||
| − | + | ({{ | |
#if: {{{S|}}}{{{WS|}}}{{{MS|}}} | #if: {{{S|}}}{{{WS|}}}{{{MS|}}} | ||
|{{Square bracket open|2}}{{{1}}} – {{ | |{{Square bracket open|2}}{{{1}}} – {{ | ||
| Line 7: | Line 7: | ||
|Men's}} Singles{{!}}{{ | |Men's}} Singles{{!}}{{ | ||
#if: {{{white|}}} | #if: {{{white|}}} | ||
| − | |<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|}}} | ||
|,{{nbsp}}|}} | |,{{nbsp}}|}} | ||
| Line 18: | Line 18: | ||
|Men's}} Doubles{{!}}{{ | |Men's}} Doubles{{!}}{{ | ||
#if: {{{white|}}} | #if: {{{white|}}} | ||
| − | |<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|}}} | ||
|,{{nbsp}}|}} | |,{{nbsp}}|}} | ||
| Line 25: | Line 25: | ||
|{{Square bracket open|2}}{{{1}}} – Mixed Doubles{{!}}{{ | |{{Square bracket open|2}}{{{1}}} – Mixed Doubles{{!}}{{ | ||
#if: {{{white|}}} | #if: {{{white|}}} | ||
| − | |<span style="color:white;">X<span>|X}}{{Square bracket close|2}} | + | |<span style="color:white;">X</span>|X}}{{Square bracket close|2}} |
| − | }}) | + | }})<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:10, 4 October 2020
()
Usage
{{Draw links|YYYY tournament name|event1=|event2=|...|white=}}
Used to simplify the linking of tennis tournaments' draw articles 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 draw articles, which doesn't always correspond with the name of their parent tournament's article, for example 2020 US Open – Women's Singles versus its parent article 2020 US Open (tennis).
| The above documentation is transcluded from Template:Draw links/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |