Content deleted Content added
usage now invokes Wikidata |
in case we try to fetch data from an item that has no claims, just return nil instead of error |
||
Line 607:
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntity(itemID)
local claims
if entity and entity.claims then
claims = entity.claims[propertyID]
end
if claims then
-- if wiki-linked value output as link if possible
|