Module:Sandbox/Ahecht/sandbox: Difference between revisions

Content deleted Content added
test
simplify
 
(16 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 = {'a', 'b', 'c'}
mwSite = mwSite .. '\n*mw.site.' .. k .. ': '
_args = _main(args)
if type(v) == 'string' or type(v) == 'number' then
output = '{'
mwSite = mwSite .. v
comma = ''
elseif type(v) == 'table' then
for k, v in pairs(args) do
output for kk,vv in pairs(v) do if type(vv) == output'string' ..or commatype(vv) ..== k'number' then mwSite = mwSite .. '=\n**mw.site.' .. vk .. '(.' .. args[k]kk .. '): ' .. vv end end
end
comma = ', '
end
return output .. '}'mwSite
end