Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Created page with "===Custom Instances=== ====Bael Modan==== {| class="darktable" |- ! Bosses || Monsters |- valign=top |- valign=top | * Ruins of Bael Modan ** {{RaceIconExt|Golem}} Orvon the Wat...")
 
 
Line 1: Line 1:
  +
{{Help:Header}}
===Custom Instances===
 
  +
This is an overview of the various [[Wowpedia]] tooltips that display when you mouseover a link (assuming you have {{wplink|JavaScript}} support in your browser). In addition, it explains the special relationships between several important templates that work together to show these tooltips .
   
  +
== {{t|Item}}, {{t|Loot}}, and {{t|Itemtip}} ==
====Bael Modan====
 
  +
The ''{{t|item}}'' and ''{{t|loot}}'' templates both create a tooltip link, using information from the {{t|itemtip}} on the item's page. Do not use ''{{t|item}}'' tooltip inside {{t|itemtip}} or {{t|settip}}.
  +
  +
<blockquote>
 
{| class="darktable"
 
{| class="darktable"
  +
|+Item vs. Loot
 
|-
 
|-
  +
!Item!!Loot
! Bosses || Monsters
 
 
|-
|- valign=top
 
  +
| Pulls the color directly from the {{t|itemtip}} || Displays the color from the <quality> parameter
|- valign=top
 
|
+
|-
  +
| More load on server || Less load on server
* Ruins of Bael Modan
 
 
|-
** {{RaceIconExt|Golem}} Orvon the Watcher
 
  +
| Invalid pages are red || Invalid pages create DB links
|
 
 
|-
<br />
 
  +
| Pages with no/invalid {{t|itemtip}} embed the target page contents into page with {{t|item}}.|| Pages with no/invalid {{t|itemtip}} display an Error tooltip.
* {{RaceIconExt|Golem}} Ruins Watcher
 
 
|-
* {{RaceIconExt|Golem}} Bael Golem
 
  +
| Can display item icon || Can be used for enchants
* {{RaceIconExt|Golem}} Bael Watcher
 
* {{RaceIconExt|EarthenSouth|Small}} Bael Earthen
 
* {{RaceIconExt|EarthenSouth|Small}} Bael Banisher
 
|- valign=top
 
|
 
* The Custodian's Dias
 
** {{RaceIconExt|StoneKeeper|Small}} [[Archeras the Custodian]]
 
|
 
<br />
 
* {{RaceIconExt|Titan|Male}} Hand of the Custodian
 
|- valign=top
 
|
 
 
|}
 
|}
  +
</blockquote>
  +
  +
'''Item''' format: {{t|item|page_name|display_name}} + |icon=.
  +
* '''<page_name>''' is the only required parameter.
  +
* <s>Include <tt>|icon=</tt> to have the item's icon appear.</s> Default linking shows the icon: [[Archeus]]
  +
  +
  +
'''Link''' format: {{t|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.
  +
  +
<blockquote>
  +
{|
  +
|-
  +
|style="border-bottom:1px solid white;"| '''{{t|item}} Example'''
  +
|style="border-bottom:1px solid white;"| '''Result'''
  +
|style="border-bottom:1px solid white;"| '''{{t|loot}} Example'''
  +
|style="border-bottom:1px solid white;"| '''Result'''
  +
|-
  +
||<code><nowiki>{{item|Warp Slicer|s}}</nowiki></code>||{{item|Warp Slicer|s}}
  +
||<code><nowiki>{{loot|legendary|Warp Slicer|s}}</nowiki></code>||{{loot|legendary|Warp Slicer|s}}
  +
|-
  +
||<code><nowiki>{{item|Dignified Headmaster's Charge}}</nowiki></code>||{{item|Dignified Headmaster's Charge}}
  +
||<code><nowiki>{{loot|epic|Dignified Headmaster's Charge}}</nowiki></code>||{{loot|epic|Dignified Headmaster's Charge}}
  +
|-
  +
||<code><nowiki>{{item|Invalid Page</nowiki></code>}}||{{item|Invalid Page}}
  +
||<code><nowiki>{{loot|common|Invalid Page}}</nowiki></code>||{{loot|common|Invalid Page}}
  +
|-
  +
||Enchants not available ||
  +
||<code><nowiki>[[Enchant Weapon - Fiery Weapon]]</nowiki></code>||[[Enchant Weapon - Fiery Weapon]]
  +
|-
  +
||<code><nowiki>{{item|Corruption (sword)|Corruption}}</nowiki></code>||{{item|Corruption (sword)|Corruption}}
  +
||<code><nowiki>{{loot|rare|Corruption (sword)|Corruption}}</nowiki></code>||{{loot|Rare|Corruption (sword)|Corruption}}
  +
|}
  +
</blockquote>
  +
  +
The enchant syntax for {{t|loot}} is proper for profession modifications that function as enchantments such as [[Fur Lining - Stamina]] and [[Socket Bracer]], which use the [[Template:Embroid|Embroid template]] for their {{t|itemtip}}.
  +
  +
Both {{t|item}} and {{t|loot}} require a valid {{t|itemtip}} on the target page to function correctly.
  +
<blockquote>
  +
;Example {{t|itemtip}}
  +
<pre>{{#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
  +
}}</pre>
  +
</blockquote>
  +
  +
;You can use the following item to test the contents of various {{t|itemtip}} parameters:
  +
::{{loot|common|Help:Test loot|Test loot}}
  +
  +
== {{t|Mob}}, {{t|NPC}}, and {{t|Npcbox}} ==
  +
The ''{{t|mob}}'' and ''{{t|NPC}}'' templates both create a tooltip link, using information from the {{t|npcbox}} on the NPC's page (<nowiki>{{Mobbox}}</nowiki> was previously used for {{t|mob}}, but has been replaced with {{t|Npcbox}}).
  +
  +
<blockquote>
  +
{| class="darktable"
  +
|+Mob vs. NPC
  +
|-
  +
!Mob!!NPC
  +
|-
  +
| Displays a combat icon before the link. || Displays the icon from the <faction> parameter.
  +
|-
  +
| Used only for NPCs that neither faction can interact with. || Used for NPCs that at least one faction can interact with.
  +
|}
  +
</blockquote>
  +
  +
'''Mob''' format: {{t|mob|page_name|title|display_name}}. See {{t|mob}} for additional parameters.
  +
* '''<page_name>''' is the only required parameter.
  +
* '''<title>''' should only be the title displayed when mousing over the NPC in-game.
  +
* '''<display_name>''' can be used to hide disambiguations.
  +
  +
  +
'''NPC''' format: {{t|NPC|faction|page_name|title|display_name|level=|icon=}}. See {{t|NPC}} for additional parameters.
  +
* '''<faction>''' inserts an icon for the NPC's faction before link. Values: Alliance, Horde, Neutral, Combat.
  +
* '''<page_name>''' is the only required parameter.
  +
* '''<title>''' should only be the title displayed when mousing over the NPC in-game.
  +
* '''<display_name>''' can be used to hide disambiguations.
  +
* '''<level=>''', a named parameter*, is the NPC's level.
  +
* '''<icon=>''', a named parameter*, is the NPC's level.
  +
  +
: <nowiki>*</nowiki>Named parameters can be placed anywhere in the parameters and will not affect the ordered parameters.
  +
  +
<blockquote>
  +
{|
  +
|-
  +
|style="border-bottom:1px solid white;"|'''{{t|mob}}Example'''
  +
|style="border-bottom:1px solid white;"|'''Result'''
  +
|style="border-bottom:1px solid white;"|'''{{t|NPC}} Example'''
  +
|style="border-bottom:1px solid white;"|'''Result'''
  +
|-
  +
|<nowiki>{{Mob|Alexander Calder|Warlock Trainer}}</nowiki>||{{Mob|Alexander Calder|Warlock Trainer}}
  +
|<nowiki>{{NPC|Alliance|Alexander Calder|Warlock Trainer}}</nowiki>||{{NPC|Alliance|Alexander Calder|Warlock Trainer}}
  +
|-
  +
|<nowiki>{{Mob|Lord Victor Nefarius|Lord of Blackrock|level=??+}}</nowiki>||{{Mob|Lord Victor Nefarius|Lord of Blackrock|level=??+}}
  +
|<nowiki>{{NPC||level=70+|Andormu|Keepers of Time}}</nowiki>||{{NPC||level=70+|Andormu|Keepers of Time}}
  +
|}
  +
</blockquote>
  +
  +
Both {{t|mob}} and {{t|NPC}} require a valid {{t|Npcbox}} on the target page to function correctly.
  +
<blockquote>
  +
;Example {{t|Npcbox}}
  +
<pre>{{npcbox
  +
| name = Alexander Calder
  +
| image = Alexander Calder.jpg
  +
| title = Warlock Trainer
  +
| level = 60
  +
| type =
  +
| faction = Alliance
  +
| city =
  +
| race = Human
  +
| creature = Humanoid
  +
| sex = Male
  +
| location = [[Ironforge]]
  +
| relatives = [[Amelia Calder|Amelia]] (sister), [[Deze Snowbane]] (cousin)
  +
| status = Alive
  +
}}</pre>
  +
</blockquote>
  +
  +
== {{t|Quest}}, {{t|Questlong}}, or {{t|Questclass}}; and {{t|Questbox}} ==
  +
The {{t|Quest}}, {{t|Questlong}}, or {{t|Questclass}} templates create varying types of quest links that display tooltip with a subset of quest info from data in the {{t|Questbox}} of the target quest.
  +
  +
<blockquote>
  +
{|
  +
|-
  +
|style="border-bottom:1px solid white;"|'''Example''' || style="border-bottom:1px solid white;"|'''Result'''
  +
|-
  +
|<code><nowiki>{{quest|Divino-matic Rod}}</nowiki></code> || {{quest|Divino-matic Rod}}
  +
|-
  +
|<code><nowiki>{{questlong|Neutral|47D|Divino-matic Rod}}</nowiki></code>||{{questlong|Neutral|47D|Divino-matic Rod}}
  +
|-
  +
|<code><nowiki>{{questclass|Neutral|Warlock|60G|Suppression}}</nowiki></code>||{{questclass|Neutral|Warlock|60G|Suppression}}
  +
|}
  +
</blockquote>
  +
  +
For the {{t|Quest}}, {{t|Questlong}}, or {{t|Questclass}} templates to work, the target quest must contain a completed {{t|Questbox}} template.
  +
  +
<blockquote>
  +
;Example {{t|Questbox}}
  +
<code>{{questbox<br/>
  +
| name = {{quest|Suppression}}<br/>
  +
| faction = Neutral<br/>
  +
| level = 60<br/>
  +
| levelreq = 60<br/>
  +
| class = warlock<br/>
  +
| type = Group<br/>
  +
| category = Blasted Lands<br/>
  +
| start = <nowiki>{{NPC|Neutral|Daio the Decrepit|level=60}}</nowiki><br/>
  +
| experience = 650<br/>
  +
| rewards = <nowiki>{{loot|rare|Tome of Sacrifice}}</nowiki><br/>
  +
| id = 7583<br/>
  +
}}
  +
</code>
  +
</blockquote>
  +
  +
== {{t|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 ([[File:BlipA.gif]]) for where the coordinates are on the map.
  +
  +
<blockquote>
  +
{|
  +
|-
  +
|style="border-bottom:1px solid white;"| '''Example'''
  +
|style="border-bottom:1px solid white;"| '''Result'''
  +
|-
  +
|<code><nowiki>{{coords|54|51|Stormwind}}</nowiki></code>||{{coords|54|51|Stormwind}}
  +
|-
  +
|<code><nowiki>{{coords|56|75|Durotar}}</nowiki></code>||{{coords|55.8|75.3|Durotar}}
  +
|}
  +
</blockquote>
  +
  +
For a list of map names to use, see [[Template:Coords/Maps]].
  +
  +
== {{t|Ability}} ==
  +
This template creates a link to a spell or other ability.
  +
  +
<blockquote>
  +
{|
  +
|-
  +
|style="border-bottom:1px solid white;"|'''Example''' ||style="border-bottom:1px solid white;"|'''Result'''
  +
|-
  +
|<code><nowiki>[[Frostfire Bolt]]</nowiki></code>||[[Frostfire Bolt]]
  +
|-
  +
|<code><nowiki>{{ability|Execute|Mage killer}}</nowiki></code>||{{ability|Execute|Mage killer}}
  +
|-
  +
|<code><nowiki>[[Magical Pink Pony Power]]</nowiki></code>||[[Magical Pink Pony Power]]
  +
|}
  +
</blockquote>
  +
  +
This template requires {{t|Infobox ability}} to be on the target page.
  +
  +
== How it works ==
  +
The templates work in combination with Javascript to load the box, tooltip, or other relevant data for display. The mechanism was developed by [[User:Pcj|Pcj]].
  +
  +
[[Category:Help]]
  +
[[Category:Wowpedia]]
  +
[[ru:Справка:Всплывающие подсказки]]

Revision as of 09:31, 29 March 2011

Help:Header This is an overview of the various Wowpedia 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, using information from the {{itemtip}} on the item's page. Do not use {{item}} tooltip inside {{itemtip}} or {{settip}}.

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
Invalid pages are red Invalid pages create DB links
Pages with no/invalid {{itemtip}} embed the target page contents into page with {{item}}. Pages with no/invalid {{itemtip}} display an Error tooltip.
Can display item icon Can be used for enchants

Item format: {{item|<page_name>|<display_name>}} + |icon=.

  • <page_name> is the only required parameter.
  • Include |icon= to have the item's icon appear. Default linking shows the icon: Inv sword 08 [Archeus]


Link 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}} Inv sword 69 [Warp Slicers] {{loot|legendary|Warp Slicer|s}} [Warp Slicers]
{{item|Dignified Headmaster's Charge}} Inv jewelry talisman 12 [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]
Enchants not available [[Enchant Weapon - Fiery Weapon]] Enchant Weapon - Fiery Weapon
{{item|Corruption (sword)|Corruption}} Inv sword 07 [Corruption] {{loot|rare|Corruption (sword)|Corruption}} [Corruption]

The enchant syntax for {{loot}} is proper for profession modifications that function as enchantments such as Fur Lining - Stamina and Inv jewelcrafting thoriumsetting [Socket Bracer], which use the Embroid template for their {{itemtip}}.

Both {{item}} and {{loot}} require a valid {{itemtip}} on the target page 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
[Test loot]

{{Mob}}, {{NPC}}, and {{Npcbox}}

The {{mob}} and {{NPC}} templates both create a tooltip link, using information from the {{npcbox}} on the NPC's page ({{Mobbox}} was previously used for {{mob}}, but has been replaced with {{Npcbox}}).

Mob vs. NPC
Mob NPC
Displays a combat icon before the link. Displays the icon from the <faction> parameter.
Used only for NPCs that neither faction can interact with. Used for NPCs that at least one faction can interact with.

Mob format: {{mob|<page_name>|<title>|<display_name>}}. See {{mob}} for additional parameters.

  • <page_name> is the only required parameter.
  • <title> should only be the title displayed when mousing over the NPC in-game.
  • <display_name> can be used to hide disambiguations.


NPC format: {{NPC|<faction>|<page_name>|<title>|<display_name>}}. See {{NPC}} for additional parameters.

  • <faction> inserts an icon for the NPC's faction before link. Values: Alliance, Horde, Neutral, Combat.
  • <page_name> is the only required parameter.
  • <title> should only be the title displayed when mousing over the NPC in-game.
  • <display_name> can be used to hide disambiguations.
  • <level=>, a named parameter*, is the NPC's level.
  • <icon=>, a named parameter*, is the NPC's level.
*Named parameters can be placed anywhere in the parameters and will not affect the ordered parameters.
{{mob}}Example Result {{NPC}} Example Result
{{Mob|Alexander Calder|Warlock Trainer}} Mob Alexander Calder <Warlock Trainer> {{NPC|Alliance|Alexander Calder|Warlock Trainer}} Alliance Alexander Calder <Warlock Trainer>
{{Mob|Lord Victor Nefarius|Lord of Blackrock|level=??+}} Mob Lord Victor Nefarius <Lord of Blackrock> {{NPC||level=70+|Andormu|Keepers of Time}} Andormu <Keepers of Time>

Both {{mob}} and {{NPC}} require a valid {{Npcbox}} on the target page to function correctly.

Example {{Npcbox}}
{{npcbox
 | name = Alexander Calder
 | image = Alexander Calder.jpg
 | title = Warlock Trainer
 | level = 60
 | type = 
 | faction = Alliance
 | city = 
 | race = Human
 | creature = Humanoid
 | sex = Male
 | location = [[Ironforge]]
 | relatives = [[Amelia Calder|Amelia]] (sister), [[Deze Snowbane]] (cousin)
 | status = Alive
}}

{{Quest}}, {{Questlong}}, or {{Questclass}}; and {{Questbox}}

The {{Quest}}, {{Questlong}}, or {{Questclass}} templates create varying types of quest links that display tooltip with a subset of quest info from data in the {{Questbox}} of the target quest.

Example Result
{{quest|Divino-matic Rod}} Divino-matic Rod
{{questlong|Neutral|47D|Divino-matic Rod}} N [47D] Divino-matic Rod
{{questclass|Neutral|Warlock|60G|Suppression}} Template:Questclass

For the {{Quest}}, {{Questlong}}, or {{Questclass}} templates 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 (BlipA) for where the coordinates are on the map.

Example Result
{{coords|54|51|Stormwind}} [54, 51]VZ-StormwindBlip
{{coords|56|75|Durotar}} [55.8, 75.3]VZ-DurotarBlip

For a list of map names to use, see Template:Coords/Maps.

{{Ability}}

This template creates a link to a spell or other ability.

Example Result
[[Frostfire Bolt]] Ability mage frostfirebolt [Frostfire Bolt]
{{ability|Execute|Mage killer}} Inv sword 48 [Mage killer]
[[Magical Pink Pony Power]] Magical Pink Pony Power

This template requires {{Infobox ability}} to be on the target page.

How it works

The templates work in combination with Javascript to load the box, tooltip, or other relevant data for display. The mechanism was developed by Pcj. ru:Справка:Всплывающие подсказки