Module:Sandbox/Ahecht/sandbox: Difference between revisions

Content deleted Content added
test
simplify
 
(20 intermediate revisions by the same user not shown)
Line 2:
 
local function _main(args)
args[1] = 'CHANGED'
return true
end
 
function p.main(frame)
local mwSite = ''
args = frame.args
for k, v in pairs(argsmw.site) do
_args = _main(args)
mwSite = mwSite .. '\n*mw.site.' .. k .. ': '
output = '{'
if type(v) == 'string' or type(v) == 'number' then
comma = ''
mwSite = mwSite .. v
for k, v in pairs(args) do
elseif type(v) == 'table' then
output = output .. comma .. k .. '=' .. v
for kk,vv in pairs(v) do if type(vv) == 'string' or type(vv) == 'number' then mwSite = mwSite .. '\n**mw.site.' .. k .. '.' .. kk .. ': ' .. vv end end
comma = ', '
end
end
return output .. '}'mwSite
end