Модул:Sandbox
Изглед
Документацијата за овој модул можете да ја создадете на Модул:Sandbox/док
-- Module:bac à sable
-- Imported from fr.wiktionary
-- 2016-10-29 -- V1 -- last modified by DenisWasRight
-- Extended version for mk.wiktionary
local p = {}
function debugstring(value)
if type(value) == 'table' then
local s = ''
for k, v in pairs(value) do
s = s .. debugstring(k) .. '=' .. debugstring(v) .. ', '
end
return '[' .. s .. ']'
else
return tostring(value)
end
end
function p.getprotection(frame)
local page = mw.title.getCurrentTitle()
return debugstring(page.protectionLevels)
end
return p