Template:AbilitySection/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Vergir (talk | contribs)
m (ninjafix)
Vergir (talk | contribs)
Improve doc: add templatedata, type column, inline examples, live render (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.
Tab visibility rules:
* Only tabs with content are shown.
* 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.


=== Parameters ===
=== Parameters ===


{| class="wikitable"
<templatedata>
! Parameter !! Description !! Required
{
|-
"description": "Two-column ability layout with card on the left and optional tabbed notes panel on the right.",
| <code>hero_name</code> || Hero name, passed to [[Template:Ability card v2]]. || Yes
"params": {
|-
"hero_name": {
| <code>ability_num</code> || Ability index (1–4), passed to [[Template:Ability card v2]]. || Yes
"description": "Hero name, passed to Template:Ability card v2.",
|-
"example": "Abrams",
| <code>notes</code> || Freeform wikitext for the Notes tab. Supports links, templates, bullet points. || No
"type": "string",
|-
"required": true
| <code>interactions</code> ||Freeform wikitext for the Interactions tab. || No
},
|-
"ability_num": {
| <code>tips</code> || Freeform wikitext for the Tips tab. || No
"description": "Ability index (1–4), passed to Template:Ability card v2.",
|}
"example": "1",
 
"type": "number",
Tab visibility rules:
"required": true
* Only tabs with content are shown.
},
* A <code>Show All</code> tab is appended if two or more tabs with content
"notes": {
* If no parameters are provided, no notes panel is rendered at all.
"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": "* Bells can be detonated by [[Melee Attack|melee attacks]].\n* Can be shot to detonate early.",
"type": "string",
"required": false
},
"interactions": {
"description": "Wikitext for the Interactions tab. Typically one or more {{AbilityInteraction}} calls.",
"example": "{{AbilityInteraction|type=counterspell|text=Counterspell blocks the slow debuff but not the damage.}}",
"type": "string",
"required": false
},
"tips": {
"description": "Wikitext for the Tips tab. Supports bullet points, links, and templates.",
"example": "* T3 talent allows stacking several bells for high damage traps.",
"type": "string",
"required": false
}
},
"paramOrder": [
"hero_name",
"ability_num",
"notes",
"interactions",
"tips"
]
}
</templatedata>


=== Example ===
=== Example ===
Line 38: Line 69:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
| interactions =
* Can be shot to detonate early.
* The cast range (throwing distance) is not affected by Ability Range
| tips       =
| tips =
* T3 talent allows stacking several bells for high damage traps.
* T3 talent allows stacking several bells for making high damage traps.
}}
}}
</pre>
</pre>
=== Call Bell ===
{{AbilitySection
| hero_name  = The Doorman
| ability_num = 1
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Can be shot to detonate early.
| tips        =
* T3 talent allows stacking several bells for high damage traps.
}}


=== Related pages ===
=== Related pages ===

Revision as of 10:09, 1 May 2026

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: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.

Tab visibility rules:

  • Only tabs with content are shown.
  • A Show All 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.

Parameters

Two-column ability layout with card on the left and optional tabbed notes panel on the right.

Template parameters

ParameterDescriptionTypeStatus
hero_namehero_name

Hero name, passed to Template:Ability card v2.

Example
Abrams
Stringrequired
ability_numability_num

Ability index (1–4), passed to Template:Ability card v2.

Example
1
Numberrequired
notesnotes

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
* Bells can be detonated by [[Melee Attack|melee attacks]].
  • Can be shot to detonate early.
Stringoptional
interactionsinteractions

Wikitext for the Interactions tab. Typically one or more {{AbilityInteraction}} calls.

Example
{{AbilityInteraction|type=counterspell|text=Counterspell blocks the slow debuff but not the damage.}}
Stringoptional
tipstips

Wikitext for the Tips tab. Supports bullet points, links, and templates.

Example
* T3 talent allows stacking several bells for high damage traps.
Stringoptional

Example

=== Call Bell ===

{{AbilitySection
| hero_name   = The Doorman
| ability_num = 1
| notes       =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Can be shot to detonate early.
| tips        =
* T3 talent allows stacking several bells for high damage traps.
}}

Call Bell

Call Bell

Call Bell



Radius 5.5m




Duration 4s



Number of Charges 1
Charge Cooldown 7s



Cooldown 18s



Throw out a call bell that deals spirit damage on impact. After a short delay it explodes, dealing additional spirit damage and causing affected enemies to suffer reduced weapon accuracy and movement slow.

Can be shot to detonate early.
On Impact

x0.7


40

Impact Damage
Explosion

x1.2


55

Explosion Damage
Explosion

-40%

Weapon Accuracy
Explosion

-35%

Move Speed

3s  Bell Lifetime 

4s  Duration 

Ability Point1
+1 Charge
Ability Point2
+30 Impact Damage
+40 Explosion Damage
Ability Point5
+4.5m Radius
+26s Bell Lifetime
Improved Scaling
Debuff duration reduced by Debuff ResistEffect can be dispelledCC effect suppressed by Unstoppable
  • Bells can be detonated by melee attacks.
  • Can be shot to detonate early.

  • T3 talent allows stacking several bells for high damage traps.

Notes
  • Bells can be detonated by melee attacks.
  • Can be shot to detonate early.
Tips
  • T3 talent allows stacking several bells for high damage traps.