Module:WikidataIB/sandbox1: Difference between revisions

Content deleted Content added
trap when there's no Wikidata item for the current page
update getQualifierValue() to use property, not entity
Line 880:
-- check for locally supplied parameter in second unnamed parameter
-- success means no local parameter and the property exists
local success, errorOrEntityqid, props = parseInput(frame, frame.args[2], propertyID) --$$$
if successqid then
local entity = errorOrEntity --$$$
local out = {}
-- Scan through the values of the property
Line 910 ⟶ 909:
end -- of check for wikibase entity
end -- of loop through values of propertyID
return assembleoutput(out, frame.args, entity.idqid, propertyID)
else
return props -- either local parameter or nothing
return errorOrEntity
end -- of test for success
return nil