User:Vergir/AbilityInteraction: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Vergir (talk | contribs)
Rewrite as thin wrapper calling Module:Vergir/InteractionTypes — single config source of truth (with help from vergir-bot LLM)
Vergir (talk | contribs)
Move inline docs to /doc subpage (with help from vergir-bot LLM)
Line 1: Line 1:
<includeonly>{{#invoke:Vergir/InteractionTypes|render|type={{{type|}}}|text={{{text|}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:Vergir/InteractionTypes|render|type={{{type|}}}|text={{{text|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
== Overview ==
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 ===
{| class="wikitable"
! Parameter !! Description !! Required
|-
| <code>type</code> || Interaction type key. Must match an entry in [[Module:Vergir/InteractionTypes]]. || Yes
|-
| <code>text</code> || 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)
* <code>unstoppable</code>, <code>counterspell</code>, <code>debuff_resist</code>, <code>dispel_magic</code>, <code>bullet_effect</code>
 
; Spirit (dark purple)
* <code>movement_restriction</code>, <code>ability_range</code>, <code>ability_duration</code>, <code>charges</code>
 
=== Example ===
<pre>
{{User:Vergir/AbilityInteraction
| type = counterspell
| text = Counterspell blocks the slow and accuracy debuff, but not the damage.
}}
 
{{User:Vergir/AbilityInteraction
| type = charges
}}
</pre>
</noinclude>

Revision as of 13:06, 30 April 2026

Documentation [view] [edit] [history] [purge]