Editing Template:AbilitySection/docGive feedback
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 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. | |||
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. | ||
=== Parameters === | === Parameters === | ||
| Line 16: | Line 16: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Two-column ability layout with card on the left and optional tabbed notes panel on the right.", | |||
"params": { | "params": { | ||
"hero_name": { | "hero_name": { | ||
"description": "Hero name, passed to Template:Ability card v2.", | "description": "Hero name, passed to Template:Ability card v2.", | ||
"example": " | "example": "Abrams", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
| Line 30: | Line 31: | ||
}, | }, | ||
"notes": { | "notes": { | ||
"description": "Wikitext for the Notes tab.", | "description": "Wikitext for the Notes tab. Supports bullet points, links, and templates. If taller than the max-height in the stylesheet, the panel will scroll rather than expand.", | ||
"example": "* | "example": "* Bells can be detonated by [[Melee Attack|melee attacks]].\n* Can be shot to detonate early.", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
" | "interactions": { | ||
"description": "Wikitext for the | "description": "Wikitext for the Interactions tab. Typically one or more {{AbilityInteraction}} calls.", | ||
"example": " | "example": "{{AbilityInteraction|type=counterspell|text=Counterspell blocks the slow debuff but not the damage.}}", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
" | "tips": { | ||
"description": "Wikitext for the | "description": "Wikitext for the Tips tab. Supports bullet points, links, and templates.", | ||
"example": " | "example": "* T3 talent allows stacking several bells for high damage traps.", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
| Line 52: | Line 53: | ||
"ability_num", | "ability_num", | ||
"notes", | "notes", | ||
" | "interactions", | ||
" | "tips" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| Line 62: | Line 62: | ||
<pre> | <pre> | ||
=== Call Bell === | |||
{{AbilitySection | {{AbilitySection | ||
| hero_name = The Doorman | | hero_name = The Doorman | ||
| Line 67: | Line 69: | ||
| notes = | | notes = | ||
* Bells can be detonated by [[Melee Attack|melee attacks]]. | * Bells can be detonated by [[Melee Attack|melee attacks]]. | ||
* Can be shot to detonate early. | |||
| tips = | | tips = | ||
* T3 talent allows stacking several bells for high damage traps. | * T3 talent allows stacking several bells for high damage traps. | ||
}} | }} | ||
</pre> | </pre> | ||
=== Call Bell === | |||
{{AbilitySection | {{AbilitySection | ||
| Line 82: | Line 82: | ||
| notes = | | notes = | ||
* Bells can be detonated by [[Melee Attack|melee attacks]]. | * Bells can be detonated by [[Melee Attack|melee attacks]]. | ||
* Can be shot to detonate early. | |||
| tips = | | tips = | ||
* T3 talent allows stacking several bells for high damage traps. | * T3 talent allows stacking several bells for high damage traps. | ||
}} | }} | ||
| Line 94: | Line 90: | ||
* [[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> | ||