Template:AbilityTable/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Vergir (talk | contribs)
Create /doc subpage with usage, parameters, see also, and live example (with help from vergir-bot LLM)
 
Vergir (talk | contribs)
Remove missing Documentation subpage template, trim See also to AbilityTable module and styles only (with help from vergir-bot LLM)
Line 1: Line 1:
{{Documentation subpage}}
Renders a sortable table of all abilities that have the named stat.
Renders a sortable table of all abilities that have the named stat.


Line 27: Line 26:
== See also ==
== See also ==


* [[Template:ItemPropTable]] — equivalent template for items
* [[Module:AbilityTable]] — backing Lua module
* [[Module:AbilityTable]] — backing Lua module
* [[Template:AbilityTable/styles.css]] — stylesheet for this template
* [[Template:AbilityTable/styles.css]] — stylesheet for this template
* [[Module:GameData]] — shared data-loading framework


<includeonly>[[Category:Ability templates]]</includeonly>
<includeonly>[[Category:Ability templates]]</includeonly>

Revision as of 13:04, 11 May 2026

Renders a sortable table of all abilities that have the named stat.

Usage

{{AbilityTable|charges}}

With a hidden column:

{{AbilityTable|charges|hide=Time Between Charges}}

Multiple columns can be hidden using a comma-separated list:

{{AbilityTable|charges|hide=Time Between Charges, Notes}}

Parameters

1
The stat name. Must match a key in the stat_to_props table.
hide
Optional. A comma-separated list of column names to exclude. Hero and Ability columns cannot be hidden.

Example

The following renders a table of all abilities with a melee stat:

{{AbilityTable|melee}}
This is a dynamic list "melee". Edit contents · Edit notes.
Hero Ability Base Damage Light Melee Scaling Notes
Bebop Exploding Uppercut 0.01 ×1
Grapple Arm 0 ×0.7
Billy Bashdown 0 ×0.9 on T3 becomes ×0.5 Heavy Melee scaling.
Calico Leaping Slash 10 ×0.8 on T3 gets +60 base damage (total 70).
Drifter Rend 0 ×1.2 on T3 becomes ×0.55 Heavy Melee scaling.
Silver Boot Kick 0 ×0.9
Silver (Transformed) Go For The Throat 0 ×1.5 on T1 gets +30 base damage (total 30).
Mauling Leap 0 ×1.5
Viscous Puddle Punch 20 ×0.6 on T1 gets +20 base damage (total 40). on T3 becomes 40 base damage with ×0.6 Heavy Melee scaling. Can be parried.
Yamato Flying Slash 0 ×1

See also