Wikia

WoWWiki

Loot

Talk118
101,313pages on
this wiki

Template page

Revision as of 19:58, October 13, 2012 by Fandyllic (Talk | contribs)

Description
Produces an item link that also displays an extensive tooltip (when hovered over, the same as {{item}}), pulling information from that item's wiki page. The tooltip feature is sometimes disabled due to load issues on the website, however {{loot}} puts less load on the server than {{item}}. Also, while {{item}} has the option to display an item's icon, {{loot}} creates DB links to items without WoWwiki pages. Note that the tooltip function requires a valid {{tooltip}} on the item's WoWwiki page.
Syntax
{{loot|<quality>|<page_name>|<display_name>|<id=opt_item_id>|<subdomain=opt_DB_subdomain>}}
Parameter dividers are required up to the last required parameter.
1=<quality> (optional) changes the color of the link to match the corresponding Quality, or yellow for enchantments.
If this parameter is blank or invalid, the link will be colored as a standard hyperlink. Valid values are: poor, common, uncommon, rare, epic, legendary, heirloom, and enchant. Note that this will neither affect nor be affected by the item's quality/color in the tooltip.
2=<page_name> (required) is the WoWwiki page name for the item, whence it pulls the tooltip info.
If this parameter is not a valid page name, the link will still display as normal, but the tooltip will Error, and DB search links will be appended via Javascript to the link. Clicking such a link will open a creation page.
3=<display_name> Optional Changes the link text, though the tooltip is unaffected.
If just "s" is entered, the link will add an "s" to the page name.
id = Optional Spell id. Shows superscript links to DBs.
subdomain = Optional WowDB or Wowhead subdomain. Used when id = used.
Currently supports subdomain=beta (for WowDB Warlords-Logo-Small DB, but point to correct Wowhead link also), or subdomain=wod (for Wowhead Warlords-Logo-Small DB, but point to correct WowDB link also). Only used for WoWDB (beta for Warlords-Logo-Small or ptr) and Wowhead (ptr or wod for Warlords-Logo-Small; subdomain=ptr just redirects to www, so isn't needed; old no longer works).
Example:
{{loot|foo|Noboru's Cudgel}}
{{loot|Poor|Noboru's Cudgel}}
{{loot|Common|Spice Bread}}
{{loot|Rare|Zulian Stone Axe}}
{{loot|uncommon|Arcane Tome|s}}
{{loot|epic|Emblem of Heroism|Emblems of Heroism}}
{{loot|legendary|Made-up Wow item}}
{{loot|enchant|Enchant Weapon - Minor Beastslayer}}
{{loot|heirloom|Bloodied Arcanite Reaper}}
{{loot|epic|Blingtron 5000|id=111821|subdomain=beta}}
{{loot|epic|Blingtron 5000|id=111821|subdomain=wod}}
Result:
[Noboru's Cudgel]
[Noboru's Cudgel]
[Spice Bread]
[Zulian Stone Axe]
[Arcane Tomes]
[Emblems of Heroism]
[Made-up Wow item]
[Enchant Weapon - Minor Beastslayer]
[Bloodied Arcanite Reaper]
[Blingtron 5000]ω ϖ
[Blingtron 5000]ω ϖ

Around Wikia's network

Random Wiki