Difference between revisions of "Template:Draw links"

From blackwiki
Jump to navigation Jump to search
imported>MusikBot II
m (Protected "Template:Draw links": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
imported>Somnifuguist
(added doc template)
Line 27: Line 27:
 
         |<span style="color:white;">X<span>|X}}{{Square bracket close|2}}
 
         |<span style="color:white;">X<span>|X}}{{Square bracket close|2}}
 
}})</small><noinclude>
 
}})</small><noinclude>
==Usage==
+
{{Documentation}}
{{tnull|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:
 
*{{para|S|1}} Singles (for single-sex tournaments)
 
*{{para|MS|1}} Men's singles
 
*{{para|WS|1}} Women's singles
 
*{{para|D|1}} Doubles (for single-sex tournaments)
 
*{{para|MD|1}} Men's doubles
 
*{{para|WD|1}} Women's doubles
 
*{{para|X|1}} Mixed doubles
 
 
 
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</var>|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 events' draw articles themselves, which doesn't always correspond with that of the parent tournament article.
 
 
 
[[Category:Tennis tournaments templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Revision as of 08:59, 4 October 2020

()

Template documentation[view] [edit] [history] [purge]

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=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).