跳至內容

模板:Premier League player/doc

維基百科,自由的百科全書

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

[編輯]

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

[編輯]

New ID in template

[編輯]
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

[編輯]
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

[編輯]
Usage
* {{Premier League player}}
Output

TemplateData

[編輯]
以下是該模板的模板資料,適用於視覺化編輯器等工具。

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.

模板參數

參數描述類型狀態
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.

範例
14937
數值非必填
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.

預設
Wikidata property P12539
範例
2522
數值非必填
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)".

預設
{{PAGENAMEBASE}}
範例
Cristiano Ronaldo
字串非必填
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/.

預設
2024
範例
20250629093432
數值非必填

Tracking category

[編輯]
template using current ID
template using former ID
template missing ID
[編輯]