Template:WTA/doc

It is intended for use in the external links section of an article.

Usage
Unnamed parameters:

Named parameters:

Using Wikidata property P597:

ID in template
Usage in the article Mary Pierce, with article name as link text:

Usage with name parameter as link text:

Output:

URLs:
 * https://www.wtatennis.com/players//name (used in template for numeric ID)
 * https://www.wtatennis.com/players/ (used in template for non-numeric ID)
 * http://www.wtatennis.com/players/player//title/mary-pierce (redirect to above)
 * http:// www.wtatennis.com/player-profile/ (dead link)
 * http:// www.wtatennis.com/players/player/ (former ID number, archived 2016-10-06)

ID in Wikidata
Usage in the article Zhang Shuai:

Output:
 * OOjs UI icon edit-ltr-progressive.svg

URLs:
 * https://www.wtatennis.com/players/ (used in template)
 * http://www.wtatennis.com/players/player//title/Shuai-Zhang-0 (redirect to above)
 * http:// www.wtatennis.com/player-profile/ (dead link)
 * http:// www.wtatennis.com/players/player/ (former ID number, archived 2017-04-24)

No ID in template or Wikidata
Usage:

Output:

TemplateData
{ "description": "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.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "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.", "type": "string", "required": false, "default": "Wikidata property P597" },   "name": { "label": "name", "aliases": ["2"], "description": "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)\".", "type": "string", "required": false, "default": "" } },  "paramOrder": [ "id", "name" ] }

Tracking categories

 * template with ID
 * template missing ID
 * template missing ID
 * template missing ID
 * template missing ID

Templates and modules used

 * Template:First word, implemented with Module:String
 * Module:EditAtWikidata
 * Module:WikidataCheck