Module:Television ratings graph: Difference between revisions

Content deleted Content added
Hair space to separate italic text from colon a bit
Accessibility fixes, plus new parameter |season_title=
Line 43:
local timelineCode = ''
local average = args.average and 1 or 0
local season_title = args.season_title or 'Season'
local root = mw.html.create('div')
:attr('align', 'center')
Line 121 ⟶ 122:
local row = rtable:tag('tr')
row:tag('tdth'):wikitext(season_title)
for i=1,max_episodes do
row:tag('th')
:attr('scope','col')
:wikitext(frame:expandTemplate{ title='abbr', args={ 'Ep.', 'Episode' } } .. ' ' .. i)
end
Line 160 ⟶ 161:
row:tag('th')
:attr('scope','row')
:wikitext(args["legend" .. season] and "''"..args["legend" .. season].."''" or season_title .. 'Season ' .. season)
this_episodes = 0