Jump to content

Module:Bharatdata: Difference between revisions

Undo revision 716 by WikiDwarf (talk)
No edit summary
(Undo revision 716 by WikiDwarf (talk))
Tag: Undo
Line 445: Line 445:
if input_parm ~= "FETCH_WIKIDATA" then
if input_parm ~= "FETCH_WIKIDATA" then
return false, input_parm, nil, nil
return false, input_parm, nil, nil
end
local entity = mw.wikibase.getEntity(qid)
local claims
if entity and entity.claims then
claims = entity.claims[propertyID]
if not claims then
return false, "", nil, nil
end
else
return false, "", nil, nil
end
end
return true, entity, claims, propertyID
return true, entity, claims, propertyID