Anonimo

Modulo:DTSpecific: differenze tra le versioni

Da Wikitrek.
Nessun cambiamento nella dimensione ,  7 giu 2022
nessun oggetto della modifica
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 QueryResult == nil then
if SeriesQuery == nil then
         Series = "''Nessun risultato''"
         Series = "''Nessun risultato''"
     end
     end


     if type(QueryResult) == "table" then
     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(QueryResult.results) do
     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",