יחידה:גיל לערכי אישים: הבדלים בין גרסאות בדף
מ שינה את הגדרות ההגנה של הדף "יחידה:גיל לערכי אישים": יחידה מורכבת, המשפיעה על עשרות אלפי תבניות אישיות ([עריכה=רק עורכי תבניות או ממשק מורשים] (בלתי מוגבלת בזמן) [העברה=רק עורכי תבניות או ממשק מורשים] (בלתי מוגבלת בזמן)) |
מ 5 גרסאות של הדף wikipedia:he:יחידה:גיל_לערכי_אישים יובאו |
||
| (2 גרסאות ביניים של 2 משתמשים אינן מוצגות) | |||
| שורה 207: | שורה 207: | ||
-- 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 | ||
| שורה 214: | שורה 214: | ||
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]]') | ||