模組:沙盒/Emojiwiki/Return
外观
p = {}
local function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
function p.p(g)
return "<pre>"..mw.text.nowiki(dump(g)).."</pre>"
end
return p