Module:Wikidata: Difference between revisions

Content deleted Content added
Can't index an empty table
Can't index a non-table that is, can definitely index an empty table
Line 69:
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntityObject()
local claims =if entity.claims and entity.claims[propertyID] then
local claims = entity.claims[propertyID]
end
if claims then
-- if wiki-linked value output as link if possible