Jump to content

Template:ESPN NFL/doc

From Wikipedia, the free encyclopedia

Template:ESPN NFL displays an external link to a National Football League (NFL) player's profile at ESPN.com. It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{ESPN NFL | ID }}
{{ESPN NFL | ID | NAME }}
Named parameters
{{ESPN NFL | id= ID }}
{{ESPN NFL | id= ID | name= NAME }}
Using Wikidata property
{{ESPN NFL}}
{{ESPN NFL | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]
Usage
* {{ESPN NFL | 10536/trent-edwards | Trent Edwards }}
* {{ESPN NFL | 10536 | Trent Edwards }}
Output
Current URLs
https://www.espn.com/nfl/player/stats/_/id/10536/trent-edwards
https://www.espn.com/nfl/player/stats/_/id/10536
Former URLs
http://espn.go.com/nfl/player/stats/_/id/10536/trent-edwards
http://espn.go.com/nfl/player/stats/_/id/10536

Named parameters

[edit]
Usage
* {{ESPN NFL | id= 15994/theo-riddick | name= Theo Riddick }}
* {{ESPN NFL | id= 15994 | name= Theo Riddick }}
Output
Current URLs
https://www.espn.com/nfl/player/stats/_/id/15994/theo-riddick
https://www.espn.com/nfl/player/stats/_/id/15994
Former URLs
http://espn.go.com/nfl/player/stats/_/id/15994/theo-riddick
http://espn.go.com/nfl/player/stats/_/id/15994

No parameters and Wikidata property not defined

[edit]
Usage
* {{ESPN NFL}}
Output
  • {{ESPN NFL}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for ESPN NFL

This template displays an external link to a National Football League (NFL) player's profile at ESPN.com. 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 15994/theo-riddick in https://www.espn.com/nfl/player/stats/_/id/15994/theo-riddick or 15994 in https://www.espn.com/nfl/player/stats/_/id/15994. This parameter is optional if Wikidata property P3686 exists, but required if not.

Default
Wikidata property P3686
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}}
Stringoptional

See also

[edit]
Other NFL external link templates
Other ESPN external link templates
[edit]