Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc
return { test = function()
local ok, result = pcall(function()
local ok, r = pcall(function() local groups = {}; for i, g in ipairs(mw.site.userGroups or {}) do groups[#groups+1] = g end; return table.concat(groups, ",") end); return tostring(r)
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }