Difference between revisions of "Template:FIFA player/doc"
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
imported>Zyxw (add new URL) |
||
| Line 17: | Line 17: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| − | Using [[Wikidata]] property | + | Using [[Wikidata]] property {{Property|1469}}: |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| Line 24: | Line 24: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | |||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
| Line 33: | Line 30: | ||
''Output:'' | ''Output:'' | ||
: {{{{BASEPAGENAME}} | 63869 | PELÉ (Edson Arantes do Nascimento) }} | : {{{{BASEPAGENAME}} | 63869 | PELÉ (Edson Arantes do Nascimento) }} | ||
| + | |||
| + | ''Current URL:'' | ||
| + | : <kbd>[https://www.fifa.com/worldcup/players/player/63869/ https://www.fifa.com/worldcup/players/player/{{hilite|63869}}/]</kbd> | ||
| + | |||
| + | ''Former URL:'' | ||
| + | : <kbd>[https://www.fifa.com/fifa-tournaments/players-coaches/people=63869/index.html https://www.fifa.com/fifa-tournaments/players-coaches/people={{hilite|63869}}/index.html]</kbd> | ||
=== Named parameters === | === Named parameters === | ||
| − | |||
| − | |||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 284 | name= Brandi CHASTAIN }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 284 | name= Brandi CHASTAIN }}</code> | ||
| Line 44: | Line 43: | ||
''Output:'' | ''Output:'' | ||
: {{{{BASEPAGENAME}} | id= 284 | name= Brandi CHASTAIN }} | : {{{{BASEPAGENAME}} | id= 284 | name= Brandi CHASTAIN }} | ||
| + | |||
| + | ''Current URL:'' | ||
| + | : <kbd>[https://www.fifa.com/worldcup/players/player/284/ https://www.fifa.com/worldcup/players/player/{{hilite|284}}/]</kbd> | ||
| + | |||
| + | ''Former URL:'' | ||
| + | : <kbd>[https://www.fifa.com/fifa-tournaments/players-coaches/people=284/index.html https://www.fifa.com/fifa-tournaments/players-coaches/people={{hilite|284}}/index.html]</kbd> | ||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 61: | Line 66: | ||
"label": "FIFA.com player ID", | "label": "FIFA.com player ID", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 63869 is the ID portion of https://www.fifa.com/fifa-tournaments/players-coaches/people=63869/index.html. | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 63869 is the ID portion of https://www.fifa.com/worldcup/players/player/63869/ or https://www.fifa.com/fifa-tournaments/players-coaches/people=63869/index.html. This parameter is optional if Wikidata property P1469 exists, but required if not.", |
"type": "number", | "type": "number", | ||
"required": false, | "required": false, | ||
| Line 84: | Line 89: | ||
== Tracking categories == | == Tracking categories == | ||
; "id" parameter exists | ; "id" parameter exists | ||
| + | * {{clc|FIFA player ID same as Wikidata}} | ||
| + | * {{clc|FIFA player ID different from Wikidata}} | ||
* {{clc|FIFA player ID not in Wikidata}} | * {{clc|FIFA player ID not in Wikidata}} | ||
| − | |||
| − | |||
; "id" parameter does not exist | ; "id" parameter does not exist | ||
* {{clc|FIFA player template using Wikidata}} | * {{clc|FIFA player template using Wikidata}} | ||
| Line 102: | Line 107: | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
[[Category:Sports governing body external link templates]] | [[Category:Sports governing body external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
| − | |||
| − | |||
}}</includeonly> | }}</includeonly> | ||
Revision as of 03:54, 3 October 2018
| This is a documentation subpage for Template:FIFA player. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
Template:FIFA player displays an external link to an association football (soccer) player's profile at FIFA.com, the official website of the International Federation of Association Football (FIFA: Fédération Internationale de Football Association). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{FIFA player | ID }}{{FIFA player | ID | NAME }}
Named parameters:
{{FIFA player | id= ID }}{{FIFA player | id= ID | name= NAME }}
Using Wikidata property Template:Property:
{{FIFA player}}{{FIFA player | name= NAME }}
Examples
Unnamed parameters
Usage:
{{FIFA player | 63869 | PELÉ (Edson Arantes do Nascimento) }}
Output:
- PELÉ (Edson Arantes do Nascimento) – FIFA competition recordScript error: No such module "EditAtWikidata". Template:WikidataCheck
Current URL:
Former URL:
Named parameters
Usage:
{{FIFA player | id= 284 | name= Brandi CHASTAIN }}
Output:
- Brandi CHASTAIN – FIFA competition recordScript error: No such module "EditAtWikidata". Template:WikidataCheck
Current URL:
Former URL:
No parameters and Wikidata property not defined
Usage:
{{FIFA player}}
Output:
- Template:PAGENAMEBASE – FIFA competition recordScript error: No such module "EditAtWikidata". Template:WikidataCheck
TemplateData
TemplateData for FIFA player
This template displays an external link to an association football (soccer) player's profile at FIFA.com, the official website of the International Federation of Association Football (FIFA: Fédération Internationale de Football Association). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| FIFA.com player ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 63869 is the ID portion of https://www.fifa.com/worldcup/players/player/63869/ or https://www.fifa.com/fifa-tournaments/players-coaches/people=63869/index.html. This parameter is optional if Wikidata property P1469 exists, but required if not.
| Number | optional |
| Player name | name 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)".
| String | optional |
Tracking categories
- "id" parameter exists
- Category:FIFA player ID same as Wikidata (0)
- Category:FIFA player ID different from Wikidata (0)
- Category:FIFA player ID not in Wikidata (0)
- "id" parameter does not exist
See also
- {{UEFA player}}
- {{NFT player}}
- {{Soccerbase}}
- {{Soccerway}}