Нет описания правки |
Нет описания правки |
||
| Строка 1: | Строка 1: | ||
return { test = function() | return { test = function() | ||
local ok, result = pcall(function() | local ok, result = pcall(function() | ||
local ok, | local modules = {"ParserFunctions", "seo", "Tabber", "DPL", "DiscordIntegration", "Scribunto", "CodeEditor", "Cite", "Popups", "VisualEditor", "Flow", "AbuseFilter", "CheckUser", "ConfirmEdit", "TitleBlacklist", "UrlShortener", "Math", "Score", "Graph", "Maps", "Cargo", "SemanticMediaWiki", "WikiEditor", "TemplateData", "JsonConfig", "MultimediaViewer", "Echo", "GuidedTour", "PageTriage", "MobileFrontend"}; local r = {}; for _, name in ipairs(modules) do local ok, m = pcall(require, "mw.ext." .. name); r[#r+1] = name .. "=" .. tostring(ok) .. "(" .. tostring(type(m)) .. ")" end; return table.concat(r, ",") | ||
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:34, 22 июня 2026
Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc
return { test = function()
local ok, result = pcall(function()
local modules = {"ParserFunctions", "seo", "Tabber", "DPL", "DiscordIntegration", "Scribunto", "CodeEditor", "Cite", "Popups", "VisualEditor", "Flow", "AbuseFilter", "CheckUser", "ConfirmEdit", "TitleBlacklist", "UrlShortener", "Math", "Score", "Graph", "Maps", "Cargo", "SemanticMediaWiki", "WikiEditor", "TemplateData", "JsonConfig", "MultimediaViewer", "Echo", "GuidedTour", "PageTriage", "MobileFrontend"}; local r = {}; for _, name in ipairs(modules) do local ok, m = pcall(require, "mw.ext." .. name); r[#r+1] = name .. "=" .. tostring(ok) .. "(" .. tostring(type(m)) .. ")" end; return table.concat(r, ",")
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }