Modulo:DTSem: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
m
nessun oggetto della modifica
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 117: Riga 117:
     local Count
     local Count
     local Episodes = {}
     local Episodes = {}
        local List = {}
         -- Page.fulltext represents Page name
         -- Page.fulltext represents Page name
        
        
         Count = mw.smw.ask('[[Serie::' .. SeriesShort .. ']][[Personaggio::' .. Page.fulltext .. ']]|format=count')
         Count = mw.smw.ask('[[Serie::' .. SeriesShort .. ']][[Personaggio::' .. Page.fulltext .. ']]|format=count')
        Episodes = mw.smw.getQueryResult('[[Serie::' .. SeriesShort .. ']][[Personaggio::' .. Page.fulltext .. ']]|sort=Numero di produzione|order=asc')
         if Count > 0 then
         if Count > 0 then
        Episodes = mw.smw.getQueryResult('[[Serie::' .. SeriesShort .. ']][[Personaggio::' .. Page.fulltext .. ']]|sort=Numero di produzione|order=asc')
        
        
         table.insert(Results, "* [[" .. Page.fulltext .. "]] (" .. Count .. "): " .. #Episodes)
        for _, Episode in ipairs(Episodes) do
        table.insert(List, Episode.fulltext)
        end
       
         table.insert(Results, "* [[" .. Page.fulltext .. "]] (" .. Count .. "): " .. table.concat(List, ", "))
         end
         end
     end
     end

Menu di navigazione