67 247
contributi
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') | ||
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 .. "): " .. | 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 |