Template:AbilitySection/doc: Difference between revisions

Vergir (talk | contribs)
Docs: remove stale non-functional interactions param; document the auto-generated interaction-hint rail (with help from vergir-bot LLM)
Line 6: Line 6:


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.
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 (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:
* Only tabs with content are shown.
* Only tabs with content are shown.
* A <code>Show All</code> tab is appended automatically if two or more tabs have content.
* A <code>Show All</code> tab is appended automatically if two or more tabs have content.
* If no content parameters are provided, no details panel is rendered at all — only the ability card.
* If no content parameters are provided, no details panel is rendered at all — only the ability card (and its hint rail, if any).


=== Parameters ===
=== Parameters ===
Line 32: Line 34:
"description": "Wikitext for the Notes tab.",
"description": "Wikitext for the Notes tab.",
"example": "* Can be detonated by [[Melee Attack|melee attacks]].",
"example": "* Can be detonated by [[Melee Attack|melee attacks]].",
"type": "string",
"required": false
},
"interactions": {
"description": "Wikitext for the Interactions tab.",
"example": "* Cast range is not affected by [[Ability Range]] increases.",
"type": "string",
"type": "string",
"required": false
"required": false
Line 52: Line 48:
"ability_num",
"ability_num",
"notes",
"notes",
"interactions",
"tips"
"tips"
],
],
Line 67: Line 62:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
| interactions =
* Cast range is not affected by [[Ability Range]] increases
| tips        =
| tips        =
* T3 talent allows stacking several bells for high damage traps.
* T3 talent allows stacking several bells for high damage traps.
Line 79: Line 72:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
| interactions =
* Cast range is not affected by [[Ability Range]] increases
| tips        =
| tips        =
* T3 talent allows stacking several bells for high damage traps.
* T3 talent allows stacking several bells for high damage traps.
Line 88: Line 79:


* [[Module:AbilitySection]] — Lua backend
* [[Module:AbilitySection]] — Lua backend
* [[Module:AbilityHints]] — interaction-hint icons rendered beside the card
* [[Template:AbilitySection/styles.css]] — CSS
* [[Template:AbilitySection/styles.css]] — CSS
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>