אונטערשייד צווישן ווערסיעס פון "יחידה:תבנית מידע/אישיות"

אידיש
אין תקציר עריכה
(אידיש)
שורה 218: שורה 218:
if deathDate~=nil then
if deathDate~=nil then
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)
table.insert(infoObj.templateStructure, 2, {
table.insert(infoObj.templateStructure, 2, {
label=deathLabel,
label=deathLabel,
שורה 224: שורה 224:
})
})
usingDeathWikidata = usingDeathWikidata or usingDeathWikidataEvent
usingDeathWikidata = usingDeathWikidata or usingDeathWikidataEvent
elseif templateArgs['מקום פטירה']~= '-' then
elseif templateArgs['פטירה ארט']~= '-' then
fillWikidataParam(templateArgs, 'מקום פטירה', 'P20', infoObj)
fillWikidataParam(templateArgs, 'פטירה ארט', 'P20', infoObj)
if templateArgs['מקום פטירה']~= nil and templateArgs['מקום פטירה']~= '' then -- only if we fill the parameter eventually - add to template
if templateArgs['פטירה ארט']~= nil and templateArgs['פטירה ארט']~= '' then -- only if we fill the parameter eventually - add to template
table.insert(infoObj.templateStructure, 2, {
table.insert(infoObj.templateStructure, 2, {
label=deathLabel,
label=deathLabel,
data= templateArgs['מקום פטירה']
data= templateArgs['פטירה ארט']
})
})
end
end
שורה 241: שורה 241:
table.insert(infoObj.templateStructure, 2, {
table.insert(infoObj.templateStructure, 2, {
label=deathLabel,
label=deathLabel,
data='{{{תאריך פטירה}}} <br/>{{{מקום פטירה}}}'
data='{{{תאריך פטירה}}} <br/>{{{פטירה ארט}}}'
})
})
end
end