Difference between revisions of "Template:Draw links/doc"
Jump to navigation
Jump to search
imported>Somnifuguist m (moved category to includeonly) |
imported>Jonesey95 (Fix Linter errors) |
||
| Line 17: | Line 17: | ||
The optional parameter {{para|white|1}} sets the colour of the links' text to white. | The optional parameter {{para|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 {{tnull|Draw links|2020 Italian Open | + | (e.g. for Women's singles and doubles at the 2020 Italian Open, use {{tnull|Draw links|2020 Italian Open|WS{{=}}1|WD{{=}}1}}, which renders as: <small>([[2020 Italian Open – Women's Singles|S]], [[2020 Italian Open – Women's Doubles|D]])</small> |
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|'''2020 US Open''' – Women's Singles]] versus its parent article [[2020 US Open (tennis)|'''2020 US Open (tennis)''']]. | 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|'''2020 US Open''' – Women's Singles]] versus its parent article [[2020 US Open (tennis)|'''2020 US Open (tennis)''']]. | ||
Revision as of 21:06, 4 October 2020
| This is a documentation subpage for Template:Draw links. It contains usage information, categories and other content that is not part of the original template page. |
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).