Difference between revisions of "Template:Davis Cup player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wolbo
(→‎See also: Template name)
imported>Wolbo
(→‎See also: Removed comment (no longer applies))
Line 56: Line 56:
 
== See also ==
 
== See also ==
 
* {{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]] (Davis Cup website uses same player ID numbers)
+
* {{tl|ITF profile}} – external link to player page at the [[International Tennis Federation]]
 
* {{tl|ATP}}} – external link to player page at the [[Association of Tennis Professionals]]
 
* {{tl|ATP}}} – external link to player page at the [[Association of Tennis Professionals]]
  

Revision as of 11:37, 29 October 2016

Template:Davis Cup player displays an external link to a tennis player's page at the Davis Cup website.

Usage

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.

Template parameters

ParameterDescriptionTypeStatus
ID1 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

Default
Stringrequired
Name2 name

Name of tennis player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (tennis).

Default
{{PAGENAME}}
Stringoptional

Examples

One parameter:

James Blake:
http://www.daviscup.com/en/players/player/profile.aspx?playerid=10021072
  1. {{Davis Cup player | 10021072 }}
    Template:PAGENAMEBASE at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
  2. {{Davis Cup player | id= 10021072 }}
    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=10002749
  1. {{Davis Cup player | 10002749 | Rod Laver }}
    Rod Laver at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck
  2. {{Davis Cup player | id= 10002749 | name= Rod Laver }}
    Rod Laver at the Davis CupScript error: No such module "EditAtWikidata".Template:WikidataCheck

See also