Changes

Jump to navigation Jump to search
no edit summary
Line 68: Line 68:  
else
 
else
 
label = mw.wikibase.getLabelByLang("Item:"..item, language)
 
label = mw.wikibase.getLabelByLang("Item:"..item, language)
mw.notify("Trying to find in Wikidata label")
  −
mw.notify(label)
  −
   
end
 
end
 
if label then break end                    -- label found and we are done
 
if label then break end                    -- label found and we are done
Line 265: Line 262:  
local entity
 
local entity
 
if type(item)=='string' then -- "item" is a q-code
 
if type(item)=='string' then -- "item" is a q-code
entity = mw.wikibase.getEntity(item);  
+
entity = mw.wikibase.getEntity("Item:"..item);  
 
else
 
else
 
entity = item            -- "item" is the entity
 
entity = item            -- "item" is the entity

Navigation menu