Открыть главное меню
Главная
Случайная
Войти
Настройки
Описание проекта «Информаторий»
Отказ от ответственности
in.wiki
Найти
Изменения
← Предыдущая правка
Следующая правка →
Модуль:Citation/CS1/Identifiers
(посмотреть исходный код)
Версия от 18:13, 24 декабря 2023
1 байт убрано
,
1 год назад
м
1 версия импортирована
Строка 563:
Строка 563:
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
if 4 < inactive:len() then -- inactive date has more than just a year (could be anything)
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
local lang_obj = mw.getContentLanguage(); -- get a language object for this wiki
−
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, '
xg
', inactive); -- try to get the month name from the inactive date
+
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, '
F
', inactive); -- try to get the month name from the inactive date
if not good then
if not good then
inactive_month = nil; -- something went wrong so make sure this is unset
inactive_month = nil; -- something went wrong so make sure this is unset
Александр Машин
Бюрократы
, steward,
Администраторы
1712
правок