Jump to content

Template:Premier League player/doc

From Wikipedia, the free encyclopedia

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

TemplateData

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

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.

Template parameters

ParameterDescriptionTypeStatus
Player's ID numberid 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.

Default
Wikidata property P12539
Numberoptional
Player's 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 "(footballer)" or "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking category

[edit]
template with ID
template missing ID
[edit]