Модуль:TableOfChemicals: различия между версиями

Материал из МК14 | Space Station 14 Wiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
return { test = function()
return { test = function()
local ok, result = pcall(function()
local ok, result = pcall(function()
local ok, r = pcall(function() local c = 0; for u in mw.site.allUsers() do c = c + 1 end; return c end); return tostring(r)
return tostring(mw.site.namespaces)
end)
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }
end, }

Версия от 12:23, 22 июня 2026

Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc

return { test = function()
local ok, result = pcall(function()
return tostring(mw.site.namespaces)
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }