قالب:Davis Cup player
{{{name}}} at the Davis Cup
This template uses Lua: |
قالب: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.
Usage
تعديلUnnamed parameters:
{{Davis Cup player | ID }}
{{Davis Cup player | ID | NAME }}
Named parameters:
{{Davis Cup player | id= ID }}
{{Davis Cup player | id= ID | name= NAME }}
Using Wikidata property P2641:
{{Davis Cup player}} template missing ID and not present in Wikidata.
{{Davis Cup player | name= NAME }}
Examples
تعديلID in template
تعديلUsage in the article James Blake, with article name as link text:
* {{Davis Cup player | 800198270 }}
* {{Davis Cup player | id= 800198270 }}
Usage with name parameter as link text:
* {{Davis Cup player | 800198270 | James Blake }}
* {{Davis Cup player | id= 800198270 | name= James Blake }}
Output:
- James Blake at the Davis Cup
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 رود ليڤر:
* {{Davis Cup player}} template missing ID and not present in Wikidata.
* {{Davis Cup player | name= Rod Laver }}
Output:
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:
* {{Davis Cup player}} template missing ID and not present in Wikidata.
Output:
- {{{{BASEPAGENAME}}}}
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.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
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.
| رقم | اختياري |
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)".
| نص | اختياري |
Tracking categories
تعديل- template with ID
- Category:Davis Cup player template with ID different from Wikidata (0)
- Category:Davis Cup player template with ID not in Wikidata (0)
- template missing ID
Templates and modules used
تعديل- قالب:First word, implemented with Module:String
- Module:EditAtWikidata
- Module:WikidataCheck
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