Template:Loot/doc

From CotH-Wiki
Jump to navigationJump to search
Description:
Displays the given text as a loot link with the desired item quality (or gold for enchantments). The template checks to see if the item exists on WoWWiki before applying brackets. If the item is missing from WoWWiki, DB search links are added by Javascript. The pop-up feature is sometimes disabled due to load issues on the website.
Syntax:
{{loot|<quality>|<page_name>|<optional_item_name>}}
The quality parameter is used to give the Quality of the item (default: common). The color of the link is adjusted corresponding to the quality.
The page name parameter is used to link to the page describing the item (default "Unknown"). Normally the value of this parameter is shown.
The optional item name, if given, is used to show a text different to the item's name. If the optional item name is "s" it will be interpreted as a plural s and appended to the page name. For any other values, the page name is simply substituted with the optional item name.
Example:
{{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|uncommon|Made up Wow item}}
{{loot|enchant|Enchant Weapon - Minor Beastslayer}}
{{loot|heirloom|Bloodied Arcanite Reaper}}
Result:
[Noboru's Cudgel]
[Spice Bread]
[Zulian Stone Axe]
[Arcane Tomes]
[Emblems of Heroism]
[Made up Wow item]
[Enchant Weapon - Minor Beastslayer]
[Bloodied Arcanite Reaper]