|
|
| (9 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly><!-- | | <templatestyles src="Infobox hero/styles.css" /><templatestyles src="Infobox hero/themes.css" /><includeonly>{{#invoke:InfoboxHero|render}}</includeonly> |
| AbilityInteraction: renders one styled interaction row.
| |
| Parameters:
| |
| type - interaction type key (see valid values in doc)
| |
| text - freeform wikitext description
| |
| -->
| |
| {{#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 = #a07830
| |
| | counterspell = #4a5a7a
| |
| | debuff_reduction = #4a6a7a
| |
| | dispel_magic = #4a7a6a
| |
| | slowing_hex = #6a5a7a
| |
| | ability_range = #5a6a4a
| |
| | ability_duration = #5a5a6a
| |
| | charges = #7a5a4a
| |
| | #default = #555555
| |
| }}; 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_reduction = Debuff_Reducer.png
| |
| | dispel_magic = Dispel_Magic.png
| |
| | slowing_hex = 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 = {{ItemIcon|Counterspell}}
| |
| | debuff_reduction = [[Debuff Resist|Debuff Reduction]]
| |
| | dispel_magic = {{ItemIcon|Dispel Magic}}
| |
| | slowing_hex = {{ItemIcon|Slowing Hex}}
| |
| | ability_range = [[Ability Range|Ability Range]] ({{ItemIcon|Greater Expansion}})
| |
| | ability_duration = [[Ability Duration|Ability Duration]] ({{ItemIcon|Duration Extender}})
| |
| | charges = Charges ({{ItemIcon|Rapid Recharge}})
| |
| | #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
| |
| |}
| |
| | |
| === Valid type values ===
| |
| The canonical list of types is also documented in [[User:Vergir/Module:InteractionTypes]]. Adding a new type requires updating both this template's <code>#switch</code> blocks and that module.
| |
| | |
| * <code>unstoppable</code> — [[Status Effects#Unstoppable|Unstoppable]]
| |
| * <code>counterspell</code> — [[Counterspell]]
| |
| * <code>debuff_reduction</code> — [[Debuff Resist|Debuff Reduction]] (icon: [[Debuff Reducer]])
| |
| * <code>dispel_magic</code> — [[Dispel Magic]]
| |
| * <code>slowing_hex</code> — [[Slowing Hex]]
| |
| * <code>ability_range</code> — [[Ability Range]] (icon: [[Greater Expansion]])
| |
| * <code>ability_duration</code> — [[Ability Duration]] (icon: [[Duration Extender]])
| |
| * <code>charges</code> — Charges (icon: [[Rapid Recharge]])
| |
| | |
| === Example ===
| |
| <pre>
| |
| {{User:Vergir/AbilityInteraction
| |
| | type = dispel_magic | |
| | text =
| |
| {{ItemIcon|Dispel Magic}} used by an ally on the channeled target will immediately return them.
| |
| }}
| |
| </pre> | |
| </noinclude>
| |