Template:NFL.com player
This template uses Lua: |
Template:NFL.com player displays an external link to an American football player's profile at NFL.com, the official website of the National Football League. It is intended for use in the external links section of an article.
Usage
[edit]- Active player (ID in Wikidata)
{{NFL.com player}}
{{NFL.com player | name= Displayed Name }}
- Active player (ID in template)
{{NFL.com player | firstname-lastname }}
{{NFL.com player | id= firstname-lastname }}
{{NFL.com player | firstname-lastname | Displayed Name }}
{{NFL.com player | id= firstname-lastname | name= Displayed Name }}
- Former player (ID in template)
{{NFL.com player | firstname-lastname | archive= NUMBER }}
{{NFL.com player | id= firstname-lastname | archive= NUMBER }}
{{NFL.com player | firstname-lastname | Displayed Name | archive= NUMBER }}
{{NFL.com player | id= firstname-lastname | name= Displayed Name | archive= NUMBER }}
Examples
[edit]ID in Wikidata or template
[edit]- Usage in the article Tom Brady
* {{NFL.com player}}
* {{NFL.com player|tom-brady}}
* {{NFL.com player|tom-brady|archive=20200516070320}}
- Current URL with first-last ID — Wikidata property NFL.com player ID (new scheme) (P9338)
- https://www.nfl.com/players/tom-brady/
- https://web.archive.org/web/20200516070320/https://www.nfl.com/players/tom-brady/
- Former URLs with numeric ID — Wikidata property NFL.com player ID (former scheme) (P3539)
- http://www.nfl.com/player/wd/2504211/profile (archived 2019)
- http://www.nfl.com/player/tombrady/2504211/profile (archived 2011)
- Other previous URLs with different IDs
- http://www.nfl.com/players/profile?id=BRA371156 (archived 2007)
- http://www.nfl.com/players/tombrady/profile?id=BRA371156 (archived 2007)
- http://www.nfl.com/players/playerpage/187741 (archived 2002)
No ID in Wikidata or template
[edit]- Usage
* {{NFL.com player}}
- Output
-
- {{NFL.com player}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for NFL.com player
This template displays an external link to an American football player's profile at NFL.com, the official website of the National Football League. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as tom-brady in https://www.nfl.com/players/tom-brady/. This parameter is optional if Wikidata property P9338 exists, but required if not.
| String | optional |
Name | name 2 | 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 "(football player)".
| String | optional |
Internet Archive date/time | archive | A number indicating the date and time of an archive at the Internet Archive website, such as 20200516070320 in https://web.archive.org/web/20200516070320/https://www.nfl.com/players/tom-brady/ (2020-05-16 07:03:20 archive of https://www.nfl.com/players/tom-brady/).
| Number | optional |
Tracking categories
[edit]- template with ID
- Category:NFL.com player template with ID different from Wikidata (0)
- Category:NFL.com player template with ID not in Wikidata (1)
- template missing ID