Module:NUMBEROF: Difference between revisions

Content deleted Content added
fix depth: need map
per convention, use function "main" since only one entry point; error return changed to the number -1 rather than string "-1" so in principle a module could get the data more easily
Line 50:
end
 
function p.numberofmain(frame)
local args = frame:getParent().args
local action = trimArg(args[1], 1) -- activeusers, admins, articles, edits, files, pages, users
Line 82:
return result -- number or formatted string
end
return '-1'
end