پودمان:WikidataIB: تفاوت میان نسخه‌ها

۱۴ بایت اضافه‌شده ،  ‏۲۰ مارس ۲۰۱۹
بدون خلاصۀ ویرایش
جز (۱ نسخه واردشده)
بدون خلاصۀ ویرایش
 
خط ۱۶۹: خط ۱۶۹:
-- See what's on Wikidata:
-- See what's on Wikidata:
local entity = mw.wikibase.getEntityObject(qid)
--local entity = mw.wikibase.getEntityObject(qid)
if entity and entity.claims then
--if entity and entity.claims then
local props = entity.claims[property_id]
-- local props = entity.claims[property_id]
if props and props[1] then  
-- if props and props[1] then  
return true, entity, props
-- return true, entity, props
end
-- end
end
--end
-- no property on Wikidata
-- no property on Wikidata
return false, input_parm, nil
return false, input_parm, nil