Modulo:Wikidata/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 71:
if options.n then
local n = tonumber(options.n)
local property = string.lower(options.property)
if n then
if local statement = entity.claims[string.lower(options.property)][n -rank 1]then
local if statement theni=0
local k=0
table.insert( formattedStatements, formatStatement( statement, options ) )
while i ~= n do
local statement = entity.claims[property][k]
if statement then
if statement.rank == options.rank then
i=i+1
k=k+1
else
k=k+1
end
else
i=n
end
end
if statement then
table.insert( formattedStatements, formatStatement( statement, options ) )
end
else
local statement = entity.claims[property][n - 1]
if statement then
table.insert( formattedStatements, formatStatement( statement, options ) )
end
end
end