Изменения
Модуль:Citation/CS1/Identifiers (посмотреть исходный код)
Версия от 12:11, 15 декабря 2023
, 1 год назадправильный падеж для категорий
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, 'F', inactive); -- try to get the month name from the inactive date
good, inactive_month = pcall (lang_obj.formatDate, lang_obj, 'xg', 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