This is a protected template!

Template:Loot

From Wowpedia
Jump to: navigation, search
Description
Produces a link to the specified page, formatted as an item link. If the linked page does not exist, links to other database sites will appear next to the redlink for readers with Javascript enabled.
In some cases, it may be appropriate to use a plain link ([[Item Page]]) or {{item}} instead; both of which would produce formatted links for items with Wowpedia pages.
Syntax
{{loot|<quality>|<page_name>|<display_name>}}
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 Wowpedia 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.
Example
{{loot|foo|Noboru's Cudgel}}
{{loot|Poor|Black Dragon Claw}}
{{loot|Common|Bolt of Embersilk Cloth}}
{{loot|uncommon|Darklight Torch}}
{{loot|Rare|Band of Blades}}
{{loot|legendary|Shadowmourne}}
{{loot|enchant|Enchant Chest - Peerless Stats}}
{{loot|heirloom|Inherited Cape of the Black Baron}}
{{loot|rare|Elamentul Maje Staph}}
Result
[Noboru's Cudgel]
[Black Dragon Claw]
[Bolt of Embersilk Cloth]
[Darklight Torch]
[Band of Blades]
[Shadowmourne]
[Enchant Chest - Peerless Stats]
[Inherited Cape of the Black Baron]
[Elamentul Maje Staph]