Editing Template:AbilitySection/docGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 3: | Line 3: | ||
Two-column layout wrapping [[Template:Ability card v2]] on the left and an optional tabbed details panel on the right. Backed by [[Module:AbilitySection]]. | Two-column layout wrapping [[Template:Ability card v2]] on the left and an optional tabbed details panel on the right. Backed by [[Module:AbilitySection]]. | ||
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:Vergir/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. | |||
=== Parameters === | |||
{| class="wikitable" | |||
! Parameter !! Description !! Required | |||
|- | |||
| <code>hero_name</code> || Hero name, passed to [[Template:Ability card v2]]. || Yes | |||
|- | |||
| <code>ability_num</code> || Ability index (1–4), passed to [[Template:Ability card v2]]. || Yes | |||
|- | |||
| <code>notes</code> || Freeform wikitext for the Notes tab. Supports links, templates, bullet points. || No | |||
|- | |||
| <code>interactions</code> || One or more [[User:Vergir/AbilityInteraction]] calls for the Interactions tab. || No | |||
|- | |||
| <code>tips</code> || Freeform wikitext for the Tips tab. || No | |||
|} | |||
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 | * A <code>Show All</code> tab is appended if two or more tabs with content | ||
* If no | * If no parameters are provided, no notes panel is rendered at all. | ||
=== Example === | === Example === | ||
<pre> | <pre> | ||
{{AbilitySection | === Call Bell === | ||
{{User:Vergir/AbilitySection | |||
| hero_name = The Doorman | | hero_name = The Doorman | ||
| ability_num = 1 | | ability_num = 1 | ||
| notes = | | notes = | ||
* Bells can be detonated by [[Melee Attack|melee attacks]]. | * Bells can be detonated by [[Melee Attack|melee attacks]]. | ||
| interactions = | | interactions = | ||
* The cast range (throwing distance) is not affected by Ability Range | |||
| | | tips = | ||
* T3 talent allows stacking several bells for making high damage traps. | |||
}} | }} | ||
</pre> | </pre> | ||
=== Related pages === | === Related pages === | ||
* [[Module:AbilitySection]] — Lua backend | * [[Module:AbilitySection]] — Lua backend | ||
* [[Template:AbilitySection/styles.css]] — CSS | * [[Template:AbilitySection/styles.css]] — CSS | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||