跳至內容

模板:SFA Profile/doc

維基百科,自由的百科全書

Template:SFA Profile displays an external link to an association football (soccer) player's profile at the Scottish Football Association website (ScottishFA.co.uk). It is intended for use in the external links section of an article.

Usage

[編輯]

Unnamed parameters:

{{SFA Profile | ID }}
{{SFA Profile | ID | NAME }}

Named parameters:

{{SFA Profile | id= ID }}
{{SFA Profile | id= ID | name= NAME }}

Using Wikidata property 無本頁之數據:

{{SFA Profile}}
{{SFA Profile | name= NAME }}

Examples

[編輯]

Unnamed parameters

[編輯]

Usage:

* {{SFA Profile | 36353 | Gemma Fay }}

Output:

URLs:

https://www.scottishfa.co.uk/players/?pid=36353
http://www.scottishfa.co.uk/player_details.cfm?playerid=36353
http://www.scottishfa.co.uk/football_player_profile.cfm?page=2492&playerid=36353
http://www.scottishfa.co.uk/football_player_profile.cfm?page=2492&playerID=36353&squadID=2

Named parameters

[編輯]

Usage:

* {{SFA Profile | id= 21265 | name= Allan McGregor }}

Output:

URLs:

https://www.scottishfa.co.uk/players/?pid=21265
http://www.scottishfa.co.uk/player_details.cfm?playerid=21265 (archive)
http://www.scottishfa.co.uk/football_player_profile.cfm?page=2492&playerid=21265
http://www.scottishfa.co.uk/football_player_profile.cfm?page=2492&playerID=21265&squadID=1

No parameters and Wikidata property not defined

[編輯]

Usage:

{{SFA Profile}}

Output:

TemplateData

[編輯]
以下是該模板的模板資料,適用於視覺化編輯器等工具。

SFA Profile模板資料

This template displays an external link to an association football (soccer) player's profile at the Scottish Football Association website (ScottishFA.co.uk). It is intended for use in the external links section of an article.

模板參數

參數描述類型狀態
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 36353 is the ID portion of http://www.scottishfa.co.uk/player_details.cfm?playerid=36353. This parameter is optional if Wikidata property P3049 exists, but required if not.

預設
Wikidata property P3049
數值非必填
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify 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)".

預設
{{PAGENAMEBASE}}
字串非必填

Tracking categories

[編輯]
template with ID
template missing ID

See also

[編輯]