«Մոդուլ:Wikidata/date» խմբագրումներու միջեւ տարբերութիւն

Content deleted Content added
եւ
No edit summary
Տող 1.
--settings
local categoryUnknownBirthDate = '[[ԿատեգորիաՍտորոգութիւն:Ծննդեան ամսաթիւը չորոշված անձինք]]';
local categoryUnknownDeathDate = '[[ԿատեգորիաՍտորոգութիւն:Մահւան ամսաթիւը չորոշված անձինք]]';
local categoryBigCurrentAge = '[[ԿատեգորիաՍտորոգութիւն:Ուիքիփետիա:Անձինք, որոնց ներկա տարիքը մեծ է]]'
local categoryBiographiesOfLivingPersons = '[[ԿատեգորիաՍտորոգութիւն:Ապրող անձինք]]'
local categoryRecentlyDeceased = '[[ԿատեգորիաՍտորոգութիւն:Ուիքիտուեալներ:Վերջին մեկ տարվա մեջ մահացած անձինք]]'
local nowLabel = 'այժմ'
 
Տող 489.
local year = math.floor( time.year / 10 ) * 10;
if ( categoryNamePrefix ) then
return inYear( year )..'-ականներ[[ԿատեգորիաՍտորոգութիւն:'.. inYear( year ) ..'-ականների ' .. categoryNamePrefix .. ']]';
else
return '' .. year;
Տող 507.
local century = math.floor( (math.abs( time.year) - 1) / 100 ) + 1;
if ( categoryNamePrefix ) then
return '[[մ.թ.ա. ' .. inCentury( century ) ..' դար]][[ԿատեգորիաՍտորոգութիւն:Մ․թ․ա․ ' .. inCentury( century ) ..' դարի ' .. categoryNamePrefix .. ']]'
else
return '[[մ.թ.ա. ' .. inCentury( century ) ..' դար]]'
Տող 515.
if ( categoryNamePrefix ) then
return '[[' .. inCentury( century ) ..' դար]][[ԿատեգորիաՍտորոգութիւն:' .. inCentury( century ) ..' դարի ' .. categoryNamePrefix .. ']]'
else
return '[[' .. inCentury( century ) ..' դար]]'