FANDOM


Shuriken130xDark Shuriken

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template will make a link to the ability and displaying a tooltip of the ability when hovered upon. It will only accept the exact name of the ability.
Syntax
Type {{A|Ability name}} as a replacement for ability link.
Input examples

The names are case sensitive.

  • {{A|Shadows Of The Dead}} = ShadowsOfTheDead130xDark Shadows Of The Dead
    • {{A|Shadows of the Dead}} = {{Ability}} Shadows of the Dead not found

If using for Amp (Ability), the suffix should be removed.

  • {{A|Amp}} = Amp130xDark Amp
    • {{A|Amp (Ability)}} = {{Ability}} Amp (Ability) not found

Incorrect ability names give an error.

  • {{A|Howl of Terror}} = {{Ability}} Howl of Terror not found
Technical stuff

The template calls Module:Ability for the ability's icon and check whether it's equal to the error message.

  • If the ability exists, class="ability-tooltip" data-param="{{#var:Name}}" tells javascript that this text wants a tooltip, which is made by {{Tooltip/Ability}}.
  • If the ability doesn't exist, the error is shown instead of a redlink along with Category:Ability Tooltip error added on that page.

Visit Template:A/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.