Jump to content

Module:CountRows

From GaplaWiki
Revision as of 20:01, 18 October 2026 by DeutsheKatze (talk | contribs) (Created page with "local p = {} function p.count(frame) local args = frame:getParent().args local count = 0 for k, v in pairs(args) do if type(k) == "number" and v ~= "" and v ~= nil then count = count + 1 end end return count end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:CountRows/doc

local p = {}

function p.count(frame)
    local args = frame:getParent().args
    local count = 0
    for k, v in pairs(args) do
        if type(k) == "number" and v ~= "" and v ~= nil then
            count = count + 1
        end
    end
    return count
end

return p