Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
aggiornato alla versione corrente
m aggiunto parametro "entity"
Riga 417:
-- get entity
entity = args.entity or mw.wikibase.getEntity(args.from)
if not entity then
return nil
Riga 656:
-- Restituisce l'etichetta di un item o di una proprietà Wikidata.
function p._getLabel(args)
local entity = args.entity or mw.wikibase.getEntity(args[1] and string.upper(args[1]))
return entity and entity:getLabel(args[2])
end
Riga 681:
end
 
entity = args.entity or mw.wikibase.getEntity(property)
if not entity then
error(i18n.errors['entity-not-found'], 2)