בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,367
רעדאגירונגען
צייכן: צוריקדריי |
(מ'מעג זיי לייגן אויף איין שורה?) |
||
| שורה 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]]') | ||
רעדאגירונגען