Difference between revisions of "Template:Draw links"

From blackwiki
Jump to navigation Jump to search
imported>Somnifuguist
(changed spaces after commas to non-breaking)
imported>Somnifuguist
m
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}}|}}
+
                 |,{{nbsp}}|}}
 
}}{{
 
}}{{
 
     #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}}|}}
+
         |,{{nbsp}}|}}
 
}}{{
 
}}{{
 
     #if: {{{X|}}}
 
     #if: {{{X|}}}

Revision as of 15:15, 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=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 events' draw articles themselves, which doesn't always correspond with that of the parent tournament article.