Template:Ability
Notes:
Renders the text of a creature ability, with an icon based on the element.
Unless named parameters are used for all of them, the name, damage, element, and condition parameters must always be passed in this order.
Syntax:
{{Ability|name|damage|element|critical=|scene=}}
| Parameter | Required | Usage |
|---|---|---|
name |
⍻ | The name to display for the ability. Although it is preferred to have named parameters, it is not needed to include name= if it is the first parameter.If no name is assigned, it will default to: <Element Name> Damage.
|
damage |
⍻ | The damage dealt by this ability. It can be a range value (e.g. 100-200). Although it is preferred to have named parameters, it is not needed to include damage= if it is the second parameter.
|
element |
⍻ | The element of the damage. If unspecified, physical will be used. Although it is preferred to have named parameters, it is not needed to include element= if it is the third parameter.
|
condition |
✗ | The condition applied by the ability, if any. Although it is preferred to have named parameters, it is not needed to include condition= if it is the fourth parameter.
|
critical |
✗ | Define as yes if the creature can deal Critical Hits.
|
scene |
✗ | The scene demonstrating the ability. Using Template:Scene. |
parentheses |
✗ | Whether to show parentheses or not around the damage value. By default yes. Define as no or false to disable. Not really meant for direct use, but for child templates.
|
Example:
If element is not specified, it will default to physical.
| Input | Output |
|---|---|
{{Ability|Melee|100-200}}
|
Physical damage is inferred. See Template:Melee for an alias. |
{{Ability|Ice Strike|damage=100-200|element=ice}}
|
|
{{Ability|damage=100-200|element=energy}}
|
When no name is provided, a generic name is generated. |
{{Ability|[[Mana Drain]]|100-200|mana drain}}
|
Links may be used as part of the name. Note that the icon is also a link. |
{{Ability|Paralyzes|by 20 speed levels|condition=slowed}}
|
Notice the tooltip and links take you to the status condition instead |
{{Ability|Paralyzing Fire Attack|100-200|element=fire|condition=slowed}}
|
Imaginary attack combination, an attack that deals elemental damage and applies a condition. Condition will have priority over element when it comes to the icon. |
{{Ability|Poisons you|up to 21hp per turn|earth|poisoned}}
|
|
{{Ability|critical=yes}}
|
|
{{Ability
|Great Fireball
|damage=60-140
|element=fire
|scene=
{{Scene
|spell=great_explosion
|effect=Fireball Effect
|effect_on_target=Fireball Effect
|caster=Dragon
|missile=Fire Missile
|missile_direction=south-east
|missile_distance=3/3
|edge_size=0
}}
}}(Expanded for readability)
|
This template has a couple aliases:
