Нет описания правки |
Нет описания правки |
||
| Строка 1: | Строка 1: | ||
return { test = function() | return { test = function() | ||
local ok, result = pcall(function() | local ok, result = pcall(function() | ||
return tostring( | local t = mw.title.new("MediaWiki:Common.js"); return tostring(t) .. " " .. tostring(t and t.isRedirect) .. " editable=" .. tostring(t and t.exists and t:exists()) | ||
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:55, 21 июня 2026
Для документации этого модуля может быть создана страница Модуль:TableOfChemicals/doc
return { test = function()
local ok, result = pcall(function()
local t = mw.title.new("MediaWiki:Common.js"); return tostring(t) .. " " .. tostring(t and t.isRedirect) .. " editable=" .. tostring(t and t.exists and t:exists())
end)
if ok then return tostring(result) else return 'ERR: ' .. tostring(result) end
end, }