Template:ESPN Tennis/doc
![]() | This is a documentation subpage for Template:ESPN Tennis. It may contain usage information, categories and other content that is not part of the original template page. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
![]() | 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
[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]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 |
See also
[edit]Other tennis player external link templates:
- {{ITF profile}}
- {{ATP}}
- {{WTA}}
Other ESPN external link templates:
- {{ESPN FC}}
- {{ESPN MMA}}
- {{ESPN NFL}}
- {{ESPNcricinfo}}
- {{ESPNscrum}}
External link
[edit]