Content deleted Content added
improving to allow manual bar widths and more eps |
two options for table headers depending on ep. count |
||
Line 200:
end
--
local row = rtable:tag('tr')▼
-- Headers rows for episodes 1 to highest number of episodes
row:tag('th'):wikitext(season_title)▼
▲ local row = rtable:tag('tr')
:attr('colspan','2')▼
▲ row:tag('th'):wikitext(season_title)
:attr('rowspan','2')▼
▲ :attr('colspan','2')
▲ :attr('rowspan','2')
row:tag('th')▼
:attr('colspan',longestseason)▼
:wikitext("Episode number")▼
-- Average column▼
if average == 1 then
row:tag('th')
:attr('rowspan','2')
:wikitext("''Average''")▼
end▼
local row = rtable:tag('
▲ :attr('colspan',longestseason)
▲ :wikitext("Episode number")
for i = 1,longestseason do▼
▲ -- Average column
row:tag('th')
▲ if average == 1 then
:
end
▲ :attr('rowspan','2')
else
▲ :wikitext("''Average''")
-- Headers rows for episodes 1 to highest number of episodes
▲ end
local row = rtable:tag('tr')
:attr('colspan','2')
▲ for i = 1,longestseason do
for i = 1,longestseason do
▲ row:tag('th')
:
:wikitext(frame:expandTemplate{ title='abbr', args={ 'Ep.', 'Episode' } } .. ' ' .. i)
end
-- Average column
if average == 1 then
row:tag('th')
:attr('scope','col')
:wikitext("''Average''")
end
end
|