Template:AbilityInteraction/doc: Difference between revisionsGive feedback
mNo edit summary |
Update docs for the file to iconfile parameter rename (with help from vergir-bot LLM) |
||
| Line 22: | Line 22: | ||
"suggestedvalues": [ "positive", "negative", "info" ] | "suggestedvalues": [ "positive", "negative", "info" ] | ||
}, | }, | ||
" | "iconfile": { | ||
"description": "File name of the icon image, without the File: prefix.", | "description": "File name of the icon image, without the File: prefix.", | ||
"type": "string", | "type": "string", | ||
| Line 44: | Line 44: | ||
} | } | ||
}, | }, | ||
"paramOrder": [ "title", "text", "type", " | "paramOrder": [ "title", "text", "type", "iconfile", "link", "state" ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
| Line 55: | Line 55: | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = positive | ||
| | | iconfile = Melee Charge.png | ||
| link | | link = Melee Charge | ||
| title = Melee | | title = Melee | ||
| text | | text = | ||
* This ability benefits from Melee damage bonuses and triggers relevant item effects. | * This ability benefits from Melee damage bonuses and triggers relevant item effects. | ||
* Once a T3 upgrade is acquired it's considered a Heavy Melee attack. | * Once a T3 upgrade is acquired it's considered a Heavy Melee attack. | ||
| Line 65: | Line 65: | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = positive | ||
| | | iconfile = Melee Charge.png | ||
| link | | link = Melee Charge | ||
| title = Melee | | title = Melee | ||
| text | | text = | ||
* This ability benefits from Melee damage bonuses and triggers relevant item effects. | * This ability benefits from Melee damage bonuses and triggers relevant item effects. | ||
* Once a T3 upgrade is acquired it's considered a Heavy Melee attack. | * Once a T3 upgrade is acquired it's considered a Heavy Melee attack. | ||
| Line 77: | Line 77: | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = negative | ||
| | | iconfile = Debuff Reducer.png | ||
| link | | link = Debuff Reducer | ||
| title = Debuff Resist | | title = Debuff Resist | ||
| text | | text = | ||
[[Debuff Resist]] shortens the duration of movement slow and accuraccy debuff. | [[Debuff Resist]] shortens the duration of movement slow and accuraccy debuff. | ||
| Line 88: | Line 88: | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = negative | ||
| | | iconfile = Debuff Reducer.png | ||
| link | | link = Debuff Reducer | ||
| title = Debuff Resist | | title = Debuff Resist | ||
| text | | text = | ||
[[Debuff Resist]] shortens the duration of movement slow and accuraccy debuff. | [[Debuff Resist]] shortens the duration of movement slow and accuraccy debuff. | ||
| Line 102: | Line 102: | ||
<pre> | <pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = info | ||
| | | iconfile = Slowing Hex.png | ||
| link | | link = Slowing Hex | ||
| title = Slowing Hex | | title = Slowing Hex | ||
| state = disabled | | state = disabled | ||
| text | | text = This ability is '''not''' interrupted by [[Slowing Hex]]. | ||
}} | }} | ||
</pre> | </pre> | ||
{{AbilityInteraction | {{AbilityInteraction | ||
| type | | type = info | ||
| | | iconfile = Slowing Hex.png | ||
| link | | link = Slowing Hex | ||
| title = Slowing Hex | | title = Slowing Hex | ||
| state = disabled | | state = disabled | ||
| text | | text = This ability is '''not''' interrupted by [[Slowing Hex]]. | ||
}} | }} | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 22:02, 14 July 2026
Usage
{{AbilityInteraction}} displays a boxed note describing how a specific ability interacts with an item or mechanic.
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.
Parameters
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | Text shown in the box header. | String | required |
| text | text | Wikitext shown in the box body. May contain wikilinks, templates such as AbilityIcon, and <br> for multiple lines. | Content | optional |
| type | type | Header colour: positive (green), negative (red), or info (blue).
| String | required |
| iconfile | iconfile | File name of the icon image, without the File: prefix.
| String | required |
| link | link | Where the header and icon link. A bare page name (e.g. Healing Booster) or a full URL.
| String | required |
| state | state | Set to disabled to desaturate the icon.
| String | optional |
Examples
Positive Interaction
{{AbilityInteraction
| type = positive
| iconfile = Melee Charge.png
| link = Melee Charge
| title = Melee
| text =
* This ability benefits from Melee damage bonuses and triggers relevant item effects.
* Once a T3 upgrade is acquired it's considered a Heavy Melee attack.
}}
AbilityInteraction: no interaction specified
Negative Interaction
{{AbilityInteraction
| type = negative
| iconfile = Debuff Reducer.png
| link = Debuff Reducer
| title = Debuff Resist
| text =
[[Debuff Resist]] shortens the duration of movement slow and accuraccy debuff.
The duration of damage-over-time effect is '''not''' shortened.
}}
AbilityInteraction: no interaction specified
Neutral interaction with disabled state
{{AbilityInteraction
| type = info
| iconfile = Slowing Hex.png
| link = Slowing Hex
| title = Slowing Hex
| state = disabled
| text = This ability is '''not''' interrupted by [[Slowing Hex]].
}}
AbilityInteraction: no interaction specified