Editing
Module
:
AbilityData/hero
Give feedback
Jump to navigation
Jump to search
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
local ability_module = require("Module:Abilities/card") local dictionary_module = require("Module:Dictionary") local lang_module = require("Module:Lang") local util_module = require("Module:Utilities") local ability_util_module = require("Module:Abilities/utils") local heroes_data = mw.loadJsonData("Data:HeroData.json") local p = {} --collapsible list function p.write_hero_abilities(frame) local hero_key = frame.args[1] --Determine the hero's abilities local hero_data = heroes_data[hero_key] if (hero_data==nil) then return "Hero key "..hero_key.." not found" end local abilities_data = hero_data["BoundAbilities"] if (abilities_data==nil) then return "Hero key"..hero_key.." has no BoundAbilities" end local ret = "" for ability_num, ability_data in pairs(abilities_data) do local ability_key = ability_data["Key"] local ability_name_localized = lang_module.get_string(ability_key) local tab_name = "<h3>" .. ability_name_localized .. "</h3>\n" local notes_source_page = ability_util_module.get_notes_source_page_name(ability_key) --Determine tab content local notes_content = '{{'..notes_source_page..'}}' local tab_content = ability_module.get_ability_card_from_key( hero_key, ability_num, 'true', frame:preprocess(notes_content), notes_source_page ) ret = ret .. tab_name .. tab_content .. '\n' end return frame:preprocess(ret) end return p
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Page included on this page:
Module:AbilityData/hero/doc
(
view source
)
Navigation menu
Personal tools
Create account
Log in
associated-pages
Module
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Wraith
2h ago
路
~2026-LaneFireUrn1085
Unstable Rift
11h ago
路
~2026-IvyGankStone1157
Haze/Sounds
12h ago
路
Gammaton32
Haze/Voice lines
12h ago
路
Gammaton32
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information