Модуль:Wikidata/date: відмінності між версіями
[неперевірена версія] | [неперевірена версія] |
Вилучено вміст Додано вміст
Немає опису редагування |
Немає опису редагування |
||
Рядок 229:
end
options['conjunction'] = ' 
options['value-module'] = 'Wikidata/date';
options['value-function'] = 'formatBirthDate';
options.i18n.somevalue = '\'\'
options.i18n.circa = '<span style="border-bottom: 1px dotted; cursor: help;" title="
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( '
if ( not options.nocat ) then
if ( age > 115 ) then
Рядок 268:
local results = {};
if ( qNotSoonerThan ) then
table.insert( results, 'не
end
if ( qNotLaterThan ) then
table.insert( results, 'не
end
return mw.text.listToText( results, ' и ' , ' и ' ) .. categoryUnknownDeathDate;
Рядок 280:
options['value-module'] = 'Wikidata/date';
options['value-function'] = 'formatDeathDate';
options.i18n.somevalue = '\'\'
options.i18n.circa = '<span style="border-bottom: 1px dotted; cursor: help;" title="
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( '
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 .. '
else
return '' .. year;
Рядок 434:
local millenium = math.floor( (math.abs( time.year) - 1) / 1000 ) + 1;
if ( categoryNamePrefix ) then
return '[[' .. millenium .. '
else
return '[[' .. millenium .. '
end
else
|