Difference between revisions of "Template:Davis Cup player/doc"
imported>Zyxw (update examples and TemplateData, add Category:External link templates using Wikidata) |
imported>Zyxw (→See also: fix links) |
||
| Line 89: | Line 89: | ||
* {{tl|Fed Cup player}} – external link to player page at the [[Fed Cup]] (women's equivalent to Davis Cup) | * {{tl|Fed Cup player}} – external link to player page at the [[Fed Cup]] (women's equivalent to Davis Cup) | ||
* {{tl|ITF profile}} – external link to player page at the [[International Tennis Federation]] | * {{tl|ITF profile}} – external link to player page at the [[International Tennis Federation]] | ||
| − | * {{tl|ATP | + | * {{tl|ATP}} – external link to player page at the [[Association of Tennis Professionals]] |
| − | * {{tl|WTA | + | * {{tl|WTA}} – external link to player page at the [[Women's Tennis Association]] |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Revision as of 21:43, 23 June 2018
| File:Edit-copy green.svg | This is a documentation subpage for Template:Davis Cup player. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:Davis Cup player displays an external link to a tennis player's profile at DavisCup.com, the official website of the Davis Cup. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P2641:
Examples
ID in template
Usage in the article James Blake, with article name as link text:
Usage with name parameter as link text:
Output:
- James Blake at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
URLs:
- https://www.daviscup.com/en/players/player.aspx?id=800198270
- http://www.daviscup.com/en/players/player/profile.aspx?playerid=10021072 (former ID, archived 2016-03-14)
ID in Wikidata
Usage in the article Rod Laver:
Output:
- Rod Laver at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck Edit this at Wikidata
URLs:
- https://www.daviscup.com/en/players/player.aspx?id=800173355
- http://www.daviscup.com/en/players/player/profile.aspx?playerid=10002749 (former ID, archived 2016-03-14)
No ID in template or Wikidata
Usage:
Output:
- Template:PAGENAMEBASE at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for Davis Cup player
This template displays an external link to a tennis player's profile at DavisCup.com, the official website of the Davis Cup. 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: 800198270 is the ID in https://www.daviscup.com/en/players/player.aspx?id=800198270.
| Number | 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 |
See also
- {{Fed Cup player}} – external link to player page at the Fed Cup (women's equivalent to Davis Cup)
- {{ITF profile}} – external link to player page at the International Tennis Federation
- {{ATP}} – external link to player page at the Association of Tennis Professionals
- {{WTA}} – external link to player page at the Women's Tennis Association