跳转到内容

Template:Snooker.org player/doc

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

Template:Snooker.org player displays an external link to a snooker player's page at snooker.org, a website that documents snooker tournament results and various statistics. It is intended for use in the external links section of an article.

Usage

[编辑]
Using Wikidata property
{{Snooker.org player}}
{{Snooker.org player | name= NAME }}
With ID in template
{{Snooker.org player | ID }}
{{Snooker.org player | id= ID }}
{{Snooker.org player | ID | NAME }}
{{Snooker.org player | id= ID | name= NAME }}

Examples

[编辑]

Regular use

[编辑]

In the article Mark Allen:

Usage
* {{Snooker.org player | 202 }}
* {{Snooker.org player |id= 202 }}
Output
URL
https://www.snooker.org/res/index.asp?player=202/

No ID in template or Wikidata

[编辑]
Usage
* {{Snooker.org player}}
Output

TemplateData

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

Snooker.org player模板数据

This template displays an external link to a snooker player's page at snooker.org, a website that documents snooker tournament results and various statistics. It is intended for use in the external links section of an article.

模板参数

参数描述类型状态
IDid 1

The ID number the URL, such as 202 in https://www.snooker.org/res/index.asp?player=202.

默认值
Wikidata property P4502
示例值
202
数字可选
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}}
示例值
Mark Allen
字符串可选

Tracking categories

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