Template:Tooltip/doc

The template creates a WoW-styled tooltip for items; you can supply any number of the named 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

Required Minimal Syntax
Begin all item-page tooltips with the following three lines: &lt;onlyinclude&gt;&lt;/onlyinclude&gt; The template parameters displayed here are required to enable item pages interact with other consumers of tooltip data, and do not change from page to page.

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:
 * home / 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.


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


 * arg (in combination with |arg=)
 * Returns the value of, evaluated in the tooltip's context.

"type" and "slot" values
List of values that appear in tooltips.
 * type
 * Arrow, Axe, Bow, Bullet, Cloth, Crossbow, Dagger, Fishing Pole, Fist Weapon, Gun, Idol, Leather, Libram, Mace, Mail, Plate, Polearm, Shield, Sigil, 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.

ru:Шаблон:Подсказка