Module:Television ratings graph: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 49:
local timeline = ''
local average = args.average and 1 or 0
local barwidth = (#args < 20 and 8 or #args > 75 and 6 or 7)
local season_title = args.season_title or 'Season'
local root = mw.html.create('div')
:attr('align', 'center')
-- Bar width
local barwidth
if #args < 20 then barwidth = 8
elseif #args > 75 then barwidth = 6
else barwidth = 7 end
-- Basis parameters