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

מקום לידה > געבורט ארט,
(אידיש)
(מקום לידה > געבורט ארט,)
שורה 199: שורה 199:
age = ageModule.ageCalc(birthDate, nil, true, false, true, nil, wikidataGender) or ''
age = ageModule.ageCalc(birthDate, nil, true, false, true, nil, wikidataGender) or ''
end
end
local birthDetails, usingBirthWikidataEvent = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך לידה עברי'], templateArgs['מקום לידה'], 'P569', 'P19', age, usingBirthWikidata, infoObj)
local birthDetails, usingBirthWikidataEvent = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך לידה עברי'], templateArgs['געבורט ארט'], 'P569', 'P19', age, usingBirthWikidata, infoObj)
table.insert(infoObj.templateStructure, 1, {
table.insert(infoObj.templateStructure, 1, {
label=birthLabel,
label=birthLabel,
שורה 205: שורה 205:
})
})
usingBirthWikidata = usingBirthWikidata or usingBirthWikidataEvent
usingBirthWikidata = usingBirthWikidata or usingBirthWikidataEvent
elseif templateArgs['מקום לידה']~= '-' then
elseif templateArgs['געבורט ארט']~= '-' then
fillWikidataParam(templateArgs, 'מקום לידה', 'P19', infoObj)
fillWikidataParam(templateArgs, 'געבורט ארט', 'P19', 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, 1, {
table.insert(infoObj.templateStructure, 1, {
label=birthLabel,
label=birthLabel,
data= templateArgs['מקום לידה']
data= templateArgs['געבורט ארט']
})
})
end
end
שורה 237: שורה 237:
table.insert(infoObj.templateStructure, 1, {
table.insert(infoObj.templateStructure, 1, {
label=birthLabel,
label=birthLabel,
data='{{{תאריך לידה}}}<br/>{{{מקום לידה}}}'
data='{{{תאריך לידה}}}<br/>{{{געבורט ארט}}}'
})
})
table.insert(infoObj.templateStructure, 2, {
table.insert(infoObj.templateStructure, 2, {