Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Discord server
Recent changes
Random page
Community
Discord
Steam
Search
Search
English
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:AbilityData/hero
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Languages
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
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 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
Template used on this page:
Module:AbilityData/hero/doc
(
edit
)