Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
rimosso utilizzo di mw.wikibase.getEntity in getLabel se non è richiesta anche la lingua
m parametro entity non più necessario
Riga 651:
function p._getLabel(args)
if args[2] then
local entity = args.entity or mw.wikibase.getEntity(args[1] and string.upper(args[1]))
return entity and entity:getLabel(args[2])
else
Riga 679:
end
 
entity = args.entity or mw.wikibase.getEntity(property)
if not entity then
error(i18n.errors['entity-not-found'], 2)