Модуль:Поиск шаблона страницы
Версия от 14:11, 6 марта 2025; Pok (обсуждение | вклад)
Для документации этого модуля может быть создана страница Модуль:Поиск шаблона страницы/doc
local p = {}
function p.main(frame)
local args = frame.args
local pattern = args[1] or ""
local pageTitle = mw.title.getCurrentTitle()
local content = pageTitle:getContent()
if content and not content:match(pattern) then
return "Нет"
end
return "Да"
end
return p