אונטערשייד צווישן ווערסיעס פון "יחידה:עלטער"

318 בייטן צוגעלייגט ,  פֿאַר 2 יאָר
מ'מעג זיי לייגן אויף איין שורה?
ק (רעדאגירונגען דורך צמא לדעת (שמועס) צוריקגעשטעלט צו דער לעצטער ווערסיע פון תנא קמא)
צייכן: צוריקדריי
(מ'מעג זיי לייגן אויף איין שורה?)
שורה 206: שורה 206:
-- ignore warning in specific template
-- ignore warning in specific template
local noAgeWarning = false
local noAgeWarning = false
if mw.getCurrentFrame():getParent():getTitle() == 'מוסטער:אישיות תנ"כית' then
if mw.getCurrentFrame():getParent():getTitle() == 'מוסטער:אישיות תנ"כית' or mw.getCurrentFrame():getParent():getTitle() == 'מוסטער:בעל חיים מפורסם' then
noAgeWarning = true
noAgeWarning = true
end
end
שורה 213: שורה 213:
if title.namespace==0 and not noAgeWarning then
if title.namespace==0 and not noAgeWarning then
if AgeYears > 139 then  
if AgeYears > 139 then  
table.insert(warnings, Errors['future-date'])
local instanceOf = entityId and mw.wikibase.getBestStatements( entityId, 'P31' )
local isHuman = instanceOf and instanceOf[1].mainsnak and instanceOf[1].mainsnak.datavalue.value.id=='Q5'
if isHuman then
table.insert(warnings, Errors['future-date'])
end
elseif AgeYears>109 then  
elseif AgeYears>109 then  
table.insert(warnings, '[[קאטעגאריע:מענטשן וואס זענען אנגעקומען צו די 110]]')
table.insert(warnings, '[[קאטעגאריע:מענטשן וואס זענען אנגעקומען צו די 110]]')