אונטערשייד צווישן ווערסיעס פון "יחידה:אינפאקעסטל/פערזענליכקייט"

קיין רעדאגירונג באמערקונג
אין תקציר עריכה
אין תקציר עריכה
 
(2 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.)
שורה 3: שורה 3:
local PropertyLink = require('Module:PropertyLink')
local PropertyLink = require('Module:PropertyLink')
local ageModule = require('Module:עלטער')
local ageModule = require('Module:עלטער')
local hebrewDateModule = require('Module:יידישע דאטע')
local hebrewDateModule = require('Module:אידישע דאטום')
local WikidataCrossValidation = require('Module:WikidataCrossValidation')
local WikidataCrossValidation = require('Module:WikidataCrossValidation')


שורה 80: שורה 80:
local latestDate = deathDate or birthDate
local latestDate = deathDate or birthDate
if latestDate == nil then return end
if latestDate == nil then return end
local dateModule = require('Module:דאטע')
local dateModule = require('Module:דאטום')
local success, res = pcall(dateModule.parseDateRange, latestDate, 'raw')
local success, res = pcall(dateModule.parseDateRange, latestDate, 'raw')
if success==false then return end -- there is no known VALID date
if success==false then return end -- there is no known VALID date
שורה 125: שורה 125:
usingDeathWikidata = fillWikidataParam(templateArgs, 'טויט דאטום', 'P570', infoObj)
usingDeathWikidata = fillWikidataParam(templateArgs, 'טויט דאטום', 'P570', infoObj)
local birthDate = getSpeculativeDate(templateArgs['געבורט דאטום'], templateArgs['יידישע געבורט דאטום'])
local birthDate = getSpeculativeDate(templateArgs['געבורט דאטום'], templateArgs['אידישע געבורט דאטום'])
local deathDate = getSpeculativeDate(templateArgs['טויט דאטום'], templateArgs['יידישע טויט דאטום'])
local deathDate = getSpeculativeDate(templateArgs['טויט דאטום'], templateArgs['אידישע טויט דאטום'])
if birthDate~=nil then
if birthDate~=nil then
שורה 133: שורה 133:
age = ageModule.ageCalc(birthDate, nil, true, false, true) or ''
age = ageModule.ageCalc(birthDate, nil, true, false, true) or ''
end
end
local birthDetails, usingBirthWikidataEvent = getEventDetails(templateArgs['געבורט דאטום'], templateArgs['יידישע געבורט דאטום'], templateArgs['געבורט ארט'], 'P569', 'P19', age, usingBirthWikidata, infoObj.args.entityId)
local birthDetails, usingBirthWikidataEvent = getEventDetails(templateArgs['געבורט דאטום'], templateArgs['אידישע געבורט דאטום'], templateArgs['געבורט ארט'], 'P569', 'P19', age, usingBirthWikidata, infoObj.args.entityId)
table.insert(infoObj.templateStructure, 1, {
table.insert(infoObj.templateStructure, 1, {
label='געבורט',
label='געבורט',
שורה 151: שורה 151:
deathLabel = getDeathLabel(templateArgs['סיבת המוות'], infoObj.args.entityId)
deathLabel = getDeathLabel(templateArgs['סיבת המוות'], infoObj.args.entityId)
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.args.entityId)
local deathDetails, usingDeathWikidataEvent = getEventDetails(templateArgs['טויט דאטום'], templateArgs['אידישע טויט דאטום'], templateArgs['טויט ארט'], 'P570', 'P20', age, usingDeathWikidata, infoObj.args.entityId)
table.insert(infoObj.templateStructure, 2, {
table.insert(infoObj.templateStructure, 2, {
label=deathLabel,
label=deathLabel,