Jump to content

Template:Draw links/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
update capitalization
m {{High-use}}
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->

==Usage==
==Usage==
{{tnull|Draw links|YYYY tournament name|event1{{=}}|event2{{=}}|...|white{{=}}}}
{{tnull|Draw links|YYYY tournament name|event1{{=}}|event2{{=}}|...|white{{=}}}}
Line 19: Line 21:
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: ([[2020 Italian Open – Women's singles|S]], [[2020 Italian Open – Women's doubles|D]])
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: ([[2020 Italian Open – Women's singles|S]], [[2020 Italian Open – Women's doubles|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|'''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)]]'''.


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Latest revision as of 18:52, 26 December 2023

Usage

[edit]

{{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=1 Singles (for single-sex tournaments)
  • |MS=1 Men's singles
  • |WS=1 Women's singles
  • |D=1 Doubles (for single-sex tournaments)
  • |MD=1 Men's doubles
  • |WD=1 Women's doubles
  • |X=1 Mixed 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).