Template:WTA/doc
This is a documentation subpage for Template:WTA. It contains usage information, categories and other content that is not part of the original template page. |
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
This template is used on approximately 3,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Template:WTA 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
Unnamed parameters:
{{WTA | ID }}
{{WTA | ID | NAME }}
Named parameters:
{{WTA | id= ID }}
{{WTA | id= ID | name= NAME }}
{{WTA}}
{{WTA | name= NAME }}
Examples
ID in template
Usage in the article Mary Pierce, with article name as link text:
* {{WTA | 160142 }}
* {{WTA | id= 160142/mary-pierce }}
Usage with name parameter as link text:
* {{WTA | 160142 | Mary Pierce }}
* {{WTA | id= 160142/mary-pierce | name= Mary Pierce }}
Output:
URLs:
- https://www.wtatennis.com/players/160142/name (used in template for numeric ID)
- https://www.wtatennis.com/players/160142/mary-pierce (used in template for non-numeric ID)
- 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
Usage in the article Zhang Shuai:
* {{WTA}}
* {{WTA | name= Zhang Shuai }}
Output:
URLs:
- https://www.wtatennis.com/players/311779/shuai-zhang (used in template)
- 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
Usage:
* {{WTA}}
Output:
- WTA/doc at the Women's Tennis AssociationLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
TemplateData for WTA
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 160142/mary-pierce is the ID portion of https://www.wtatennis.com/players/160142/mary-pierce.
| String | optional |
name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify 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)".
| String | optional |
Tracking categories
- template with ID
- Category:WTA template using numeric ID (0)
- Category:WTA template using non-numeric ID (0)
- Category:WTA template with ID different from Wikidata (0)
- Category:WTA template with ID not in Wikidata (0)
- template missing ID
Templates and modules used
- Template:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
See also
- {{ATP}}
- {{ITF profile}}
- {{Fed Cup player}}