Template:Tooltip/doc

Using this template on an article page creates a formatted information box in the upper right-hand corner of that page. It is also called by item and loot to display that information box as a tooltip. You can supply any number of the optional parameters to display specific text in the tooltip.

Tooltips for other purposes can be created using the templates abilitytip, effecttip, settip, achievementbox, and proftip. The development version of this template can be found at Tooltip/Dev

Examples

 * A link to an item


 * The item

Required Minimum Syntax
The following parameters are required for every tooltip template, and the entire block should always be the first thing on an article page. However, without any further parameters, only an empty box will display:

Item and Loot
For item and loot to work, the following minimum parameters are required:

DE
Use DE to automatically show a tooltip of disenchanting results when mousing over the Item Level number on the article page, the following are required:

Named parameters
This is the full list of named parameters listed in order that they appear in the displayed/in-game tooltip. Parameters that apply color to text in the finished tooltip have the same color here.

Display modes
Passing |mode= to the template (and, by extension to the item page syntax, any item page) affects how the template renders the tooltip. There are several valid mode values:
 * mode=home / mode=away
 * Displays the tooltip as if on its item page (home) or not on its item page (away). If mode is omitted, the appropriate one of those is chosen by default.


 * mode=link / mode=imlink
 * Return an item link (link) or an item link with an image (imlink) instead of the tooltip.


 * mode=arg (in combination with |arg=)
 * Returns the value of the arg parameter defined in the tooltip of that page, or "--" if it is not defined.

"type" and "slot" values
List of values that appear in tooltips.
 * type
 * Arrow, Axe, Bag, Bow, Bullet, Cloth, Crossbow, Dagger, Enchanting Bag, Engineering Bag, Fishing Pole, Fist Weapon, Gem Bag, Gun, Herb Bag, Idol, Leather, Leatherworking Bag, Libram, Mace, Mail, Mining Bag, Plate, Polearm, Shield, Sigil, Soul Bag, Staff, Sword, Thrown, Totem, Wand.


 * slot
 * Back, Chest, Feet, Finger, Hands, Head, Held in off-hand, Legs, Main Hand, Neck, Off Hand, One-Hand, Projectile, Ranged, Relic, Shirt, Shoulder, Tabard, Thrown, Trinket, Two-Hand, Waist, Wrist.