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

קיין רעדאגירונג באמערקונג
אין תקציר עריכה
אין תקציר עריכה
שורה 345: שורה 345:
end })
end })
local entityId = infoObj.args.entityId
local entityId = infoObj.args.entityId
local aliasMap = {
  ['מקום מגורים'] = 'וואוין ארט',
}
for aliased, canonical in pairs(aliasMap) do
  if directArgs[aliased] ~= nil and directArgs[canonical] == nil then
    templateArgs[canonical] = directArgs[aliased]
  end
end
-- Determine the correct label for "Known For" based on gender
-- Determine the correct label for "Known For" based on gender
local knownForLabel = (wikidataGender == 'נקבה' and 'ידועה בשל' or 'ידוע בשל')
local knownForLabel = (wikidataGender == 'נקבה' and 'ידועה בשל' or 'ידוע בשל')


useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'מקום קבורה', {'P119'}, 'מקום קבורה', {multi=true, pencil=true, indic=5})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'קבורה', {'P119'}, 'קבורה', {multi=true, pencil=true, indic=5})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'תאריך עלייה', {}, 'תאריך עלייה', {indic=10})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'תאריך עלייה', {}, 'תאריך עלייה', {indic=10})
שורה 420: שורה 412:


-- Spouse + Partner
-- Spouse + Partner
local spouseVal = templateArgs['בן זוג'] or templateArgs['בת זוג'] or ""
local spouseVal = templateArgs['מאן'] or templateArgs['ווייב'] or ""
if (not disableWikidataFetch) or spouseVal ~= '' then
if (not disableWikidataFetch) or spouseVal ~= '' then
if spouseVal ~= '-' then
if spouseVal ~= '-' then
שורה 443: שורה 435:
if #output > 0 then
if #output > 0 then
insertInOrder(infoObj.templateStructure, {
insertInOrder(infoObj.templateStructure, {
label = ((templateArgs['בן זוג']) and 'בן זוג') or ((templateArgs['בת זוג']) and 'בת זוג') or 'בן או בת זוג',
label = ((templateArgs['מאן']) and 'מאן') or ((templateArgs['ווייב']) and 'ווייב') or 'מאן אדער ווייב',
data = table.concat(output, '\n*'),
data = table.concat(output, '\n*'),
indic = 80
indic = 80
שורה 451: שורה 443:
end
end


useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'ילדים', {'P40'}, 'ילדים', {pencil=true, multi=true, indic=85})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'קינדער', {'P40'}, 'קינדער', {pencil=true, multi=true, indic=85})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'מספר ילדים', {'P1971'}, 'מספר ילדים', {pencil=true, indic=90})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'צאל קינדער', {'P1971'}, 'צאל קינדער', {pencil=true, indic=90})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'פרסים והוקרה', {'P166'}, 'פרסים והוקרה', {multi=true, sep='*', join='*', pencil=true, indic=95, qualifiers={'P585'}, sortOrder = 'desc', filter = filterMinorPrizes})
useArgsOrWikidata(templateArgs, infoObj, disableWikidataFetch, 'פרסים והוקרה', {'P166'}, 'פרסים והוקרה', {multi=true, sep='*', join='*', pencil=true, indic=95, qualifiers={'P585'}, sortOrder = 'desc', filter = filterMinorPrizes})