Template:NFT player/doc
| icon | This is a documentation subpage for Template:NFT player. It may contain usage information, categories and other content that is not part of the original template page. |
| Warning | This template is used on approximately 32,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| File:Lua-Logo.svg | This template uses Lua: |
Template:NFT player displays an external link or citation for an association football (soccer) player's statistics at National-Football-Teams.com.
Usage
[edit source]External link
[edit source]- ID without name (uses Wikipedia article name as link text)
{{NFT player | ID }}{{NFT player | id = ID }}
- ID with name
{{NFT player | ID | NAME }}{{NFT player | id = ID | name = NAME }}
Citation with access-date
[edit source]- ID without name (uses Wikipedia article name as link text)
{{NFT player | ID | access-date = DATE }}{{NFT player | id = ID | access-date = DATE }}
- ID with name
{{NFT player | ID | NAME | access-date = DATE }}{{NFT player | id = ID | name = NAME | access-date = DATE }}
- Using Wikidata property P2574
{{NFT player | access-date = DATE }}{{NFT player | name = NAME | access-date = DATE }}
Examples
[edit source]As external link
[edit source]- URLs
- https://www.national-football-teams.com/player/2456/Zinedine_Zidane.html (archive 2025-05-14)
- https://www.national-football-teams.com/player/2456.html (redirects to URL above)
- ID without name (uses Wikipedia article name as link text)
* {{NFT player | 2456/Zinedine_Zidane }}- NFT player/doc at National-Football-Teams.com
* {{NFT player | id = 2456 }}- NFT player/doc at National-Football-Teams.com
- ID with name
* {{NFT player | 2456/Zinedine_Zidane | Zinedine Zidane }}- Zinedine Zidane at National-Football-Teams.com
* {{NFT player | id = 2456 | name = Zinedine Zidane }}- Zinedine Zidane at National-Football-Teams.com
- Missing ID and Wikidata property not defined
* {{NFT player }}- NFT player/doc at National-Football-Teams.comLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
As citation with access-date
[edit source]- URLs
- https://www.national-football-teams.com/player/11881/Brad_Davis.html (archive 2025-04-27)
- https://www.national-football-teams.com/player/11881.html (redirects to URL above)
- ID without name (uses Wikipedia article name as link text)
{{NFT player | 11881/Brad_Davis | accessdate = 17 August 2014 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{NFT player | id = 11881 | access-date = 17 August 2014 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ID with name
{{NFT player | 11881/Brad_Davis | Brad Davis | accessdate = 2014-08-17 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{NFT player | id = 11881 | name = Brad Davis | access-date = 2014-08-17 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- Citation without date
{{NFT player | 11881/Brad_Davis | Brad Davis | citation = yes }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{NFT player | id = 11881 | name = Brad Davis | citation = yes }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- Missing ID and Wikidata property not defined
{{NFT player | access-date = 2014-08-17 }}- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
TemplateData
[edit source]TemplateData for NFT player
This template displays an external link or citation for an association football (soccer) player's statistics at National-Football-Teams.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | 1 id pid | ID portion of the URL for player's profile at National-Football-Teams.com. Example: 2456 is the ID portion of https://www.national-football-teams.com/player/2456.html or https://www.national-football-teams.com/player/2456/Zinedine_Zidane.html. This parameter is optional if Wikidata property P2574 exists, but required if not.
| Number | optional |
| Player Name | 2 name | 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 |
| Access Date | access-date accessdate | Date that the URL was accessed. If specified, the output is formatted as a web citation. | Date | optional |
| Citation | citation | If a value is given, the output is formatted as a web citation. Useful when a citation is needed without an access date. | String | optional |
Tracking categories
[edit source]- template with ID
- Only the number at the start of the template ID is compared with Wikidata
- 11881/Brad_Davis → 11881
- 11881 → 11881
- Category:NFT template with ID different from Wikidata (55)
- Category:NFT template with ID not in Wikidata (1,992)
- template missing ID
See also
[edit source]- Association football external link templates which convert ID to number before Wikidata comparison
- {{BDFA}}
- {{BeSoccer}}
- {{ESPN FC}}
- {{FBref player}}
- {{FootballFacts.ru}}
- {{Soccerway}}