יחידה:גיל לערכי אישים: הבדלים בין גרסאות בדף

יצירת דף עם התוכן "local dateParser = require( "Module:תאריך" ) local Arguments = require( "Module:Arguments" ) local Errors = { ['future-date'] = '[[קטגוריה:תארי..."
מ לא להציג 0 חודשים
שורה 139: שורה 139:
end
end
end
end
-- skip age calculation if we dont have enough precision
-- skip age calculation if we dont have enough precision
if DeathDate and DeathDate.precision and DeathDate.precision < dateParser.PRECISION.YEAR then return nil end
if DeathDate and DeathDate.precision and DeathDate.precision < dateParser.PRECISION.YEAR then return nil end
שורה 170: שורה 169:
result = prefix..'שנתיים'
result = prefix..'שנתיים'
end
end
if Age.month == 1 then
if Age.month == 0 then
result = result -- less than a month
elseif Age.month == 1 then
result = result..' וחודש'
result = result..' וחודש'
elseif Age.month == 2 then
elseif Age.month == 2 then