Template:AbilityInteraction/doc

From The Deadlock Wiki
Revision as of 14:22, 14 July 2026 by Vergir (talk | contribs) (Create documentation for AbilityInteraction template (with help from vergir-bot LLM))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{AbilityInteraction}} displays a boxed note describing how a specific ability interacts with an item or mechanic. It is intended for hero and ability pages, where several boxes are usually stacked together. Each call renders one box: a coloured header and a body.

The header colour is set by the type parameter (positive, negative, or info). Setting state=disabled desaturates the icon to mark an interaction that does not apply. The link parameter accepts either a bare page name or a full URL.

Examples

{{AbilityInteraction
| type  = positive
| file  = Healing Booster.png
| link  = Healing Booster
| title = Healing Booster
| text  = The [[Healing]] from this ability is amplified.
}}

AbilityInteraction: no interaction specified

{{AbilityInteraction
| type  = info
| file  = Slowing Hex.png
| link  = Slowing Hex
| title = Slowing Hex
| text  = This ability is '''not''' interrupted by [[Slowing Hex]].
| state = disabled
}}

AbilityInteraction: no interaction specified

Displays a boxed note describing how an ability interacts with an item or mechanic. One call renders one box.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Header titletitle

Text shown in the box header.

Stringrequired
Body texttext

Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and <br> for multiple lines.

Contentrequired
Colour presettype

Header colour: positive (green), negative (red), or info (blue).

Suggested values
positive negative info
Lineoptional
Icon filefile

File name of the icon image, without the File: prefix.

Example
Healing Booster.png
Fileoptional
Link targetlink

Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.

Example
Healing Booster
Stringoptional
Statestate

Set to disabled to desaturate the icon.

Suggested values
disabled
Lineoptional