Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

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.

The website uses a new URL with a new ID number since July 2025. The former URL with the old ID number is an archived link.

Usage

[edit]

Omit the ID to use the Wikidata property.

Article name as link text
{{Premier League player | new_id= NEW ID }}
{{Premier League player | new_id= NEW ID | old_id= OLD ID }}
{{Premier League player | new_id= NEW ID | old_id= OLD ID | archive= NUMBER }}
{{Premier League player | old_id= OLD ID }}
{{Premier League player | old_id= OLD ID | archive= NUMBER }}
Parameter as link text
{{Premier League player | new_id= NEW ID | name= NAME }}
{{Premier League player | new_id= NEW ID | name= NAME | old_id= OLD ID }}
{{Premier League player | new_id= NEW ID | name= NAME | old_id= OLD ID | archive= NUMBER }}
{{Premier League player | old_id= OLD ID | name= NAME }}
{{Premier League player | old_id= OLD ID | name= NAME | archive= NUMBER }}

Examples

[edit]

New ID in template

[edit]
Usage in Cristiano Ronaldo, with article name as link text
* {{Premier League player | new_id= 14937 }}
* {{Premier League player | new_id= 14937 | old_id= 2522 }}
* {{Premier League player | new_id= 14937 | old_id= 2522 | archive= 20250629093432 }}
Output
Former URLs (old ID number)
https://www.premierleague.com/players/2522/ (archive 2025-06-29)
https://www.premierleague.com/players/2522/Cristiano-Ronaldo/overview (archive 2025-05-24)
https://www.premierleague.com/players/2522/Cristiano-Ronaldo/stats (archive 2025-05-24)
Current URLs (new ID number)
https://www.premierleague.com/en/players/14937/-/stats
https://www.premierleague.com/en/players/14937/cristiano-ronaldo/stats
https://www.premierleague.com/en/players/14937/cristiano-ronaldo/overview

Former ID in template

[edit]
Usage in Steven Gerrard, with article name as link text
* {{Premier League player | 1575 }}
* {{Premier League player | id= 1575 }}
* {{Premier League player | old_id= 1575 }}
* {{Premier League player | old_id= 1575 | archive= 20241228114755 }}
Output
Former URLs (old ID number)
https://www.premierleague.com/players/1575/ (archive 2024-12-28)
https://www.premierleague.com/players/1575/Steven-Gerrard/overview (archive 2025-04-22)
https://www.premierleague.com/players/1575/Steven-Gerrard/stats (archive 2025-05-24)
Current URLs (new ID number)
https://www.premierleague.com/en/players/1814/-/stats
https://www.premierleague.com/en/players/1814/steven-gerrard/stats
https://www.premierleague.com/en/players/1814/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
New IDnew_id

The ID number in the current URL, such as https://www.premierleague.com/en/players/14937/cristiano-ronaldo/overview. This parameter is optional if the "old_id" parameter is used or Wikidata property P12539 exists, but required if not.

Example
14937
Numberoptional
Old IDold_id id 1

The ID number in the former URL, such as https://www.premierleague.com/players/2522/Cristiano-Ronaldo/overview. This parameter is optional if the "new_id" parameter is used or Wikidata property P12539 exists, but required if not.

Default
Wikidata property P12539
Example
2522
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}}
Example
Cristiano Ronaldo
Stringoptional
Archivearchive

Number representing the date/time in an Internet Archive URL, such as https://web.archive.org/web/20250629093432/https://www.premierleague.com/players/2522/.

Default
2024
Example
20250629093432
Numberoptional

Tracking category

[edit]
template using current ID
template using former ID
template missing ID
[edit]