Difference between revisions of "Template:Davis Cup player/doc"
Jump to navigation
Jump to search
imported>GZWDer |
imported>Frietjes (→Usage) |
||
| Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
| + | Zero parameters: | ||
| + | : <code>{{((}}{{BASEPAGENAME}}{{))}}</code> (uses id retrieved from wikidata) | ||
| + | |||
One parameter: | One parameter: | ||
| − | : <code | + | : <code>{{((}}{{BASEPAGENAME}} | ''ID'' {{))}}</code> |
| − | : <code | + | : <code>{{((}}{{BASEPAGENAME}} | id= ''ID'' {{))}}</code> |
Two parameters: | Two parameters: | ||
| − | : <code | + | : <code>{{((}}{{BASEPAGENAME}} | ''ID'' | ''NAME'' {{))}}</code> |
| − | : <code | + | : <code>{{((}}{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' {{))}}</code> |
== TemplateData == | == TemplateData == | ||
Revision as of 13:56, 4 April 2018
| 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. |
Template:Wikidata property Template:Davis Cup player displays an external link to a tennis player's page at the Davis Cup website.
Contents
Usage
Zero parameters:
{{Davis Cup player}}(uses id retrieved from wikidata)
One parameter:
{{Davis Cup player | ID }}{{Davis Cup player | id= ID }}
Two parameters:
{{Davis Cup player | ID | NAME }}{{Davis Cup player | id= ID | name= NAME }}
TemplateData
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 Davis Cup player
This template displays an external link to a tennis player's page at the Davis Cup website.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | 1 id | Player's ID number in the URL. Example: 10021072 is the ID in http://www.daviscup.com/en/players/player/profile.aspx?playerid=10021072
| String | required |
| Name | 2 name | Name of tennis player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (tennis).
| String | optional |
Examples
One parameter:
- James Blake:
http://www.daviscup.com/en/players/player/profile.aspx?playerid=800198270
{{Davis Cup player | 800198270 }}- Template:PAGENAMEBASE at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
{{Davis Cup player | id= 800198270 }}- Template:PAGENAMEBASE at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
Two parameters:
- Rod Laver:
http://www.daviscup.com/en/players/player/profile.aspx?playerid=800173355
{{Davis Cup player | 800173355 | Rod Laver }}- Rod Laver at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
{{Davis Cup player | id= 800173355 | name= Rod Laver }}- Rod Laver at the Davis CupScript error: No such module "EditAtWikidata".Template: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