FANDOM


Description
This template will make a link to the weapon and displaying a tooltip of the weapon when hovered upon. It will only accept the exact name of the weapon.
Syntax
Type {{Weapon|Weapon name}} as a replacement for weapon link.
Input examples

In case of exalted weapons, the suffix (Weapon) doesn't require removal but would be prefered.

Of course there is a single exception to suffixes, Dark Split-Sword. It can be linked with the general name or with either one of its variations.

Incorrect weapon name gives an error. The name is case sensitive as well.

  • {{Weapon|Spork of Terror}}
    • {{Weapon}} "Spork of Terror" not found
Technical stuff

The template calls p.weaponTooltipText in Module:Weapons for the link text.

  • If the Weapon exists, class="weapon-tooltip" data-param="{{#var:Name}}" tells javascript that this text wants a tooltip, which is made by {{Tooltip/Weapon}}.
  • If the weapon doesn't exist, the error is shown instead of a redlink along with Category:Weapon Tooltip error added on that page.
Community content is available under CC-BY-SA unless otherwise noted.