Jump to content

Template:ESPN MMA/doc

From Wikipedia, the free encyclopedia

Template:ESPN MMA displays an external link to an MMA fighter's profile at ESPN.com. It is intended for use in the external links section of an article.

Usage

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

Examples

[edit]

Unnamed parameters

[edit]
Usage
* {{ESPN MMA | 2516131 | Amanda Nunes }}
Output
Current URLs
https://www.espn.com/mma/fighter/_/id/2516131
https://www.espn.com/mma/fighter/_/id/2516131/amanda-nunes
Former URLs
http://espn.go.com/mma/fighter/_/id/2516131
http://espn.go.com/mma/fighter/_/id/2516131/amanda-nunes

Named parameters

[edit]
Usage
* {{ESPN MMA | id= 2335653 | name= Ken Shamrock }}
Output
Current URLs
https://www.espn.com/mma/fighter/_/id/2335653
https://www.espn.com/mma/fighter/_/id/2335653/ken-shamrock
Former URLs
http://espn.go.com/mma/fighter/_/id/2335653
http://espn.go.com/mma/fighter/_/id/2335653/ken-shamrock

No parameters and Wikidata property not defined

[edit]
Usage
* {{ESPN MMA}}
Output
  • {{ESPN MMA}} 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 MMA in articles based on its TemplateData.

TemplateData for ESPN MMA

This template displays an external link to an MMA fighter's profile at ESPN.com. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid

The ID number in the URL, such as 2516131 in https://www.espn.com/mma/fighter/_/id/2516131/amanda-nunes. This parameter is optional if Wikidata property P10073 exists, but required if not.

Default
Wikidata property P10073
Example
2516131
Numberoptional
Namename

The link text, which should be the name of the MMA fighter. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(fighter)".

Default
{{PAGENAMEBASE}}
Example
Amanda Nunes
Stringoptional

See also

[edit]

Other MMA external link templates:

Other ESPN external link templates:

[edit]