Модуль:Wikidata/date: відмінності між версіями

[неперевірена версія][неперевірена версія]
Вилучено вміст Додано вміст
Glovacki (обговорення | внесок)
Немає опису редагування
Glovacki (обговорення | внесок)
Немає опису редагування
Рядок 229:
end
 
options['conjunction'] = ' илиабо ';
options['value-module'] = 'Wikidata/date';
options['value-function'] = 'formatBirthDate';
options.i18n.somevalue = '\'\'неизвестноневідомо\'\'' .. categoryUnknownBirthDate;
options.i18n.circa = '<span style="border-bottom: 1px dotted; cursor: help;" title="околоблизько">окбл. </span>';
local result = context.formatStatementDefault( context, options, statement );
 
Рядок 242:
local age = ageCurrent( bTable )
if ( age ) then
result = result .. ' <span style="white-space:nowrap;">(' .. age .. ' ' .. mw.language.new( 'ruuk' ):plural( age, 'годрік', 'годароку', 'летроків') .. ')</span>'
if ( not options.nocat ) then
if ( age > 115 ) then
Рядок 268:
local results = {};
if ( qNotSoonerThan ) then
table.insert( results, 'не&nbsp;ранеераніше&nbsp;' .. formatDateImpl( qNotSoonerThan.value, {}, nil, nil ) );
end
if ( qNotLaterThan ) then
table.insert( results, 'не&nbsp;позднеепізніше&nbsp;' .. formatDateImpl( qNotLaterThan.value, {}, nil, nil ) );
end
return mw.text.listToText( results, ' и ' , ' и ' ) .. categoryUnknownDeathDate;
Рядок 280:
options['value-module'] = 'Wikidata/date';
options['value-function'] = 'formatDeathDate';
options.i18n.somevalue = '\'\'неизвестноневідомо\'\'' .. categoryUnknownDeathDate;
options.i18n.circa = '<span style="border-bottom: 1px dotted; cursor: help;" title="околоблизько">окбл. </span>';
local result = context.formatStatementDefault( context, options, statement );
 
Рядок 290:
local age = age( bTable, dTable )
if ( age ) then
result = result .. ' <span style="white-space:nowrap;">(' .. age .. ' ' .. mw.language.new( 'ruuk' ):plural( age, 'годрік', 'годароку', 'летроків') .. ')</span>'
end
end
Рядок 390:
local year = math.floor( math.abs(time.year) / 10 ) * 10;
if ( categoryNamePrefix ) then
return year .. '-е до н. е.[[Category:' .. categoryNamePrefix .. ' в ' .. year .. '-еі годыроки до н. эе.]]';
else
return '' .. year .. ' до н. е.';
Рядок 397:
local year = math.floor( time.year / 10 ) * 10;
if ( categoryNamePrefix ) then
return year .. '-е[[Category:' .. categoryNamePrefix .. ' ву ' .. year .. '-еі годыроки]]';
else
return '' .. year;
Рядок 434:
local millenium = math.floor( (math.abs( time.year) - 1) / 1000 ) + 1;
if ( categoryNamePrefix ) then
return '[[' .. millenium .. ' тысячелетиетисячолітті до н. эе.]][[Category:' .. categoryNamePrefix .. ' ву ' .. millenium .. ' тысячелетиитисячолітті до н. эе.]]'
else
return '[[' .. millenium .. ' тысячелетиетисячолітті до н. эе.]]'
end
else