Modulo:DTSpecific: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
nessun oggetto della modifica
(Results sorted to get higher value on top of the list)
Nessun oggetto della modifica
Riga 212: Riga 212:
local Categories
local Categories
local Seasons
local Seasons
local Series
--Series
--Series
Riga 265: Riga 266:
end
end
return Categories .. "<hr />" .. Seasons
--Series
local SeriesQuery = mw.smw.getQueryResult('[[Istanza::Serie]]|sort=Serie|order=asc')
if QueryResult == nil then
        Series = "''Nessun risultato''"
    end
 
    if type(QueryResult) == "table" then
    UL = mw.html.create('ul')
UL
:attr('class', "compactul")
:attr('title', "Tutte le serie")
    for _, CurrSeries in pairs(QueryResult.results) do
    --In the output, example:
    --"fulltext": "Star Trek: Strange New Worlds",
    LI =  mw.html.create('li')
        LI:wikitext("[[" .. CurrSeries.fulltext .. "]]")
       
        UL:node(LI)
    end
    Series = tostring(UL)
    else
    Series = "''Il risultato non è una TABLE''"
    end
return Categories .. "<hr />" .. Seasons .. "<hr />" .. Series
--[==[
--[==[
<strong>Categorie</strong>
<strong>Categorie</strong>

Menu di navigazione