Jump to content

Template:ESPN Tennis/doc

From Wikipedia, the free encyclopedia

Template:ESPN Tennis displays an external link to a tennis player's profile at ESPN.com. It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{ESPN Tennis | ID }}
{{ESPN Tennis | ID | NAME }}
Named parameters
{{ESPN Tennis | id= ID }}
{{ESPN Tennis | id= ID | name= NAME }}
Using Wikidata property
{{ESPN Tennis}}
{{ESPN Tennis | name= NAME }}

Examples

[edit]
Usage
* {{ESPN Tennis | id= 425/roger-federer | name= Roger Federer }}
* {{ESPN Tennis | id= 425 | name= Roger Federer }}
Output
Current URLs
http://www.espn.com/tennis/player/_/id/425/roger-federer
http://www.espn.com/tennis/player/_/id/425
Former URLs
http://espn.go.com/tennis/player/_/id/425/roger-federer
http://espn.go.com/tennis/player/_/id/425

Named parameters

[edit]
Usage
* {{ESPN Tennis | id= 399/maria-sharapova | name= Maria Sharapova }}
* {{ESPN Tennis | id= 399 | name= Maria Sharapova }}
Output
Current URLs
http://www.espn.com/tennis/player/_/id/399/maria-sharapova
http://www.espn.com/tennis/player/_/id/399
Former URLs
http://espn.go.com/tennis/player/_/id/399/maria-sharapova
http://espn.go.com/tennis/player/_/id/399

No parameters and Wikidata property not defined

[edit]
Usage
* {{ESPN Tennis}}
Output
  • {{ESPN Tennis}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for ESPN Tennis

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

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as 399/maria-sharapova in http://www.espn.com/tennis/player/_/id/399/maria-sharapova or 399 in http://www.espn.com/tennis/player/_/id/399. This parameter is optional if Wikidata property P11585 exists, but required if not.

Default
Wikidata property P11585
Stringoptional
Namename 2

The link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

[edit]

Other tennis player external link templates:

Other ESPN external link templates:

[edit]