בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,358
רעדאגירונגען
אין תקציר עריכה |
(אידיש) |
||
| שורה 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[' | 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[' | elseif templateArgs['פטירה ארט']~= '-' then | ||
fillWikidataParam(templateArgs, ' | fillWikidataParam(templateArgs, 'פטירה ארט', 'P20', infoObj) | ||
if templateArgs[' | 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 | ||
רעדאגירונגען