Wowpedia

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

READ MORE

Wowpedia
(→‎Named parameters: ; doc level=)
No edit summary
 
(20 intermediate revisions by 9 users not shown)
Line 1: Line 1:
The template creates a [[WoW]] styled tooltip for abilities; you provide the required information through a series of named parameters.
+
The template creates a WoW styled [[tooltip]] for abilities; you provide the required information through a series of named parameters.
   
 
===Named parameters===
 
===Named parameters===
Line 7: Line 7:
 
|-
 
|-
 
| valign="top"|
 
| valign="top"|
;|float=: tooltip's float location; for item pages, always use <code><nowiki>{{#ifeq:{{PAGENAME}}|Item Name|right|left}}</nowiki></code>.
+
;|float=: tooltip's float location; left or right (default)
 
;|width=: tooltip width. Typically 18em.
 
;|width=: tooltip width. Typically 18em.
;|disambigpage=: name of Wowpedia page for this ability, if different from item name (used mainly for disambiguated pages).
+
;|disambigpage=: Wowpedia page for this ability. Not required if this template is used directly on that page.
 
| valign="top"|
 
| valign="top"|
 
;|name=: ability name, as it appears in game.
 
;|name=: ability name, as it appears in game.
;|icon=: icon to display; omit Image: and file extension (.png); passed to {{t|icon}}.
+
;|icon=: icon to display; omit File: and file extension (.png); passed to {{t|icon}}.
  +
;|class=: Class this ability belongs to.
;|cast=: Cast time (provide a number, 0 for instant; also accepts Passive, Next Melee, Channel; use -1 to force just "Instant" and not "Instant cast").
 
;|level=: Numeric level of this ability.
+
;|level=: Level at which this ability is learned.
  +
;|spec=: Specialization name for specialization-granted abilities.
  +
;|talent=: "yes" if this ability is a talent, omit otherwise.
  +
;|replaces=: The ability that a talent replaces. Don't include brackets.
 
;|cost=: Numeric cost of this ability.
 
;|cost=: Numeric cost of this ability.
 
;|costunit=: Textual unit of the ability's cost ("Mana", "Energy", "Rage" etc)
 
;|costunit=: Textual unit of the ability's cost ("Mana", "Energy", "Rage" etc)
;|range=: Numeric range of this ability (yards).
+
;|range=: Range of the ability, e.g. "Melee" or a number.
 
;|cast=: Cast time (provide a number, 0 for instant; also accepts Passive, Next Melee, Channel; use -1 to force just "Instant" and not "Instant cast").
  +
;|cooldown: Cooldown time (e.g. "30 sec", "2 min")
 
;|reagents=: Reagents required to use the ability.
 
;|reagents=: Reagents required to use the ability.
;|desc=: ability description (may use spelllink to link to effect if desired). Use break tags to force multiple lines if required.
+
;|desc=: ability description (may use spelllink to link to effect if desired). Use <code><nowiki><br /></nowiki></code> tags to force multiple lines if required.
  +
;|req=: requirement to use the ability (Melee Weapon, Cat Form etc.)
  +
;|sub=: transcludes another ability's tooltip into the current page's tooltip; currently only used for Azerite Essences.
  +
;|subabove=: text that goes above the sub-ability.
  +
;|sub2=: a second ability to be transcluded.
  +
;|sub2above=: text that goes above the second sub-ability.
 
|}
 
|}
   
Line 25: Line 35:
 
{{Abilitytip
 
{{Abilitytip
 
|name=Entangling Roots
 
|name=Entangling Roots
  +
|disambigpage=Entangling Roots
|disambigpage={{#ifeq:{{FULLPAGENAME}}|Template:Abilitytip|Template:Abilitytip|Template:Abilitytip/doc}}
 
|width=18em
 
 
|icon=Spell_Nature_StrangleVines
 
|icon=Spell_Nature_StrangleVines
 
|cast=1.5
 
|cast=1.5
Line 37: Line 46:
 
{{Abilitytip
 
{{Abilitytip
 
|name=Gift of the Wild
 
|name=Gift of the Wild
  +
|disambigpage=Gift of the Wild
|disambigpage={{#ifeq:{{FULLPAGENAME}}|Template:Abilitytip|Template:Abilitytip|Template:Abilitytip/doc}}
 
|width=18em
 
 
|icon=Spell_Nature_GiftoftheWild
 
|icon=Spell_Nature_GiftoftheWild
 
|cast=0
 
|cast=0
Line 44: Line 52:
 
|cost=900
 
|cost=900
 
|costunit=Mana
 
|costunit=Mana
|reagents={{loot|common|Wild Berries}}
+
|reagents=[[:Wild Berries (reagent)|Wild Berries]]
 
|desc=Gives the Gift of the Wild to the target's party, increasing armor by 324, all attributes by 13 and all resistances by 20 for 1 hour.
 
|desc=Gives the Gift of the Wild to the target's party, increasing armor by 324, all attributes by 13 and all resistances by 20 for 1 hour.
 
}}
 
}}
 
{{Abilitytip
 
{{Abilitytip
 
|name=Dodge
 
|name=Dodge
  +
|disambigpage=Dodge
|disambigpage={{#ifeq:{{FULLPAGENAME}}|Template:Abilitytip|Template:Abilitytip|Template:Abilitytip/doc}}
 
|width=18em
 
 
|icon=Spell Nature Invisibilty
 
|icon=Spell Nature Invisibilty
 
|cast=Passive
 
|cast=Passive
 
|desc=Gives a chance to dodge enemy melee attacks.
 
|desc=Gives a chance to dodge enemy melee attacks.
 
}}
 
}}
  +
<br clear="all" />
<includeonly>[[Category:Ability templates|{{PAGENAME}}]][[Category:WoW utility templates|{{PAGENAME}}]][[ru:Шаблон:СпособностьВП]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
  +
{{Abilitytip
  +
|name=Consume Shadows
  +
|disambigpage=Consume Shadows
  +
|icon=spell_shadow_antishadow
  +
|desc=The Voidwalker consumes nearby shadows to bolster its form, recovering 30% health and mana over 6 sec and greatly increasing stealth detection to all nearby friendly targets within 30 yards. Cannot be used while in combat.
  +
|cost=10% of base mana
  +
|cast=Channeled
  +
}}
  +
{{Abilitytip
  +
|name=Whiplash
  +
|disambigpage=Whiplash
  +
|icon=ability_warlock_whiplash
  +
|desc=Deals (475 + (0.85 * ($SP * 0.5))) shadow damage and instantly knocks back all enemies within 5 yards.
  +
|cost=2% of base mana
  +
|range=30
  +
|cast=Instant
  +
|cooldown=25 seconds
  +
}}
  +
{{abilitytip
  +
|name=Jiny'u Cider
  +
|disambigpage=Jiny'u Cider
  +
|icon=inv_drink_25_honeytea
  +
|desc=Instantly restores all of your Chi.
  +
|class=Monk
  +
|level=30
  +
|cast=0
  +
|talent=1
  +
|cooldown=1.5 minutes
  +
}}
  +
{{Abilitytip
  +
|name=Mortal Strike
  +
|disambigpage=Mortal Strike
  +
|icon=Ability_Warrior_SavageBlow
  +
|desc=A vicious strike that deals 150% weapon damage plus X and wounds the target, reducing the effectiveness of any healing received by 10% for 10 sec.
  +
|cost=20 Rage
  +
|range=Melee
  +
|cast=0
  +
|req=Melee Weapon
  +
}}
 
<includeonly>[[Category:Ability templates|{{PAGENAME}}]][[Category:WoW tooltip templates|{{PAGENAME}}]][[Category:Templates modifying defaultlinks|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 02:33, 11 September 2021

The template creates a WoW styled tooltip for abilities; you provide the required information through a series of named parameters.

Named parameters

Generic tooltip Ability-specific
|float=
tooltip's float location; left or right (default)
|width=
tooltip width. Typically 18em.
|disambigpage=
Wowpedia page for this ability. Not required if this template is used directly on that page.
|name=
ability name, as it appears in game.
|icon=
icon to display; omit File: and file extension (.png); passed to {{icon}}.
|class=
Class this ability belongs to.
|level=
Level at which this ability is learned.
|spec=
Specialization name for specialization-granted abilities.
|talent=
"yes" if this ability is a talent, omit otherwise.
|replaces=
The ability that a talent replaces. Don't include brackets.
|cost=
Numeric cost of this ability.
|costunit=
Textual unit of the ability's cost ("Mana", "Energy", "Rage" etc)
|range=
Range of the ability, e.g. "Melee" or a number.
|cast=
Cast time (provide a number, 0 for instant; also accepts Passive, Next Melee, Channel; use -1 to force just "Instant" and not "Instant cast").
|cooldown
Cooldown time (e.g. "30 sec", "2 min")
|reagents=
Reagents required to use the ability.
|desc=
ability description (may use spelllink to link to effect if desired). Use <br /> tags to force multiple lines if required.
|req=
requirement to use the ability (Melee Weapon, Cat Form etc.)
|sub=
transcludes another ability's tooltip into the current page's tooltip; currently only used for Azerite Essences.
|subabove=
text that goes above the sub-ability.
|sub2=
a second ability to be transcluded.
|sub2above=
text that goes above the second sub-ability.

Demo

Spell nature stranglevines
  • Entangling Roots
  • 36 yd range
  • 50 Mana
  • 1.5 sec cast
  • Roots the target in place and causes 20 Nature damage over 12 sec.
    Damage caused may interrupt the effect. Only usable outdoors.
Spell nature giftofthewild
  • Gift of the Wild
  • 40 yd range
  • 900 Mana
  • Instant
  • Reagents: Wild Berries
  • Gives the Gift of the Wild to the target's party, increasing armor by 324, all attributes by 13 and all resistances by 20 for 1 hour.
Spell nature invisibilty
  • Dodge
  • Passive
  • Gives a chance to dodge enemy melee attacks.


Spell shadow antishadow
  • Consume Shadows
  • 10% of base mana
  • Channeled
  • The Voidwalker consumes nearby shadows to bolster its form, recovering 30% health and mana over 6 sec and greatly increasing stealth detection to all nearby friendly targets within 30 yards. Cannot be used while in combat.
Ability warlock whiplash
  • Whiplash
  • 30 yd range
  • 2% of base mana
  • 25 sec cooldown
  • Instant
  • Deals (475 + (0.85 * ($SP * 0.5))) shadow damage and instantly knocks back all enemies within 5 yards.
Inv drink 25 honeytea
Ability warrior savageblow
  • Mortal Strike
  • Melee range
  • 20 Rage
  • Instant
  • Requires Melee Weapon
  • A vicious strike that deals 150% weapon damage plus X and wounds the target, reducing the effectiveness of any healing received by 10% for 10 sec.