Модуль:Dates: различия между версиями
[досмотренная версия] | [досмотренная версия] |
Содержимое удалено Содержимое добавлено
Нет описания правки |
Нет описания правки |
||
Строка 8:
local genitivusMonthes = {'января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'}
local monthd = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
Строка 65 ⟶ 63 :
om and (
oy and {-- ДД ММММ ГГГГ ([[w:ДД ММММ]] [[w:ГГГГ]])
oj,' ',
'</span> <span style="white-space:nowrap;">([[w:',
j, ' ',
} or {-- ДД ММММ ([[w:ДД ММММ]]) [[w:ГГГГ]]
oj,' ',
}
) or {-- [[w:ДД ММММ|ДД (ДД) ММММ]] [[w:ГГГГ]]
'[[w:',j,' ',
}
) or {'[[w:',j,' ',
),--/table.concat
({['Рождения']='bday',['Смерти']='dday'})[mo] or '',
Строка 83 ⟶ 81 :
oj and (
om and {-- ДД ММММ ([[w:ДД ММММ]])
oj,' ',
} or {-- [[w:ДД ММММ|ДД (ДД) ММММ]]
'[[w:',j,' ',
}
) or {'[[w:',j,' ',
)
end
Строка 119 ⟶ 117 :
if not m then return nil end
m=mw.ustring.lower(m)
for i=1,12 do if m==
if not M then return nil end
return tonumber(y),M,tonumber(d)
Строка 137 ⟶ 135 :
function p.monthg(f)
return
end;--realmonth
Строка 157 ⟶ 155 :
( (frame.args['nopersoncat'] or '')~='' or (f.args['nocat'] or '')~='' ) and '' or table.concat{
'[[К:Персоналии по алфавиту]]',
j and string.format('[[К:%s %i %s]]',catpref[mo],j,
y and string.format('[[К:%s в %s]]',catpref[mo],y,Year0(y,'году')) or ''
},--/table.concat внутр.
|