Template:Premier League player/doc
| 此頁面是Template:Premier League player的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 此模板使用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.
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
-
- 英格兰足球超级联赛网站上的Steven Gerrard(已存档)
- 英格兰足球超级联赛网站上的Steven Gerrard(已存档)
- 英格兰足球超级联赛网站上的Steven Gerrard(已存档)
- 英格兰足球超级联赛网站上的Steven Gerrard(已存档)
- 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
-
- {{Premier League player}} template missing ID and not present in Wikidata.
TemplateData
[编辑]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 ID | new_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.
| 数字 | 可选 |
| Old ID | old_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.
| 数字 | 可选 |
| 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)".
| 字符串 | 可选 |
| Archive | archive | Number representing the date/time in an Internet Archive URL, such as https://web.archive.org/web/20250629093432/https://www.premierleague.com/players/2522/.
| 数字 | 可选 |
Tracking category
[编辑]- template using current ID
- template using former ID
- Category:Premier League player template with old ID different from Wikidata(0)
- Category:Premier League player template with old ID not in Wikidata(0)
- template missing ID
External links
[编辑]