Template:AbilitySection/doc: Difference between revisions

Vergir (talk | contribs)
Document new interactions parameter and add it to the example (with help from vergir-bot LLM)
Vergir (talk | contribs)
m update doc once more
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
On narrow viewports the two columns stack vertically via CSS flex-wrap. Styles are loaded from [[Template:AbilitySection/styles.css]] via TemplateStyles.
On narrow viewports the two columns stack vertically via CSS flex-wrap. Styles are loaded from [[Template:AbilitySection/styles.css]] via TemplateStyles.


Intended to replace [[Template:Ability tabs]] on hero pages. Editors place four of these blocks in sequence, one per ability, each under its own <code>=== Ability Name ===</code> heading directly on the hero page.
An interaction-hint rail is generated automatically between the card and the details panel: small item icons showing how the ability interacts with items, driven by [[Module:AbilityHints]].
 
An interaction-hint rail is generated automatically between the card and the details panel: small item icons showing how the ability interacts with items (dispellable, duration-reduced, blocked, etc.), driven by [[Module:AbilityHints]]. It takes no parameters — membership comes from the same lists as the interaction tables.


Tab visibility rules:
Tab visibility rules:
Line 45: Line 43:
"interactions": {
"interactions": {
"description": "Wikitext for the Interactions tab. Use {{AbilityInteraction}} blocks.",
"description": "Wikitext for the Interactions tab. Use {{AbilityInteraction}} blocks.",
"example": "{{AbilityInteraction | title = ... | text = ... }}",
"example": "{{AbilityInteraction | interaction = stun | text = ... }}",
"type": "string",
"type": "string",
"required": false
"required": false
Line 73: Line 71:
| interactions =
| interactions =
{{AbilityInteraction
{{AbilityInteraction
| type  = positive
| interaction = debuff resist
| file  = Debuff Reducer.png
| text     = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
| link  = Debuff Reducer
| title = Debuff Resist
| text = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}
}}
Line 91: Line 86:
| interactions =
| interactions =
{{AbilityInteraction
{{AbilityInteraction
| type  = positive
| interaction = debuff resist
| file  = Debuff Reducer.png
| text       = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
| link  = Debuff Reducer
| title = Debuff Resist
| text = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}
}}