Modulo:Wikidata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+test getAllStatements |
rimosso utilizzo di mw.wikibase.getEntity in getLabel se non è richiesta anche la lingua |
||
Riga 649:
-- Restituisce l'etichetta di un item o di una proprietà Wikidata.
function p._getLabel(args)
if args[2] then
local entity = args.entity or mw.wikibase.getEntity(args[1] and string.upper(args[1])) else
return mw.wikibase.label(args[1] and string.upper(args[1]))
end
end
|