66 624
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 269: | Riga 269: | ||
local SeriesQuery = mw.smw.getQueryResult('[[Istanza::Serie]]|sort=Serie|order=asc') | local SeriesQuery = mw.smw.getQueryResult('[[Istanza::Serie]]|sort=Serie|order=asc') | ||
if | if SeriesQuery == nil then | ||
Series = "''Nessun risultato''" | Series = "''Nessun risultato''" | ||
end | end | ||
if type( | if type(SeriesQuery) == "table" then | ||
UL = mw.html.create('ul') | UL = mw.html.create('ul') | ||
UL | UL | ||
:attr('class', "compactul") | :attr('class', "compactul") | ||
:attr('title', "Tutte le serie") | :attr('title', "Tutte le serie") | ||
for _, CurrSeries in pairs( | for _, CurrSeries in pairs(SeriesQuery.results) do | ||
--In the output, example: | --In the output, example: | ||
--"fulltext": "Star Trek: Strange New Worlds", | --"fulltext": "Star Trek: Strange New Worlds", |