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

מאין תקציר עריכה
תווית "סיבת המוות" משמשת גם כשאין תאריך מוות אך יש פרמטר סיבת מוות.
שורה 174: שורה 174:
end
end
deathLabel = getDeathLabel(templateArgs['סיבת המוות'], infoObj.args.entityId)
if deathDate~=nil then
if deathDate~=nil then
deathLabel = getDeathLabel(templateArgs['סיבת המוות'], infoObj.args.entityId)
local age =  ageModule.ageCalc(birthDate, deathDate, false, false, true) or ''
local age =  ageModule.ageCalc(birthDate, deathDate, false, false, true) or ''
local deathDetails, usingDeathWikidataEvent = getEventDetails(templateArgs['תאריך פטירה'], templateArgs['תאריך פטירה עברי'], templateArgs['מקום פטירה'], 'P570', 'P20', age, usingDeathWikidata, infoObj)
local deathDetails, usingDeathWikidataEvent = getEventDetails(templateArgs['תאריך פטירה'], templateArgs['תאריך פטירה עברי'], templateArgs['מקום פטירה'], 'P570', 'P20', age, usingDeathWikidata, infoObj)