跳转到内容

Template:WST player/doc

维基百科,自由的百科全书

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

[编辑]
[编辑]

In the article Ronnie O'Sullivan:

Usage
* {{WST player | ronnie-osullivan }}
* {{WST player |id= ronnie-osullivan }}
Output
URL
https://wst.tv/players/ronnie-osullivan/
[编辑]

In the article Li Hang (snooker player)英语Li Hang (snooker player):

Usage
* {{WST player | li-hang |archive= 20230322221109 }}
* {{WST player |id= li-hang |archive= 20230322221109 }}
Output
URL
https://web.archive.org/web/20230322221109/https://wst.tv/players/li-hang/

No ID in template or Wikidata

[编辑]
Usage
* {{WST player}}
Output
  • {{WST player}} template missing ID and not present in Wikidata.

TemplateData

[编辑]
以下是该模板的模板数据,适用于可视化编辑器等工具。

WST player模板数据

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.

模板参数

参数描述类型状态
IDid 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/.

默认值
Wikidata property P4498
示例值
ronnie-osullivan
字符串可选
Namename 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)".

默认值
{{PAGENAMEBASE}}
示例值
Ronnie O'Sullivan
字符串可选
Internet Archive Date/Timearchive

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.

示例值
20230322221109
数字可选

Tracking categories

[编辑]
template with ID
template missing ID
[编辑]