Модуль:Dates:версиослэн висъяськемзы

Пушкесэз ӵушемын Пушкесэз ватсамын
год → ар
без «white-space:nowrap», который растягивал карточки
41-тӥ чур:
'[[', tostring(y), ' ар|', t and tostring(y)..' '..t or tostring(y), ']]'
} else return table.concat{
'[[асьме эралэсь азьвыл ', tostring(-y), '-тӥ‑тӥ ар|асьме эралэсь азьвыл ',
t and tostring(-y)..' '..t or tostring(-y),
']]'
53-тӥ чур:
if y then return
string.format(
'<span style="white-space:nowrap;">%s<span style="display:none">(<span class="%s">%04i-%02i-%02i</span>)</span></span>',
table.concat(
oj and (
om and (
oy and {-- ДД ММММ ГГГГ ([[ДД ММММ]] [[ГГГГ]])
oj,'-тӥ‑тӥ&nbsp;',monthg[om],'&nbsp;',oy,
'</span> <span style="white-space:nowrap;">([[',
j, '-тӥ‑тӥ ', monthg[m],']] ',Year0(y),')'
} or {-- ДД ММММ ([[ДД ММММ]]) [[ГГГГ]]
oj,'-тӥ‑тӥ&nbsp;',monthg[om],' ([[',j,'-тӥ‑тӥ&nbsp;',monthg[m],']]) ',Year0(y)
}
) or {-- [[ДД ММММ|ДД (ДД) ММММ]] [[ГГГГ]]
'[[',j,'-тӥ‑тӥ ',monthg[m],'|',oj,'&nbsp;(',j,'-тӥ‑тӥ)&nbsp;',monthg[m],']] ',Year0(y)
}
) or {'[[',j,'-тӥ‑тӥ&nbsp;',monthg[m],']]&nbsp;',Year0(y)}
),--/table.concat
({['Рождения']='bday',['Смерти']='dday'})[mo] or '',
73-тӥ чур:
)--/string.format
else return
'<span style="white-space:nowrap;">' .. table.concat(
oj and (
om and {-- ДД ММММ ([[ДД ММММ]])
oj,'-тӥ‑тӥ&nbsp;',monthg[om],' ([[',j,'-тӥ‑тӥ&nbsp;',monthg[m],']])</span>'
} or {-- [[ДД ММММ|ДД (ДД) ММММ]]
'[[',j,'-тӥ‑тӥ ',monthg[m],'|',oj,'-тӥ‑тӥ&nbsp;(',j,'-тӥ‑тӥ)&nbsp;',monthg[m],']]</span>'
}
) or {'[[',j,'-тӥ‑тӥ&nbsp;',monthg[m],']]</span>'}
)
end
else
return y and string.format(
'<span style="white-space:nowrap;">%s<span style="display:none;">(<span class="bday">%04i</span>)</span></span>',
Year0(y,'ар'),y) or "''формат неверен''"
end
155-тӥ чур:
'[[Категория:Адямиос]]', --Категория:Персоналии по алфавиту
j and string.format('[[Category:%s %i %s]]',catpref[mo],j,monthg[m]) or '',
y and string.format('[[Category:%s в %s]]',catpref[mo],y,Year0(y,'-тӥ‑тӥ арын')) or ''
},--/table.concat внутр.
(function(F)--возраст
392-тӥ чур:
(od ~= nil and "4" or "") .. (om ~= nil and "5" or "") .. (oy ~= nil and "6" or "")
local datePart = '<span style="white-space:nowrap;">'
if (template == "12") then
datePart = datePart .. string.format( "[[%d-тӥd‑тӥ %s]]",
nd, genitivusMonthes[nm] )
elseif (template == "23") then
402-тӥ чур:
datePart = datePart .. nominativeYear( ny )
elseif (template == "123") then
datePart = datePart .. string.format( "[[%d-тӥd‑тӥ %s]] %s",
nd, genitivusMonthes[nm], nominativeYear( ny ) )
elseif (template == "124") then
datePart = datePart .. string.format( "[[%d-тӥd‑тӥ %s|%d-тӥd‑тӥ (%d-тӥd‑тӥ) %s]]",
nd, genitivusMonthes[nm], od, nd, genitivusMonthes[nm] )
elseif (template == "1234") then
datePart = datePart .. string.format( "[[%d-тӥd‑тӥ %s|%d-тӥd‑тӥ (%d-тӥd‑тӥ) %s]] %s",
nd, genitivusMonthes[nm], od, nd, genitivusMonthes[nm], nominativeYear( ny ) )
elseif (template == "1245") then
datePart = datePart .. string.format( "%d-тӥd‑тӥ %s ([[%d-тӥd‑тӥ %s]])",
od, genitivusMonthes[om], nd, genitivusMonthes[nm] )
elseif (template == "12345") then
datePart = datePart .. string.format( "%d-тӥd‑тӥ %s ([[%d-тӥd‑тӥ %s]]) %s",
od, genitivusMonthes[om], nd, genitivusMonthes[nm], nominativeYear( ny ) )
elseif (template == "123456") then
datePart = datePart .. string.format( '%d-тӥd‑тӥ %s %d</span> <span style="white-space:nowrap;">([[%d-тӥd‑тӥ %s]] %s)',
od, genitivusMonthes[om], oy, nd, genitivusMonthes[nm], nominativeYear( ny ) )
else