Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:NFL.com player/doc

From Wikipedia, the free encyclopedia

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}}
Output
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

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:NFL.com player in articles based on its TemplateData.

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.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P9338
Example
tom-brady
Stringoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Example
Tom Brady
Stringoptional
Internet Archive date/timearchive

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/).

Example
20200516070320
Numberoptional

Tracking categories

[edit]
template with ID
template missing ID
[edit]