Module:Sandbox/Ahecht/modsandbox

local p = {}

function p.main(frame) local outStr local args = frame:getParent.args outStr = 'Pairs:\n' for k, v in pairs(args) do		if not v then v = "[nil]" elseif v == "" then v = "[blank]" end outStr = outStr..'\n'..k..' = \t'..v..'\n' end outStr = outStr..'\niPairs:\n' for k, v in ipairs(args) do		if not v then v = "[nil]" elseif v == "" then v = "[blank]" end outStr = outStr..'\n'..k..' = \t'..v..'\n' end return outStr end

return p