בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,358
רעדאגירונגען
אין תקציר עריכה |
(מכלוליזאציע) |
||
| שורה 23: | שורה 23: | ||
local result='' | local result='' | ||
local fromWikidata=nil | local fromWikidata=nil | ||
entityId = entityId | entityId = entityId | ||
if ( deathCause == nil or deathCause =='' ) and entityId ~= nil then | if ( deathCause == nil or deathCause =='' ) and entityId ~= nil then | ||
local deathCauseWikidata = mw.wikibase.getBestStatements(entityId, 'P1196') | local deathCauseWikidata = mw.wikibase.getBestStatements(entityId, 'P1196') | ||
| שורה 50: | שורה 50: | ||
end | end | ||
function getEventDetails(generalDate, hebDate, eventPlace, propDate, propPlace, age, usingWikidata, infoObj) | function getEventDetails(generalDate, hebDate, eventPlace, propDate, propPlace, age, usingWikidata, infoObj) | ||
entityId = infoObj.args.entityId | entityId = infoObj.args.entityId | ||
age = age or '' | age = age or '' | ||
local formattedEvent | local formattedEvent | ||
| שורה 95: | שורה 95: | ||
function addMissingImage(infoObj, birthDate, deathDate, gender) | function addMissingImage(infoObj, birthDate, deathDate, gender) | ||
return | |||
end | end | ||
| שורה 155: | שורה 145: | ||
wikidataInstanceOf = wikidataInstanceOf.datavalue and wikidataInstanceOf.datavalue.value and wikidataInstanceOf.datavalue.value.id | wikidataInstanceOf = wikidataInstanceOf.datavalue and wikidataInstanceOf.datavalue.value and wikidataInstanceOf.datavalue.value.id | ||
if wikidataInstanceOf ~= 'Q5' then | if wikidataInstanceOf ~= 'Q5' then | ||
table.insert(infoObj.wikidataCats, ' | table.insert(infoObj.wikidataCats, '') | ||
return true | return true | ||
end | end | ||
| שורה 175: | שורה 165: | ||
wikidataGender = PropertyLink.getItem( 'P21', infoObj.args.entityId ) | wikidataGender = PropertyLink.getItem( 'P21', infoObj.args.entityId ) | ||
if wikidataGender == nil then | if wikidataGender == nil then | ||
table.insert(infoObj.wikidataCats, ' | table.insert(infoObj.wikidataCats, '') | ||
else | else | ||
if (wikidataGender == "Q6581097") then -- male | if (wikidataGender == "Q6581097") then -- male | ||
רעדאגירונגען