模板:WST player/doc
![]() | 此页面是Template:WST player的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |

![]() | 此模板使用Lua语言: |
Template:WST player displays an external link to a snooker player's page at WST.tv, the official website of the World Snooker Tour. It is intended for use in the external links section of an article.
Usage
[编辑]- Active link using Wikidata property
{{WST player}}
{{WST player | name= NAME }}
- Active link with ID in template
{{WST player | ID }}
{{WST player | id= ID }}
{{WST player | ID | NAME }}
{{WST player | id= ID | name= NAME }}
- Archived link with ID in template
{{WST player | ID | archive= NUMBER }}
{{WST player | id= ID | archive= NUMBER }}
{{WST player | ID | NAME | archive= NUMBER }}
{{WST player | id= ID | name= NAME | archive= NUMBER }}
Examples
[编辑]Active link
[编辑]In the article Ronnie O'Sullivan:
- Usage
* {{WST player | ronnie-osullivan }}
* {{WST player |id= ronnie-osullivan }}
- Output
Archived link
[编辑]In the article Li Hang (snooker player):
- Usage
* {{WST player | li-hang |archive= 20230322221109 }}
* {{WST player |id= li-hang |archive= 20230322221109 }}
No ID in template or Wikidata
[编辑]- Usage
* {{WST player}}
- Output
-
- {{WST player}} template missing ID and not present in Wikidata.
TemplateData
[编辑]This template displays an external link to a snooker player's page at WST.tv, the official website of the World Snooker Tour. It is intended for use in the external links section of an article.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as ronnie-osullivan in https://wst.tv/players/ronnie-osullivan/ or http://www.worldsnooker.com/players/ronnie-osullivan/.
| 字符串 | 可选 |
Name | name 2 | The link text for the profile associated with "id" parameter. It defaults to the Wikipedia article name, without any disambiguation such as "(snooker player)".
| 字符串 | 可选 |
Internet Archive Date/Time | archive | Used to add an archived link for the wst.tv/players/ URL (see examples). It should contain a number representing the date/time in an Internet Archive URL.
| 数字 | 可选 |
Tracking categories
[编辑]- template with ID
- Category:WST player template with ID different from Wikidata(0)
- Category:WST player template with ID not in Wikidata(0)
- template missing ID
External links
[编辑]