Module:Television ratings graph: Difference between revisions

Content deleted Content added
m rm "local"
improving to allow manual bar widths and more eps
Line 136:
-- Plot data
timeline = timeline .. "PlotData =\n"
timeline = timeline .. " width:" .. (args.bar_width or barwidth) .. "\n"
timeline = timeline .. " mark:(line,black)\n"
Line 159:
-- Include black bar to act as border
timeline = timeline .. " color:black\n"
timeline = timeline .. " bar:" .. bar .. " width:" .. ((args.bar_width or barwidth)+2) .. " from:start till:" .. (v ~= '' and v or 'start') .. "\n"
-- Include bar for viewer figure, do not include if averages are included and the next parameter is a new season marker
Line 204:
row:tag('th'):wikitext(season_title)
:attr('colspan','2')
:attr('rowspan','2')
for i = 1,longestseason do
row:tag('th')
:attr('colspan',longestseason)
:wikitext("Episode number")
-- Average column
if average == 1 then
row:tag('th')
:attr('scope','col')
:attr('rowspan','2')
:wikitext(frame:expandTemplate{ title='abbr', args={ 'Ep.', 'Episode' } } .. ' ' .. i)
:wikitext("''Average''")
end
local row = rtable:tag('tr')
-- Average column
if average == 1 then
for i = 1,longestseason do
row:tag('th')
:attr('scope','col')
:wikitext("''Average''"i)
end