Module:Sandbox/Ahecht/sandbox: Difference between revisions

Content deleted Content added
test
simplify
 
(28 intermediate revisions by the same user not shown)
Line 1:
local p = {}
 
local function _main(args)
return outputtrue
end
 
function p.main(frame)
local mwSite = ''
output, num = mw.ustring.gsub(mw.getCurrentFrame():getTitle(), mw.site.namespaces[828].name, mw.site.namespaces[10].name, 1)
for k,v in pairs(mw.site) do
return output
mwSite = mwSite .. '\n*mw.site.' .. k .. ': '
if type(v) == 'string' or type(v) == 'number' then
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 mwSite
end