Dota 2 Wiki
Register
(test)
No edit summary
Line 1,352: Line 1,352:
 
{{!}} {{#switch: {{{damagetype|}}}
 
{{!}} {{#switch: {{{damagetype|}}}
 
<!--Physical-->
 
<!--Physical-->
<b><span style="color:#71A9EA">| Physical = {{lang
+
| Physical = <b><span style="color:#71A9EA">{{lang
 
| en = [[Damage types#Physical|Physical]]
 
| en = [[Damage types#Physical|Physical]]
 
| de = [[Damage types/de#Physisch|Physisch]]
 
| de = [[Damage types/de#Physisch|Physisch]]

Revision as of 18:55, 4 January 2016

No Name
Unknown icon
Template:Lang
Template:Lang Template:Lang Template:Lang
Template:Lang

Template:Translation switching

Documentation for Template:Ability [ Usage | View | Edit | Purge | Subpages ]

Usage

Every time a parameter is edited in this template, be sure to edit the wrapper template as well.

{{Ability
| ID = 
| intern = 
| name = 
| image = 
| sound = 
| type = 
| description = 
| lore = 
| target = 
| target2 = 
| affects = 
| affects2 = 
| damagetype = 
| damagetype2 = 
| key = 
| legacy key = 

| piercesdbi = <!-- Notes in this section have color support for upgrades. -->
| dbitext1 = <!-- Affects spell immune enemies.;agh/shard/tal -->
| linkenblock = 
| linkentext1 = 
| illusionuse = 
| illusiontext1 = 
| breakable = 
| breaktext1 = 
| disjointable = 
| disjointtext1 = 
| rootdisables = 
| roottext1 = 
| oncastproc = 
| oncasttext1 = 

| buff1 = 
| buff1text = 
| buff1dispel = 
| debuff1 = 
| debuff1text = 
| debuff1dispel = 

| cast point = 
| cast backswing = 
| cast immediate = <!-- true, if instant cast time -->
| trait1 = Cast Range
| trait1 amp = <!-- range increase type -->
| value1 = 
| trait2 = 
| value2 = 
| trait3 = 
| value3 = 
| trait4 = 
| value4 = 
| trait5 = 
| value5 = 

| mana = 
| currentmana = 
| maxmana = 
| cooldown = 
| aghanimsupgrade = new;ability_name;other_descriptions
| aghshard = new;ability_name;other_descriptions

| adtext = 
| adtext aghs =
| adtext shard =

| subability = 
| linkedability = linkedability&source

| notes = 
}}

Definition

Attribute Description
ID Unique ID of the ability according to npc_abilities.txt. Only displays on hover as the image caption.
name The name of the ability. Copy the exact in-game name.
image Ability icon, if one exists. Use Unknown_icon.png if the ability has no icon. Leave out if the ability belongs to an item.
sound Sound effect(s) of the ability, if one exists. No limit to how many sounds can be listed (sound/sound2/sound3/etc), but cargo only stores the first 3.
type Valid options: ultimate, item, aghanims, npc, hero, talent, rune. Defaults to Hero if left out.
description Official in-game description of the ability. Use status buff/debuff description if the ability has no official description.
lore Lore text of the ability, which is located at the very bottom of the ability tooltips. Leave blank if no lore is present.
target The (targeting) type of the ability. See below for valid entries. If ability has multiple types, use "target2" as well.
affects Tells which units the ability affects. See below for valid entries. If ability can affect multiple groups of units, use "affects2" as well.
damagetype The damage type dealt by the ability if it deals damage. See below for valid entries. If ability uses multiple damage types, use "damagetype2" as well.
key The Dota2 default hotkey for the ability.
legacy key The original DotA1 (legacy) hotkey of the ability.
bkbblock Use to tell whether the ability is blocked by spell immunity or not: Options: Yes, No, Partial
bkbtext# Extra note about spell immunity interaction.
linkenblock Use for single-target spells only, to tell whether Spell Block blocks the spell or not. Options: Yes, No, Partial
linkentext# Extra note about Spell Block interaction.
breakable Use for passive abilities (or abilities with a passive component) to tell whether the passive ability/component is disabled by Break: Options: Yes, No, Partial
breaktext# Extra note about Break interaction.
illusionuse Use to tell whether the ability can be used by illusions or not. Options: Yes, No, Partially
illusiontext# Extra note about illusion usability.
rootdisables Use to tell whether the ability can be used while rooted. Leave out if the ability can be used while rooted. Options: Yes, No, Partially
roottext# Extra note about rooted.
oncastproc Use to tell whether the ability can proc on-cast effects. Leave out if the ability can proc on-cast effects.
oncasttext# Extra note about on-cast effects.
buff# Enter the name of the buff the ability uses. Leave out if the ability uses no buffs.
buff#text Enter the display name of the buff the ability uses on battle log. Leave out if buff uses the same name.
buff#dispel Tell whether the buff is dispellable or not. Options: Any/Strong/None
debuff# Enter the name of the debuff the ability uses. Leave out if the ability uses no debuffs.
debuff#text Enter the display name of the debuff the ability uses on battle log. Leave out if debuff uses the same name.
debuff#dispel Tell whether the debuff is dispellable or not. Options: Any/Strong/None
cast point The time the unit needs to execute the spell. Do not use this for channeling times or on active attack modifier. Use "cast point aghs" for Aghanim's Scepter value.
cast backswing The remaining animation after cast the unit goes through when not canceled. Use "cast backswing aghs" for Aghanim's Scepter value.
trait# First unique trait of the ability. Keep as short as possible and use consistent wording throughout the wiki. Words should be capitalized. Up to 15 traits are allowed.
trait#amp accepted values are castrange, attackrange, both, aoeradius. Used to indicate if cast/attack range (or both) increases the value of the trait.
value# The value corresponding to the trait. Avoid using words. An accepted exception is "Global". Up to 15 values are allowed. Use "value# aghs" for Aghanim's Scepter value.
mana The flat mana cost of the ability. Use "mana aghs" for Aghanim's Scepter value.
currentmana The mana cost of the ability based on the current mana pool.
maxmana The mana cost of the ability based on the maximum mana pool.
cooldown The cooldown time of the ability. Do not use for recharge times. Use "cooldown aghs" for Aghanim's Scepter value, "cooldown shard" for Aghanim's Shard value, "cooldown tal" for talent value, "cooldown aghs tal" for Aghanim's Scepter plus talent value, and "cooldown shard tal" for Aghanim's Shard plus talent value.
linkedability / subability
aghanimsupgrade The Aghanim's Scepter upgrade text. Use official ingame text.
aghshard The Aghanim's Shard upgrade text. Use official ingame text.
adtext / adtext aghs / adtext shard For Ability Draft ability notes only.
notes Anything else about the ability goes here. Only Mechanics and special interactions. DO NOT ADD TIPS TO NOTES, use the tips/guides section for tips.

Valid Entries

Lua logo
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:Ability.
Lua logo
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:KillMarkers.


  • Refer to the Module:Ability for target/target2 Valid Entries.
  • Use one value for the affects parameter!
  • If an ability affects several types, use affects2 after filling in affects.
  • Same rules apply for damagetype and damagetype2 - Physical, Magical, Pure
Target = No Target
Target2 = Channeled

Target = Target Point
Target2 = Target Area aghs

will display: No Target / Channeled or Target Point (Upgradable by Aghanim's Scepter. Target Area)

Examples

Ability Upgrade
Template:Lang Template:Lang
Template:Lang Template:Lang Template:Lang
Upgrades an existing ability or adds a new ability to your hero.

Template:Lang:

  • When a hero has an upgrade available, the item's and the upgraded ability's tooltip states what exactly is upgraded.
  • Single target abilities with Aghanim's Shard upgrades that are reflected by Spell Reflection depend on whether the reflecting hero has Aghanim's Shard, not the original caster of the reflected ability.

Astral Imprisonment
Template:Lang Template:Lang Template:Lang
Template:Lang Template:Lang [[Damage typesTemplate:If lang#Template:Lang|Template:Lang]]
Places a target unit into an astral prison. The hidden unit is invulnerable and disabled. When the astral prison implodes, it deals damage to the target and steals a percentage of their max mana.
Template:Lang: Template:Lang+Template:Lang
Cast Range: Template:Lang
Damage: Template:Lang
Max Mana Steal: Template:Lang
Imprison Duration: Template:Lang
Mana Steal Duration: Template:Lang
Damage Radius: Template:Lang
Ally Move Speed Slow: Template:Lang
Cooldown symbol Template:Lang Mana symbol 150
Upgradable by Aghanim's Scepter. Grants charges to Astral Imprisonment, increases damage by Expression error: Missing operand for -. and applies the damage in an area.
Template:Lang

Template:Lang:

  • Targeted allies are imprisoned without any of the other effects being applied on them.
  • If the target is an enemy, they get damaged at the end of the imprisonment duration.
  • The red ring expanding at the center of the visual effects indicates a fixed 4-second duration. The red ring is visible to allies only.
  • With Aghanim's Scepter icon Aghanim's Scepter, the area damage is applied at the end of the imprisonment duration regardless of the target's alliance.

Random Ability
Partially pierces spell immunity. Partially blocked by Linken's Sphere. Cannot be used by illusions. Partially disabled by Break.
M
C
Template:Lang Template:Lang Template:Lang
Template:Lang Template:Lang [[Damage typesTemplate:If lang#Template:Lang|Template:Lang]]
I like cheese
Template:Lang: Template:Lang+Template:Lang
Cast Range: Template:Lang
Random Radius: Template:Lang
Random Damage: Template:Lang
Damage per Second: Template:Lang
Cooldown symbol Template:Lang Mana symbol 28/26/24/22
Upgradable by Aghanim's Scepter. Aghanim's Scepter upgrade above Shard. It is simply dummy text of the printing and typesetting industry.
Template:Lang

Template:Lang:

  • notesnotesnotes

Depreciated Functions