Module:Episode list: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 10:
end
local args = getArgs(frame, {wrappers = 'Template:Episode list/sublist'})
local page_titletitle = tostring(mw.title.getCurrentTitle())
local page_title = tostring(title)
local on_same_page
local page_title = tostring(mw.title.getCurrentTitle())
local mainlist = args.MainList or args[1] or page_title
Line 18 ⟶ 17:
local EpisodeNumber,EpisodeNumber2,Title,Aux1,DirectedBy,WrittenBy,DirectedBy,Aux2,Aux3,OriginalAirDate,AltDate,ProdCode,Viewers,Aux4
local on_same_page,return_table
local line_color = args.LineColor or 'CCCCFF'
Line 120:
end
return return_table = tostring(table_row)
if args.ShortSummary and on_same_page then
local bottom_wrapper = mw.html.create('tr')
Line 128 ⟶ 129:
:wikitext(args.ShortSummary)
bottom_wrapper:node(ShortSummary)
returnreturn_table tostring(table_row)= return_table..tostring(bottom_wrapper)
else
return tostring(table_row)
end
local categories = ''
if not args.LineColor and on_same_page and title.nsText == '' then
categories = categories..'[[Category:Episode list using the default LineColor]]'
end
if args.TopColor and on_same_page and title.nsText == '' then
categories = categories..'[[Category:Episode lists with row deviations]]'
end
return return_table..categories
end