Jump to content

Template:Women's Tennis Association link/doc

From Wikipedia, the free encyclopedia

Template:Women's Tennis Association link displays an external link to a tennis player's profile at WTAtennis.com, the official website of the Women's Tennis Association (WTA). It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{Women's Tennis Association link | ID }}
{{Women's Tennis Association link | ID | NAME }}
Named parameters
{{Women's Tennis Association link | id= ID }}
{{Women's Tennis Association link | id= ID | name= NAME }}
Using Wikidata property
{{Women's Tennis Association link}}
{{Women's Tennis Association link | name= NAME }}

Examples

[edit]

ID in template

[edit]
Usage in the article Mary Pierce, with article name as link text
* {{Women's Tennis Association link | 160142 }}
Usage with name parameter as link text
* {{Women's Tennis Association link | 160142 | Mary Pierce }}
Output
URLs
https://www.wtatennis.com/players/160142/- (used in template)
https://www.wtatennis.com/players/160142/mary-pierce (full URL at website)
http://www.wtatennis.com/players/player/160142/title/mary-pierce (redirect to above)
http://www.wtatennis.com/player-profile/160142 (dead link)
http://www.wtatennis.com/players/player/6297 (former ID number, archived 2016-10-06)

ID in Wikidata

[edit]
Usage in the article Zhang Shuai
* {{Women's Tennis Association link}}
* {{Women's Tennis Association link | name= Zhang Shuai }}
Output
URLs
https://www.wtatennis.com/players/311779/- (used in template)
https://www.wtatennis.com/players/311779/shuai-zhang (full URL at website)
http://www.wtatennis.com/players/player/311779/title/Shuai-Zhang-0 (redirect to above)
http://www.wtatennis.com/player-profile/311779 (dead link)
http://www.wtatennis.com/players/player/11069 (former ID number, archived 2017-04-24)

No ID in template or Wikidata

[edit]
Usage
* {{Women's Tennis Association link}}
Output
  • {{WTA}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Women's Tennis Association link in articles based on its TemplateData.

TemplateData for Women's Tennis Association link

This template displays an external link to a tennis player's profile at WTAtennis.com, the official website of the Women's Tennis Association (WTA). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The ID number in the URL, such as 160142 in https://www.wtatennis.com/players/160142/mary-pierce.

Default
Wikidata property P597
Numberoptional
namename 2

The link text, which should be the name of the tennis player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

[edit]
template with ID
template missing ID

Templates and modules used

[edit]

See also

[edit]
[edit]