Module:RecursiveSelectiveList

From Ikwipedia
Revision as of 07:12, 22 December 2024 by EnWikiAdmin (talk | contribs)

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

local p = {}
local mw = require('mw')

function p.main(frame)
    -- Get all arguments passed to the module
    local args = frame:getParent().args

    -- Debug: Display all arguments
    local debugInfo = "Arguments passed:\n"
    for key, value in pairs(args) do
        debugInfo = debugInfo .. key .. " = " .. (value or "nil") .. "\n"
    end

    return debugInfo -- Return the debug information
end

return p