Template:AbilitySection/doc: Difference between revisions

Vergir (talk | contribs)
m update doc once more
 
(6 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]].


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 35: Line 35:
"required": false
"required": false
},
},
"interactions": {
"tips": {
"description": "Wikitext for the Interactions tab.",
"description": "Wikitext for the Tips tab.",
"example": "* Cast range is not affected by [[Ability Range]] increases.",
"example": "* T3 talent allows stacking several bells for high damage traps.",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"tips": {
"interactions": {
"description": "Wikitext for the Tips tab.",
"description": "Wikitext for the Interactions tab. Use {{AbilityInteraction}} blocks.",
"example": "* T3 talent allows stacking several bells for high damage traps.",
"example": "{{AbilityInteraction | interaction = stun | text = ... }}",
"type": "string",
"type": "string",
"required": false
"required": false
Line 52: Line 52:
"ability_num",
"ability_num",
"notes",
"notes",
"interactions",
"tips",
"tips"
"interactions"
],
],
"description": "Generates ability cards in hero pages. Uses Ability card v2/Card"
"description": "Generates ability cards in hero pages. Uses Ability card v2/Card"
Line 67: Line 67:
| 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.
| interactions =
{{AbilityInteraction
| interaction = debuff resist
| text      = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}
</pre>
</pre>
Line 79: Line 82:
| 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.
| interactions =
{{AbilityInteraction
| interaction = debuff resist
| text        = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}


Line 88: Line 94:


* [[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>