Module:NUMBEROF: Difference between revisions

Content deleted Content added
Reverted to revision 977807661 by GreenC (talk): Should be good once working
restore to last by John
Line 49:
 
local function main(frame)
local metaWords = { active = true, closed = true, languages = true, status = true, }
local args = frame:getParent().args
local action = trimArg(args[1], 1) -- activeusers, admins, articles, edits, files, pages, users, depth, active, closed, languages
Line 67:
local nrActive = data.nrActive[site]
local nrClosed = data.nrClosed[site]
local nrStatus = data.nrStatus[site]
if nrActive or nrClosed then
-- If either is set, site is valid but there may not be an entry for both active and closed.
Line 78 ⟶ 77:
elseif action == 'languages' then
result = nrActive + nrClosed
elseif action == 'status' then
result = nrStatus
end
end