67 280
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 116: | Riga 116: | ||
for _, Page in ipairs(Pages.results) do | for _, Page in ipairs(Pages.results) do | ||
local Count | local Count | ||
local Episodes = {} | |||
-- 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') | ||
if Count > 0 then | if Count > 0 then | ||
table.insert(Results, "* [[" .. Page.fulltext .. "]] (" .. Count .. "): ") | Episodes = mw.smw.getQueryResult('[[Serie::' .. SeriesShort .. ']][[Personaggio::' .. Page.fulltext .. ']]||sort=Numero di produzione|order=asc') | ||
table.insert(Results, "* [[" .. Page.fulltext .. "]] (" .. Count .. "): " .. #Episodes) | |||
end | end | ||
end | end |