Module:AbilityTable/Lists/docGive feedback
This is the documentation page for Module:AbilityTable/Lists
This page documents Module:AbilityTable/Lists, which defines which abilities appear in each automatic ability table on the wiki.
The module has two sections: lists (which abilities to include) and exclude_abilities (which abilities to suppress despite matching).
How to add a missing ability to a list
If an ability should appear in a table but doesn't, it's because none of its data properties match the list's property keys. The fix is to add a raw ability name string directly to the list.
Find the relevant list in the module (e.g. ["dispelmagic"]) and add the ability name at the end, after the property keys, keeping the names in alphabetical order:
["dispelmagic"] = {
"BleedDuration", "BurnDuration", ...,
"Card Trick", "Essence Theft", "Life Drain", "My New Ability",
},
Make sure the ability name matches exactly as it appears on its wiki page.
How to exclude an ability from a list
If an ability appears in a table but shouldn't (a false positive), add it to exclude_abilities under the relevant stat, with a comment explaining why:
["dispelmagic"] = {
"Bookwyrm", -- has DebuffDuration for some reason
"My Ability", -- explain why it's a false positive here
},
How to add a new list
Adding a new list means a new ability table stat will become available via {{AbilityTable|statname}}.
Step 1: Add a new entry to the lists table in this module with the stat name and its matching property keys:
-- Brief description of what this list represents
["mystat"] = { "PropertyOne", "PropertyTwo" },
Step 2: Register the stat in Module:AbilityTable by adding it to extra_columns (or leave it out if no special columns are needed beyond Notes).
Step 3: Optionally add human notes for specific abilities in Module:AbilityTable/Notes.
Note: property key names come from Data:AbilityData.json. If an ability's effect has no matching property, use a raw ability name string instead (see above).