Module:RecursiveSelectiveList: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
function p.main(frame) | function p.main(frame) | ||
-- | -- Get all arguments passed to the module | ||
local args = frame:getParent().args | 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 | end | ||
-- | return debugInfo -- Return the debug information | ||
end | end | ||
return p | return p |
Revision as of 07:12, 22 December 2024
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