Modulo:Wikidata: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m uniformate virgolette |
aggiungo la possibilità di richiedere solo le property che hanno un certo rank |
||
Riga 77:
end
end
elseif options.rank then
else▼
for i, statement in pairs( entity.claims[string.lower(options.property)] ) do
if statement.rank == options.rank then
table.insert( formattedStatements, formatStatement( statement, options ) ) end
end
▲ else
for i, statement in pairs( entity.claims[string.lower(options.property)] ) do
table.insert( formattedStatements, formatStatement( statement, options ) )
end
end
if list_end then table.insert(formattedStatements, list_end) end
|