Module:Sandbox/Ahecht/sandbox: Difference between revisions

Content deleted Content added
test
simplify
 
(24 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:getParent().args
for k,v in pairs(mw.site) do
_args = _main(args)
mwSite = mwSite .. '\n*mw.site.' .. k .. ': '
output = args[1]
if type(v) == 'string' or type(v) == 'number' then
return output
mwSite = mwSite .. v
elseif type(v) == 'table' then
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
end
end
return outputmwSite
end