Difference between revisions of "Template:ESPN MMA"
Jump to navigation
Jump to search
imported>Zyxw (create) |
imported>Zyxw (add preview only message if no ID in template) |
||
| Line 3: | Line 3: | ||
| [https://www.espn.com/mma/fighter/_/id/{{#if: 1 | {{{1|{{{id<includeonly>|</includeonly>}}}}}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[ESPN.com]] | | [https://www.espn.com/mma/fighter/_/id/{{#if: 1 | {{{1|{{{id<includeonly>|</includeonly>}}}}}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[ESPN.com]] | ||
| − | | <span class="error">{{[[Template:ESPN MMA|ESPN MMA]]}} template missing ID.</span> | + | | <span class="error">{{[[Template:ESPN MMA|ESPN MMA]]}} template missing ID.</span>{{#invoke:Preview warning|main|1=to find the ID, try this search at [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Ahttps%3A%2F%2Fwww.espn.com%2Fmma%2Ffighter%2F Google]}} |
}}<noinclude> | }}<noinclude> | ||
Latest revision as of 11:09, 30 October 2020
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.
Contents
Usage
Unnamed parameters:
{{ESPN MMA | ID }}{{ESPN MMA | ID | NAME }}
Named parameters:
{{ESPN MMA | id= ID }}{{ESPN MMA | id= ID | name= NAME }}
Examples
Unnamed parameters
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
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
Usage:
* {{ESPN MMA}}
Output:
- {{ESPN MMA}} template missing ID.
See also
Other MMA external link templates:
Other ESPN external link templates:
- {{ESPN FC}}
- {{ESPN NFL}}
- {{ESPN NHL}}
- {{ESPNcricinfo}}
- {{ESPNscrum}}
| The above documentation is transcluded from Template:ESPN MMA/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |