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

Материал из МК14 | Space Station 14 Wiki
(Содержимое страницы заменено на «return { test = function() local ok, result = pcall(function() local t = mw.title.new("Test"); return tostring(t) end) if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end end, }»)
Метка: замена
Нет описания правки
Строка 1: Строка 1:
return { test = function()
return { test = function()
local ok, result = pcall(function()
local ok, result = pcall(function()
local t = mw.title.new("Test"); return tostring(t)
local s = mw.site; if s and s.stats then return tostring(s.stats) else return "no stats" end
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, }

Версия от 23:54, 21 июня 2026

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

return { test = function()
local ok, result = pcall(function()
local s = mw.site; if s and s.stats then return tostring(s.stats) else return "no stats" end
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }