Modulo:Wikidata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m getEntity |
aggiornato alla versione corrente |
||
Riga 47:
}
}
local p = {}
Line 385 ⟶ 382:
-- Lettura e selezione statement
-------------------------------------------------------------------------------
-- Restituisce true se lo statement contiene il qualifier richiesto con un dato valore
Line 440 ⟶ 417:
-- get entity
entity = mw.wikibase.getEntity(args.from
if not entity then
return nil
Line 679 ⟶ 656:
-- Restituisce l'etichetta di un item o di una proprietà Wikidata.
function p._getLabel(args)
local entity = mw.wikibase.getEntity(args[1] and string.upper(args[1])
return entity and entity:getLabel(args[2])
end
Line 704 ⟶ 681:
end
entity = mw.wikibase.getEntity(property
if not entity then
error(i18n.errors['entity-not-found'], 2)
|