Module:Cite Q: Difference between revisions

Content deleted Content added
stet; bug was at source
Carry out edit request from User:Snævar with some further optimization
Line 274:
end
 
local entity = mw.wikibase.getEntity(qid)
local props = nil
local fallback = nil
if mw.wikibase.entityExists(qid) then
if entity and entity.claims then
props = entitymw.claims[wikibase.getAllStatements(qid, propertyID])
if props and fallbackID then
fallback = entitymw.claims[wikibase.getAllStatements(qid, fallbackID])
end
end