Template:AbilitySection/doc

Revision as of 10:06, 1 May 2026 by Vergir (talk | contribs) (Add AbilitySection doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

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: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 === Ability Name === heading directly on the hero page.

Parameters

Parameter Description Required
hero_name Hero name, passed to Template:Ability card v2. Yes
ability_num Ability index (1–4), passed to Template:Ability card v2. Yes
notes Freeform wikitext for the Notes tab. Supports links, templates, bullet points. No
interactions One or more User:Vergir/AbilityInteraction calls for the Interactions tab. No
tips Freeform wikitext for the Tips tab. No

Tab visibility rules:

  • Only tabs with content are shown.
  • A Show All tab is appended if two or more tabs with content
  • If no parameters are provided, no notes panel is rendered at all.

Example

=== Call Bell ===

{{User:Vergir/AbilitySection
| hero_name   = The Doorman
| ability_num = 1
| notes       =
* Bells can be detonated by [[Melee Attack|melee attacks]].
| interactions =
* The cast range (throwing distance) is not affected by Ability Range
| tips =
* T3 talent allows stacking several bells for making high damage traps.
}}