Editing User:Vergir/AbilityInteraction/doc

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
== 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 — no template changes needed.
=== 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 ===
; Vitality interactions (green header)
* <code>unstoppable</code> — [[Unstoppable]]
* <code>counterspell</code> — [[Counterspell]]
* <code>debuff_resist</code> — [[Debuff Resist]]
* <code>dispel_magic</code> — [[Dispel Magic]]
* <code>bullet_effect</code> — [[Plated Armor]]
; Spirit interactions (purple header)
* <code>movement_restriction</code> — [[Slowing Hex]]
* <code>ability_range</code> — [[Ability Range]]
* <code>ability_duration</code> — [[Ability Duration]]
* <code>charges</code> — [[Charges]]
=== 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>
The second example omits <code>text=</code>, so the default description from [[Module:Vergir/InteractionTypes]] is shown in grey italics.
=== Related pages ===
* [[User:Vergir/AbilitySection]] — parent template that hosts interaction rows
* [[Module:Vergir/InteractionTypes]] — add or edit interaction types here
* [[Template:Vergir/AbilitySection/styles.css]] — CSS for row styling
<includeonly>[[Category:Vergir templates]]</includeonly>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)