Template:FedCup player

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

{{{name}}} at the Fed Cup

Template documentation[view] [edit] [history] [purge]

Template:FedCup player displays an external link to a tennis player's profile at the Fed Cup website (www.fedcup.com). It is intended for use in the external links section of an article.

Usage[change source]

Unnamed parameters:

{{FedCup player | ID }}
{{FedCup player | ID | NAME }}

Named parameters:

{{FedCup player | id= ID }}
{{FedCup player | id= ID | name= NAME }}

Using Wikidata property P2642:

{{FedCup player}}
{{FedCup player | name= NAME }}

Examples[change source]

Unnamed parameters[change source]

URL:

https://www.fedcup.com/en/players/player.aspx?id=800182335

Usage:

{{FedCup player | 800182335 | Lindsay Davenport }}

Output:

Lindsay Davenport at the Fed Cup

Named parameters[change source]

URL:

https://www.fedcup.com/en/players/player.aspx?id=800242696

Usage:

{{FedCup player | id= 800242696 | name= Zhang Shuai }}

Output:

Zhang Shuai at the Fed Cup

No parameters and Wikidata property not defined[change source]

Usage:

{{FedCup player}}

Output:

{{Fed Cup player}} template missing ID and not present in Wikidata.

TemplateData[change source]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for FedCup player

This template displays an external link to a tennis player's profile at the Fed Cup website (www.fedcup.com). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 800182335 is the ID portion of https://www.fedcup.com/en/players/player.aspx?id=800182335. This parameter is optional if Wikidata property P2642 exists, but required if not.

Default
Wikidata property P2642
Numberoptional
namename 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))".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories[change source]

"id" parameter exists
"id" parameter does not exist

See also[change source]