יחידה:תבנית מידע/אישיות: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 55: | שורה 55: | ||
end | end | ||
if templateArgs['תאריך לידה']~=nil and templateArgs['תאריך לידה']~='' then | if templateArgs['תאריך לידה']~=nil and templateArgs['תאריך לידה']~='' and templateArgs['תאריך לידה']~='-' then | ||
local birthDetails = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך פטירה'], templateArgs['מקום לידה'], 'P569', 'P19', true, usingBirthWikidata) | local birthDetails = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך פטירה'], templateArgs['מקום לידה'], 'P569', 'P19', true, usingBirthWikidata) | ||
table.insert(infoObj.templateStructure, 1, { | table.insert(infoObj.templateStructure, 1, { | ||
| שורה 63: | שורה 63: | ||
end | end | ||
if templateArgs['תאריך פטירה']~=nil and templateArgs['תאריך פטירה']~='' then | if templateArgs['תאריך פטירה']~=nil and templateArgs['תאריך פטירה']~='' and templateArgs['תאריך פטירה']~='-' then | ||
local deathDetails = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך פטירה'], templateArgs['מקום פטירה'], 'P570', 'P20', false, usingDeathWikidata) | local deathDetails = getEventDetails(templateArgs['תאריך לידה'], templateArgs['תאריך פטירה'], templateArgs['מקום פטירה'], 'P570', 'P20', false, usingDeathWikidata) | ||
table.insert(infoObj.templateStructure, 2, { | table.insert(infoObj.templateStructure, 2, { | ||