Difference between revisions of "Template:ESPN NFL/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (fix placement of category to include template, not documentation (via JWB))
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)
Line 48: Line 48:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.espn.com/nfl/player/stats/_/id/10536 http://www.espn.com/nfl/player/stats/_/id/{{hilite|10536}}]</tt>
+
: <kbd>[http://www.espn.com/nfl/player/stats/_/id/10536 http://www.espn.com/nfl/player/stats/_/id/{{hilite|10536}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 57: Line 57:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.espn.com/nfl/player/stats/_/id/15994 http://www.espn.com/nfl/player/stats/_/id/{{hilite|15994}}]</tt>
+
: <kbd>[http://www.espn.com/nfl/player/stats/_/id/15994 http://www.espn.com/nfl/player/stats/_/id/{{hilite|15994}}]</kbd>
  
 
''Usage:''
 
''Usage:''

Revision as of 15:39, 5 August 2018

Template:Uses Wikidata

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

Unnamed parameters:

{{ESPN NFL | ID }}
{{ESPN NFL | ID | NAME }}

Named parameters:

{{ESPN NFL | id= ID }}
{{ESPN NFL | id= ID | name= NAME }}

Using Wikidata property P3686:

{{ESPN NFL}}
{{ESPN NFL | name= NAME }}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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
Player IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL for the player's profile. Example: 15994 is the ID portion of http://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
Numberrequired
Player namename 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 "(football player)".

Default
{{PAGENAMEBASE}}
Stringoptional

Examples

Unnamed parameters

URL:

http://www.espn.com/nfl/player/stats/_/id/10536

Usage:

{{ESPN NFL | 10536 | Trent Edwards }}

Output:

Trent Edwards at ESPN.comScript error: No such module "EditAtWikidata".

Named parameters

URL:

http://www.espn.com/nfl/player/stats/_/id/15994

Usage:

{{ESPN NFL | id= 15994 | name= Theo Riddick }}

Output:

Theo Riddick at ESPN.comScript error: No such module "EditAtWikidata".

No parameters and Wikidata property not defined

Usage:

{{ESPN NFL}}

Output:

Template:PAGENAMEBASE at ESPN.comScript error: No such module "EditAtWikidata".

See also

Other ESPN external link templates: