Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
test
updating wikidata calls, better performance
Line 274:
end
 
local entity = mw.wikibase.getEntity(qid)
local props = nil
local fallback = nil
if mw.wikibase.entityExists(qid) and mw.wikibase.getAllStatements(qid, propertyID) then
if entity and entity.claims then
props = entitymw.claims[wikibase.getAllStatements(qid, propertyID])
if fallbackID then
fallback = entitymw.claims[wikibase.getAllStatements(qid, fallbackID])
end
end