FANDOM


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=optional_item_id>|<subdomain=optional_DB_subdomain>}}
Parameter dividers are required up to the last required parameter.
<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.
<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.
<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 Wowhead subdomain. Used when id = used.
Currently supports subdomain=old, subdomain=ptr, or subdomain=mop (for Mists-Logo-Small Mists of Pandaria before it goes live). Only used for WoWDB (ptr only) and Wowhead (old, ptr, or mop).
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}}
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] ru:Шаблон:Добыча
Community content is available under CC-BY-SA unless otherwise noted.