Help:Tooltips
This is an overview of the various Warcraft Wiki tooltips that display when you mouseover a link (assuming you have JavaScript support in your browser). In addition, it explains the special relationships between several important templates that work together to show these tooltips .
{{Item}}, {{Loot}}, and {{Itemtip}}
The {{item}} and {{loot}} templates both create a tooltip link, the former using information from the {{itemtip}} on the item's page. Notably, due to DefaultLinks, neither template has to be used for item pages on the wiki: normal links already provide formatting (e.g. [Archeus])
Item vs. Loot Item Loot Pulls the color directly from the {{itemtip}} Displays the color from the <quality> parameter More load on server Less load on server Can display item icon Can be used for enchants
Item format: {{item|<page_name>|<display_name>}} + |icon= + |newicon=.
- <page_name> is the only required parameter.
- Include
|icon=
to not include the item's icon.
Loot format: {{loot|<quality>|<page_name>|<display_name>}}.
- <quality> determines the color of the link.
- <page_name> is the only required parameter.
- <display_name> can be used to hide disambiguations.
{{item}} Example Result {{loot}} Example Result {{item|Warp Slicer|s}}
[Warp Slicers] {{loot|legendary|Warp Slicer|s}}
[Warp Slicers] {{item|Dignified Headmaster's Charge}}
[Dignified Headmaster's Charge] {{loot|epic|Dignified Headmaster's Charge}}
[Dignified Headmaster's Charge] {{item|Invalid Page}}
Invalid Page {{loot|common|Invalid Page}}
[Invalid Page] {{item|Corruption (sword)}}
[Corruption] {{loot|rare|Corruption (sword)|Corruption}}
[Corruption] {{item|Corruption (sword)|Some Sword}}
[Some Sword]
The enchant syntax for {{loot}} is not needed for either enchants such as Enchant Weapon - Fiery Weapon, or profession modifications that function as enchantments such as Fur Lining - Stamina and [Socket Bracer] (which use the Embroid template for their {{itemtip}}).
Both {{item}} and {{loot}} require a valid {{itemtip}} on the target page in order for tooltips to function correctly.
- Example {{itemtip}}
{{#data:Itemtip |itemid=2000 |dmglow=63 |dmghigh=95 |speed=3.30 |icon=INV_Sword_08 |quality=Uncommon |onhit=Blasts a target for 85 Arcane damage. |flavor=[[Morgan Ladimore]]'s sword. |name=Archeus |durability=85 |bind=BoP |type=Sword |slot=Two-Hand |sellprice=8827 |ilvl=35 }}
- You can use the following item to test the contents of various {{itemtip}} parameters
Quest links
For quest links to work, the target quest must contain a completed {{Questbox}} template.
- Example {{Questbox}}
{{questbox
| name = Suppression
| faction = Neutral
| level = 60
| levelreq = 60
| class = warlock
| type = Group
| category = Blasted Lands
| start = {{NPC|Neutral|Daio the Decrepit|level=60}}
| experience = 650
| rewards = {{loot|rare|Tome of Sacrifice}}
| id = 7583
}}
{{Coords}}
This template creates a superscript link to a page with the name of the 3rd (map) parameter and shows a tooltip of the corresponding map with a marker () for where the coordinates are on the map.
Example Result {{coords|54|51|Stormwind City}}
[54, 51] {{coords|55.8|75.3|Durotar}}
[55.8, 75.3]
For a list of map names to use, see Special:PrefixIndex/File:VZ-.
{{Ability}}
This template creates a link to a spell or other ability.
Example Result [[Frostfire Bolt]]
[Frostfire Bolt] {{ability|Execute|Mage killer}}
[Mage killer] [[Magical Pink Pony Power]]
Magical Pink Pony Power
This template requires {{Infobox ability}} to be on the target page. Example:
{{Help}}
Generic tooltips are created by using the template {{Help}}.
Example Result {{Help|Avarage money dropped|Wealth}}
Wealth
How it works
The templates work in combination with Help:DefaultLinks (by Foxlit) and JavaScript to load the box, tooltip, or other relevant data for display. The JS mechanism was developed by Pcj.