יחידה:גיל לערכי אישים: הבדלים בין גרסאות בדף
אין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 130: | שורה 130: | ||
end | end | ||
if AgeYears > 139 then | local title = mw.title.getCurrentTitle() | ||
-- ignore warning in other namespace except the main NS | |||
if title.namespace==0 then | |||
if AgeYears > 139 then | |||
table.insert(warnings, Errors['future-date']) | |||
elseif AgeYears>109 then | |||
table.insert(warnings, '[[קטגוריה:אישים שהגיעו לגיל 110]]') | |||
elseif AgeYears>100 then | |||
table.insert(warnings, '[[קטגוריה:אישים שהגיעו לגיל מאה]]') | |||
end | |||
end | end | ||
else | else | ||
| שורה 145: | שורה 149: | ||
end | end | ||
warnings = table.concat( warnings, '') | |||
if Brackets then | if Brackets then | ||
result = string.format(' (%s)', result) | result = string.format(' (%s)', result) | ||