Template:Davis Cup player/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Davis Cup player displays an external link to a tennis player's profile at the official website of the Davis Cup. It is intended for use in the external links section of an article.

Omit the ID to use the Wikidata property.

Article name as link text
{{Davis Cup player | new_id= NEW ID }}
{{Davis Cup player | new_id= NEW ID | old_id= OLD ID }}
{{Davis Cup player | new_id= NEW ID | old_id= OLD ID | archive= NUMBER }}
{{Davis Cup player | old_id= OLD ID }}
{{Davis Cup player | old_id= OLD ID | archive= NUMBER }}
Parameter as link text
{{Davis Cup player | new_id= NEW ID | name= NAME }}
{{Davis Cup player | new_id= NEW ID | name= NAME | old_id= OLD ID }}
{{Davis Cup player | new_id= NEW ID | name= NAME | old_id= OLD ID | archive= NUMBER }}
{{Davis Cup player | old_id= OLD ID | name= NAME }}
{{Davis Cup player | old_id= OLD ID | name= NAME | archive= NUMBER }}

Examples

[edit source]

New ID in template

[edit source]

The website switched to a universally unique identifier (UUID) for player pages in 2025, replacing the former numeric ID. The template will also display an archived link to the former website if the old ID is included.

Usage in Lorenzo Musetti, with article name as link text
* {{Davis Cup | new_id=8eeafa3c-072d-4fa3-953e-2f2849c022b9 }}
* {{Davis Cup | new_id=8eeafa3c-072d-4fa3-953e-2f2849c022b9 | old_id=800419761 }}
* {{Davis Cup | new_id=8eeafa3c-072d-4fa3-953e-2f2849c022b9 | old_id=800419761 | archive=20241203031425 }}
Output
Current URL
https://www.daviscup.com/en/players/8eeafa3c-072d-4fa3-953e-2f2849c022b9
Archived former URL
https://web.archive.org/web/20250401/https://www.daviscup.com/en/players/player.aspx?id=800419761
https://web.archive.org/web/20250417220941/https://www.daviscup.com/en/players/player.aspx?id=800419761

Former ID in template

[edit source]

The former numeric ID displays an archived link.

Usage in James Blake (tennis), with article name as link text
* {{Davis Cup player | old_id= 800198270 }}
* {{Davis Cup player | old_id= 800198270 | archive= 20250221202208 }}
Output
Archived former URL
https://web.archive.org/web/20250401/https://www.daviscup.com/en/players/player.aspx?id=800198270
https://web.archive.org/web/20250221202208/https://www.daviscup.com/en/players/player.aspx?id=800198270
Other archived former URL
https://web.archive.org/web/20160314201710/http://www.daviscup.com/en/players/player/profile.aspx?playerid=10021072

New ID in Wikidata

[edit source]
Usage in Carlos Alcaraz, with article name as link text
* {{Davis Cup player}}
* {{Davis Cup player | archive= 20240501230059 }}
Output
Current URL
https://www.daviscup.com/en/players/44f2da85-758f-4461-8810-eb5582a56ed8
Archived former URL
https://web.archive.org/web/20240501230059/https://www.daviscup.com/en/players/player.aspx?id=800446486

Former ID in Wikidata

[edit source]
Usage in Rod Laver, with article name as link text
* {{Davis Cup player}}
* {{Davis Cup player | archive= 20250813035256 }}
Output
Archived former URL
https://web.archive.org/web/20250401/https://www.daviscup.com/en/players/player.aspx?id=800173355
https://web.archive.org/web/20250813035256/https://www.daviscup.com/en/players/player.aspx?id=800173355
Other archived former URL
https://web.archive.org/web/20160314151826/http://www.daviscup.com/en/players/player/profile.aspx?playerid=10002749

No ID in template or Wikidata

[edit source]
Usage
* {{Davis Cup player}}
Output

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Davis Cup player in articles based on its TemplateData.

TemplateData for Davis Cup player

This template displays an external link to a tennis player's profile at the official website of the Davis Cup. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
New IDnew_id

The ID portion of the current URL, such as https://www.daviscup.com/en/players/8eeafa3c-072d-4fa3-953e-2f2849c022b9. This parameter is optional when the "old_id" parameter is used or Wikidata properties P13958 or P2641 exists, but required if not.

Default
Wikidata property P13958
Example
8eeafa3c-072d-4fa3-953e-2f2849c022b9
Stringoptional
Old IDold_id id 1

The ID number in the former URL, such as https://www.daviscup.com/en/players/player.aspx?id=800419761. It displays an archived link of the former page. This parameter is optional when the "new_id" parameter is used or Wikidata properties P13958 or P2641 exists, but required if not.

Default
Wikidata property P2641
Example
800419761
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}}
Example
Lorenzo Musetti
Stringoptional
Archivearchive

Number representing the date/time in an Internet Archive URL, such as https://web.archive.org/web/20250417220941/https://www.daviscup.com/en/players/player.aspx?id=800419761.

Default
20250401
Example
20250417220941
Numberoptional

Tracking categories

[edit source]
template using current ID
template using former ID
template missing ID

Templates and modules used

[edit source]

See also

[edit source]

[edit source]