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

מ תיקון באג - nil ומחרוזת ריקה - שניהם פרמטר חסר
מ מניעת שאיבת תאריכי לידה מוויקינתונים עבור דמות מקראית אנושית, לפי בקשה באולם הדיונים של התבניות
שורה 195: שורה 195:
end
end
end
end
-- fill birth/death dates from wikidata if missing
-- fill birth/death dates from wikidata if missing and the person is not a human biblical figure
usingBirthWikidata = fillWikidataParam(templateArgs, 'תאריך לידה', 'P569', infoObj)
if PropertyLink.getItem( 'P31', infoObj.args.entityId )~="Q20643955" then
usingDeathWikidata = fillWikidataParam(templateArgs, 'תאריך פטירה', 'P570', infoObj)
usingBirthWikidata = fillWikidataParam(templateArgs, 'תאריך לידה', 'P569', infoObj)
usingDeathWikidata = fillWikidataParam(templateArgs, 'תאריך פטירה', 'P570', infoObj)
end
local birthDate = getSpeculativeDate(templateArgs['תאריך לידה'], templateArgs['תאריך לידה עברי'])
local birthDate = getSpeculativeDate(templateArgs['תאריך לידה'], templateArgs['תאריך לידה עברי'])