Editing
Module
:
HeroData/headcount
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 p = {} local heroes_data = mw.loadJsonData("Data:HeroData.json") -- {{Heroes count}} access point function p.get_headcount(frame) local hero_type = frame.args[1] local iter = 0 for _, v in pairs(heroes_data) do if hero_type == 'Released' then if (v["InDevelopment"] == false and v["IsDisabled"] == false and v["Name"] ~= nil and v["Name"] ~= 'Silver (Transformed)') then iter = iter + 1 end elseif hero_type == 'HeroLabs' then if (v["InHeroLabs"] == true and v["Name"] ~= nil) then iter = iter + 1 end else return "get_headcount()'s hero_type parameter must be either 'Released' or 'HeroLabs'" end end return iter 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:HeroData/headcount/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
Vindicta/Voice lines
17m ago
路
Mr. Mindish
The Doorman/Sounds
38m ago
路
Gammaton32
Celeste/Sounds
38m ago
路
Gammaton32
Calico/Sounds
38m 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