User:Vergir/AbilityInteraction: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Rename bullet_armor to bullet_effect; fix default texts for movement_restriction and charges only; remove defaults for all others (with help from vergir-bot LLM) |
Update interaction header colors (with help from vergir-bot LLM) |
||
| Line 7: | Line 7: | ||
Color is determined automatically by type: | Color is determined automatically by type: | ||
vitality (# | vitality (#3d5632) : unstoppable, counterspell, debuff_resist, dispel_magic, bullet_effect | ||
spirit (# | spirit (#624877) : movement_restriction, ability_range, ability_duration, charges | ||
default (# | default (#6a6a6a) : unknown types | ||
--> | --> | ||
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | | ||
<div class="ability-interaction" style="margin-bottom:4px; border-radius:4px; overflow:hidden; font-family:'Open Sans','PT Serif',serif;"> | <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|}}} | <div style="background:{{#switch:{{{type|}}} | ||
| unstoppable = # | | unstoppable = #3d5632 | ||
| counterspell = # | | counterspell = #3d5632 | ||
| debuff_resist = # | | debuff_resist = #3d5632 | ||
| dispel_magic = # | | dispel_magic = #3d5632 | ||
| bullet_effect = # | | bullet_effect = #3d5632 | ||
| movement_restriction = # | | movement_restriction = #624877 | ||
| ability_range = # | | ability_range = #624877 | ||
| ability_duration = # | | ability_duration = #624877 | ||
| charges = # | | charges = #624877 | ||
| #default = # | | #default = #6a6a6a | ||
}}; padding:4px 8px; font-weight:bold; font-size:0.85rem; display:flex; align-items:center; gap:6px; color:#FFEFD7;">[[File:{{#switch:{{{type|}}} | }}; padding:4px 8px; font-weight:bold; font-size:0.85rem; display:flex; align-items:center; gap:6px; color:#FFEFD7;">[[File:{{#switch:{{{type|}}} | ||
| unstoppable = Unstoppable.png | | unstoppable = Unstoppable.png | ||
| Line 71: | Line 71: | ||
Adding a new type requires updating the four <code>#switch</code> blocks in this template (color, icon, label, default text). | Adding a new type requires updating the four <code>#switch</code> blocks in this template (color, icon, label, default text). | ||
; Vitality (dark green, # | ; Vitality (dark green, #3d5632) | ||
* <code>unstoppable</code> — [[Unstoppable]] | * <code>unstoppable</code> — [[Unstoppable]] | ||
* <code>counterspell</code> — [[Counterspell]] | * <code>counterspell</code> — [[Counterspell]] | ||
| Line 78: | Line 78: | ||
* <code>bullet_effect</code> — [[Plated Armor|Bullet Effect]] | * <code>bullet_effect</code> — [[Plated Armor|Bullet Effect]] | ||
; Spirit (dark purple, # | ; Spirit (dark purple, #624877) | ||
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]] (has default text) | * <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]] (has default text) | ||
* <code>ability_range</code> — [[Ability Range]] | * <code>ability_range</code> — [[Ability Range]] | ||
Revision as of 16:31, 29 April 2026
Overview
Renders a single styled interaction row for use inside the interactions= parameter of User:Vergir/AbilitySection.
Parameters
| Parameter | Description | Required |
|---|---|---|
type |
Interaction type key. Must be one of the valid values below. | Yes |
text |
Description of the interaction. movement_restriction and charges have a built-in default; all other types require explicit text. |
No (for movement_restriction/charges), Yes (for all others) |
Color is determined automatically by type — editors do not set it.
Valid type values
Adding a new type requires updating the four #switch blocks in this template (color, icon, label, default text).
- Vitality (dark green, #3d5632)
unstoppable— Unstoppablecounterspell— Counterspelldebuff_resist— Debuff Resistdispel_magic— Dispel Magicbullet_effect— Bullet Effect
- Spirit (dark purple, #624877)
movement_restriction— Movement Restriction (has default text)ability_range— Ability Rangeability_duration— Ability Durationcharges— Charges (has default text)
Example
<!-- With custom text -->
{{User:Vergir/AbilityInteraction
| type = counterspell
| text = [[Counterspell]] blocks the slow and accuracy debuff, but not the damage.
}}
<!-- Using default text -->
{{User:Vergir/AbilityInteraction
| type = charges
}}