(→Named parameters: ; doc level=) |
No edit summary |
||
(20 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
− | The template creates a |
+ | 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; |
+ | ;|float=: tooltip's float location; left or right (default) |
;|width=: tooltip width. Typically 18em. |
;|width=: tooltip width. Typically 18em. |
||
− | ;|disambigpage=: |
+ | ;|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 |
+ | ;|icon=: icon to display; omit File: and file extension (.png); passed to {{t|icon}}. |
+ | ;|class=: Class this ability belongs to. |
||
⚫ | |||
− | ;|level=: |
+ | ;|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=: |
+ | ;|range=: Range of the ability, e.g. "Melee" or a number. |
⚫ | |||
+ | ;|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 |
+ | ;|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= |
+ | |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" /> |
||
⚫ | |||
+ | {{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 |
||
+ | }} |
||
⚫ |
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 |
---|---|
|
|
Demo
- 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.
- 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.
- Dodge
- Passive
- Gives a chance to dodge enemy melee attacks.
- 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.
- Jiny'u Cider
- Level 30 monk ability
- 1.5 min cooldown
- Instant
- Instantly restores all of your Chi.
- 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.