Template:SFA profile
{{{name}}} at the Scottish Football Association
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
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 (P3049):
{{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
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for SFA profile
<templatedata> {
"description": "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.", "params": { "id": { "label": "id", "aliases": ["1"], "description": "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.", "type": "number", "required": false, "default": "Wikidata property P3049" }, "name": { "label": "name", "aliases": ["2"], "description": "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)\".", "type": "string", "required": false, "default": "SFA profile" } }, "paramOrder": [ "id", "name" ]
} </templatedata>
Tracking categories
- template with ID
- Category:Scottish FA player ID different from Wikidata (0)
- Category:Scottish FA player ID not in Wikidata (1)
- template missing ID
See also
The above documentation is transcluded from Template:SFA profile/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |