Module:Bharatdata: Difference between revisions

m
Muskit Gergous moved page Module:Wikidata to Module:Bharatdata without leaving a redirect
No edit summary
m (Muskit Gergous moved page Module:Wikidata to Module:Bharatdata without leaving a redirect)
 
(3 intermediate revisions by one other user not shown)
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
Line 925: Line 935:
id = nil
id = nil
end
end
local data = mw.wikibase.getEntity(id)
if not data then
return nil
end
local i = 1
local i = 1
while true do
while true do