Template:Premier League player/doc
This is a documentation subpage for Template:Premier League player. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Premier League player displays an external link to an association football (soccer) player's profile at PremierLeague.com, the official website of the Premier League. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{Premier League player | ID }}
{{Premier League player | ID | NAME }}
- Named parameters
{{Premier League player | id= ID }}
{{Premier League player | id= ID | name= NAME }}
- Using Wikidata property
{{Premier League player}}
{{Premier League player | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage in Cristiano Ronaldo
* {{Premier League player | 2522 }}
- Output
- URLs
- https://www.premierleague.com/players/2522/
- https://www.premierleague.com/players/2522/Cristiano-Ronaldo/overview
Named parameters
[edit]- Usage in Steven Gerrard
* {{Premier League player | id= 1575 }}
- Output
- URLs
- https://www.premierleague.com/players/1575/
- https://www.premierleague.com/players/1575/Steven-Gerrard/overview
No parameters and Wikidata property not defined
[edit]- Usage
* {{Premier League player}}
- Output
-
- {{Premier League player}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Premier League player
This template displays an external link to an association football (soccer) player's profile at PremierLeague.com, the official website of the Premier League. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Player's ID number | id 1 | The ID number in the URL, such as 3472 in https://www.premierleague.com/players/3472/ or https://www.premierleague.com/players/3472/Sulley-Muntari/overview. This parameter is optional if Wikidata property P12539 exists, but required if not.
| Number | optional |
Player's 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 "(footballer)" or "(soccer)".
| String | optional |
Tracking category
[edit]- template with ID
- Category:Premier League player template with ID different from Wikidata (0)
- Category:Premier League player template with ID not in Wikidata (0)
- template missing ID
External links
[edit]