Module:Episode list: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 12:
local title = mw.title.getCurrentTitle()
local page_title = mw.title.getCurrentTitle().text
local mainlist = args.MainList or args['1'] or page_title''
local on_same_pageon_main_page = mw.uri.anchorEncode(page_title) == mw.uri.anchorEncode(mainlist)
local EpisodeNumber,EpisodeNumber2,Title,Aux1,DirectedBy,WrittenBy,DirectedBy,Aux2,Aux3,OriginalAirDate,AltDate,ProdCode,Viewers,Aux4,return_table
Line 61:
if args.TopColor then
top_color = '#'..args.TopColor
elseif row_color and on_same_pagenot on_main_page and _mod(epn) == 0 then
top_color = '#E9E9E9'
elseif on_same_pagenot on_main_page and args.ShortSummary then
top_color = '#F2F2F2'
else
Line 121:
local categories = ''
if not args.LineColor and on_same_pagenot on_main_page and title.nsText == '' then
categories = categories..'[[Category:Episode list using the default LineColor]]'
end
if args.TopColor and on_same_pagenot on_main_page and title.nsText == '' then
categories = categories..'[[Category:Episode lists with row deviations]]'
end
if on_same_pagenot on_main_page and args.ShortSummary then
local bottom_wrapper = mw.html.create('tr')
local ShortSummary = mw.html.create('td')