Модуль:Message box: различия между версиями
Buto (обсуждение | вклад) Новая страница: «-- This is a meta-module for producing message box templates, including -- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Load necessary modules. require('strict') local getArgs local categoryHandler = require('Module:Category handler')._main local yesno = require('Module:Yesno') local boxDate = require('Module:Calendar').bxDate; -- Get a language object for formatDate and ucfirst. local lang = mw.language.getContentLangu...» |
Buto (обсуждение | вклад) Нет описания правки |
||
| Строка 400: | Строка 400: | ||
local status, result = pcall(formatDate, args.date) | local status, result = pcall(formatDate, args.date) | ||
if not status then | if not status then | ||
self:addCat(0, ' | self:addCat(0, 'Тептар:Статьи с недопустимым параметром даты в шаблоне-сообщении') | ||
end | end | ||
elseif mainCat and (not date or date == '') then | elseif mainCat and (not date or date == '') then | ||
| Строка 457: | Строка 457: | ||
if self.invalidTypeError then | if self.invalidTypeError then | ||
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText | local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText | ||
self:addCat('all', ' | self:addCat('all', 'Тептар:Необходимо исправить параметр в шаблоне-сообщении', allSort) | ||
end | end | ||
if self.isSubstituted then | if self.isSubstituted then | ||
self:addCat('all', ' | self:addCat('all', 'Тептар:Страницы с ошибочно подставленными шаблонами') | ||
end | end | ||
if self.isSmall then | if self.isSmall then | ||
self:addCat(0, ' | self:addCat(0, 'Тептар:Страницы с малыми шаблонами-сообщениями') | ||
end | end | ||
end | end | ||