User:Vergir/AbilityInteraction: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Update interaction header colors (with help from vergir-bot LLM) |
Rewrite as thin wrapper calling Module:Vergir/InteractionTypes — single config source of truth (with help from vergir-bot LLM) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Vergir/InteractionTypes|render|type={{{type|}}}|text={{{text|}}}}}</includeonly><noinclude> | ||
{{# | |||
}}</includeonly><noinclude> | |||
== Overview == | == Overview == | ||
Renders a single styled interaction row for use inside the <code>interactions=</code> parameter of [[User:Vergir/AbilitySection]]. | Renders a single styled interaction row for use inside the <code>interactions=</code> parameter of [[User:Vergir/AbilitySection]]. | ||
All type definitions (label, icon, color, default text) live in [[Module:Vergir/InteractionTypes]]. Adding a new interaction type only requires editing that module. | |||
=== Parameters === | === Parameters === | ||
| Line 61: | Line 9: | ||
! Parameter !! Description !! Required | ! Parameter !! Description !! Required | ||
|- | |- | ||
| <code>type</code> || Interaction type key. Must | | <code>type</code> || Interaction type key. Must match an entry in [[Module:Vergir/InteractionTypes]]. || Yes | ||
|- | |- | ||
| <code>text</code> || | | <code>text</code> || Custom description. If omitted, a default description is shown in grey italics. || No | ||
|} | |} | ||
=== Valid type values === | === Valid type values === | ||
See [[Module:Vergir/InteractionTypes]] for the full list. Current types: | |||
; Vitality (dark green | ; Vitality (dark green) | ||
* <code>unstoppable</code> | * <code>unstoppable</code>, <code>counterspell</code>, <code>debuff_resist</code>, <code>dispel_magic</code>, <code>bullet_effect</code> | ||
; Spirit (dark purple | ; Spirit (dark purple) | ||
* <code>movement_restriction</code> | * <code>movement_restriction</code>, <code>ability_range</code>, <code>ability_duration</code>, <code>charges</code> | ||
=== Example === | === Example === | ||
<pre> | <pre> | ||
{{User:Vergir/AbilityInteraction | {{User:Vergir/AbilityInteraction | ||
| type = counterspell | | type = counterspell | ||
| text = | | text = Counterspell blocks the slow and accuracy debuff, but not the damage. | ||
}} | }} | ||
{{User:Vergir/AbilityInteraction | {{User:Vergir/AbilityInteraction | ||
| type = charges | | type = charges | ||
Revision as of 10:33, 30 April 2026
Overview
Renders a single styled interaction row for use inside the interactions= parameter of User:Vergir/AbilitySection.
All type definitions (label, icon, color, default text) live in Module:Vergir/InteractionTypes. Adding a new interaction type only requires editing that module.
Parameters
| Parameter | Description | Required |
|---|---|---|
type |
Interaction type key. Must match an entry in Module:Vergir/InteractionTypes. | Yes |
text |
Custom description. If omitted, a default description is shown in grey italics. | No |
Valid type values
See Module:Vergir/InteractionTypes for the full list. Current types:
- Vitality (dark green)
unstoppable,counterspell,debuff_resist,dispel_magic,bullet_effect
- Spirit (dark purple)
movement_restriction,ability_range,ability_duration,charges
Example
{{User:Vergir/AbilityInteraction
| type = counterspell
| text = Counterspell blocks the slow and accuracy debuff, but not the damage.
}}
{{User:Vergir/AbilityInteraction
| type = charges
}}