跳至內容

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