Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Sherdog

Permanently protected template
From Wikipedia, the free encyclopedia

Professional MMA record for {{{name}}} fromSherdog

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 2,700 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
This templatetracks and usesWikidata property:
This template usesLua:

Template:Sherdog displays an external link toSherdog.com's Fight Finder. It should be used exclusively for professionalMMA fighters.

Usage

Unnamed parameters:

Named parameters:

UsingWikidata propertySherdog fighter ID(P2818):

Instructions

  1. Go tohttp://www.sherdog.com/fightfinder/fightfinder.asp and search for the fighter you're looking for
  2. The pageURL should look like http://www.sherdog.com/fightfinder/fightfinder.asp?FighterID=###, where "###" indicates a number.
  3. Copy ONLY that number
  4. add the number to the Wikidata item for the fighter, using P2818
  5. Add to the external links section the text:
{{Sherdog}}

Alternative method

  1. Add to the external links section the text:
{{Sherdog|id=###|name=XXX}}, where "###" is the number you've copied and "XXX" is the fighter's name.

Optionally, you can leave out name=XXX and the template will use the page's name for the name, i.e. {{Sherdog|id=###}}.

Example

  1. Searching for first name "Randy" and last name "Couture", you'll get to this page:http://www.sherdog.com/fightfinder/fightfinder.asp?FighterID=166
  2. Copy "166" and then write:
{{Sherdog|id=166|name=Randy Couture}}

The result isProfessional MMA record for Randy Couture fromSherdog

Note that, since this will almost certainly go on the external link section, you should add a * before the template text to include it as a list item.

Examples

ID in template

URLs:

Usage in the articleRonda Rousey, with article name as link text:

Usage with name parameter as link text:

  • {{Sherdog|73073|Ronda Rousey}}
  • {{Sherdog|id= 73073|name= Ronda Rousey}}

Output:

ID in Wikidata

URLs:

Usage in the articleKen Shamrock:

Output:

No ID in template or Wikidata

Usage:

Output:

  • {{Sherdog}} template missing ID and not present in Wikidata.

Tracking categories

See also

External links

The abovedocumentation istranscluded fromTemplate:Sherdog/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Sherdog&oldid=1296044159"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp