Modulo:Wikidata: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
aggiunta funzione getStatementByRank, semplificata gestione rank
fix controllo options.n
Riga 90:
if options.n then
local n = tonumber( options.n )
if-- n"+ and1" n <=perché #entity.claims[property] theninizia da 0
if n and n <= #entity.claims[property] + 1 then
local statement = options.rank and
getStatementByRank( entity.claims[property], n, options.rank ) or