Editing User:Vergir/AbilityInteraction

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:
<templatestyles src="Infobox hero/styles.css" /><templatestyles src="Infobox hero/themes.css" /><includeonly>{{#invoke:InfoboxHero|render}}</includeonly>
<includeonly><!--
  AbilityInteraction: renders one styled interaction row.
  Parameters:
    type - interaction type key (see valid values in doc)
    text - freeform wikitext description
 
  Color is determined by type automatically:
    vitality (#86c921) : unstoppable, counterspell, debuff_resist, dispel_magic
    spirit  (#de80ff) : movement_restriction, ability_range, ability_duration, charges
    default  (#6b7280) : fallback for unknown types
-->
{{#if: {{{type|}}} |
<div class="ability-interaction" style="margin-bottom:4px; border-radius:4px; overflow:hidden; font-family:'Open Sans','PT Serif',serif;">
  <div style="background:{{#switch:{{{type|}}}
    | unstoppable          = #86c921
    | counterspell        = #86c921
    | debuff_resist        = #86c921
    | dispel_magic        = #86c921
    | movement_restriction = #de80ff
    | ability_range        = #de80ff
    | ability_duration    = #de80ff
    | charges              = #de80ff
    | #default            = #6b7280
  }}; padding:4px 8px; font-weight:bold; font-size:0.85rem; display:flex; align-items:center; gap:6px; color:#FFEFD7;">[[File:{{#switch:{{{type|}}}
    | unstoppable          = Unstoppable Symbol.png
    | counterspell        = Counterspell.png
    | debuff_resist        = Debuff_Reducer.png
    | dispel_magic        = Dispel_Magic.png
    | movement_restriction = Slowing_Hex.png
    | ability_range        = Greater_Expansion.png
    | ability_duration    = Duration_Extender.png
    | charges              = Rapid_Recharge.png
    | #default            = GenericProperty.png
  }}|20px|link=]] {{#switch:{{{type|}}}
    | unstoppable          = [[Status Effects#Unstoppable|Unstoppable]]
    | counterspell        = [[Counterspell]]
    | debuff_resist        = [[Debuff Resist]]
    | dispel_magic        = [[Dispel Magic]]
    | movement_restriction = [[Slowing Hex|Movement Restriction]]
    | ability_range        = [[Ability Range]]
    | ability_duration    = [[Ability Duration]]
    | charges              = Charges
    | #default            = <span style="color:red;">Unknown type: <code>{{{type}}}</code></span>
  }}</div>
  <div style="background:#1e1a22; padding:6px 10px; font-size:0.85rem; color:#FFEFD7;">{{{text|}}}</div>
</div>
}}</includeonly><noinclude>
== Overview ==
Renders a single styled interaction row for use inside the <code>interactions=</code> parameter of [[User:Vergir/AbilitySection]].
 
=== Parameters ===
{| class="wikitable"
! Parameter !! Description !! Required
|-
| <code>type</code> || Interaction type key. Must be one of the valid values below. || Yes
|-
| <code>text</code> || Description of the interaction. Freeform wikitext; may span multiple lines, include links, templates, and bullet points. || Yes
|}
 
Color is determined automatically by type — editors do not set it.
 
=== Valid type values ===
Adding a new type requires updating the three <code>#switch</code> blocks in this template (color, icon, label).
 
; Vitality (green, #86c921)
* <code>unstoppable</code> — [[Status Effects#Unstoppable|Unstoppable]]
* <code>counterspell</code> — [[Counterspell]]
* <code>debuff_resist</code> — [[Debuff Resist]]
* <code>dispel_magic</code> — [[Dispel Magic]]
 
; Spirit (purple, #de80ff)
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]]
* <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.
}}
</pre>
</noinclude>
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)