Template:ESPN Tennis
![]() | This template uses Lua: |
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
Omit the ID to use the Wikidata property.
- Article name as link text
{{ESPN Tennis | ID }}
{{ESPN Tennis | id= ID }}
- Parameter as link text
{{ESPN Tennis | ID | NAME }}
{{ESPN Tennis | id= ID | name= NAME }}
Examples
- 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
- 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
- Usage
* {{ESPN Tennis}}
- Output
-
- {{ESPN Tennis}} template missing ID and not present in Wikidata.
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| String | optional |
Name | name 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)".
| String | optional |
Templates and modules used
- Template:First word, implemented with Module:String
- Template:EditAtWikidata, implemented with Module:EditAtWikidata
See also
Other tennis player external link templates:
- {{ATP}}
- {{WTA}}
- {{ITF profile}}
- {{Davis Cup player}}
- {{Billie Jean King Cup player}}
Other ESPN external link templates:
- {{ESPN FC}}
- {{ESPN MMA}}
- {{ESPN NFL}}
- {{ESPNcricinfo}}
- {{ESPNscrum}}