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