Модуль:Wikibase/sandbox
Внешний вид
Для документации этого модуля может быть создана страница Модуль:Wikibase/sandbox/doc
local function tabletostr(t,level)--не для использования на страницах
local ll = level or 1
if type(t)=="table" then
local f={};
for k,v in pairs(t) do
table.insert(f,('%s%s = %s'):format((':'):rep(ll),k,tabletostr(v,ll+1)))
end;
table.sort(f);
return( ('{\n%s\n%s}'):format( table.concat(f, "\n"), (':'):rep(ll-1) ) )
else return tostring(t)
end
end
return {
see = function(f)
return tabletostr(mw.wikibase.getEntity())
end
}