Module:NUMBEROF: Difference between revisions

Content deleted Content added
No edit summary
Reverted to revision 977807661 by GreenC (talk): Should be good once working
Line 68:
local nrClosed = data.nrClosed[site]
local nrStatus = data.nrStatus[site]
if actionnrActive ==or 'status'nrClosed then
result = nrStatus
elseif nrActive or nrClosed then
-- If either is set, site is valid but there may not be an entry for both active and closed.
nrActive = nrActive or 0
Line 80 ⟶ 78:
elseif action == 'languages' then
result = nrActive + nrClosed
elseif nrActiveaction or== nrClosed'status' then
result = nrStatus
end
end