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

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


if mw.title.getCurrentTitle()["nsText"] == "" then
warnings = table.concat( warnings, '')
warnings = table.concat( warnings, '')
else
warnings = ""
end
if Brackets then
if Brackets then
result = string.format(' (%s)', result)
result = string.format(' (%s)', result)