13,398
edits
No edit summary |
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 |
edits