Изменения

Перейти к навигации Перейти к поиску
если название шаблона не указано, не делаем строчной первую букву в названиях типа TranslateDate
Строка 152: Строка 152:  
local lang = mw.language.new('ru')
 
local lang = mw.language.new('ru')
 
local currentTitle = mw.title.getCurrentTitle().rootText
 
local currentTitle = mw.title.getCurrentTitle().rootText
if (lang:uc(currentTitle) ~= currentTitle and
+
if (lang:uc(currentTitle) ~= currentTitle and -- названия со всеми заглавными буквами
not mw.ustring.match(currentTitle, '[а-я]:[А-Я]')  -- Книга:Литературное наследие
+
not mw.ustring.match(currentTitle, '^[А-Яа-яA-Za-z]+:?[А-ЯA-Z]')  -- Книга:Литературное наследство, TranslateDate
 
) or
 
) or
 
#currentTitle == 1
 
#currentTitle == 1
Анонимный участник

Реклама:

Навигация