Module:Episode list: Difference between revisions

Content deleted Content added
Episodes that simply use "–" should return as such (i.e. the original episodeNumber; e.g. Doctor Who (series 11)).
fixed title scope
Line 491:
end
-- If title is the first cell, create it with a !scope="row"
local cellType = 'td'
if (nonNilParams == 0) then
if (isSerial) then
cellType = "th"
row:tag(cellType'th')
end
:addClass('summary')
 
:attr('scope', 'row')
if (isSerial) then
:attr('rowspan', numberOfTitleGroups)
row:tag(cellType)
:addClasscss('summarytext-align', textAlign)
:wikitext(titleText)
:attr('rowspan', numberOfTitleGroups)
else
:css('text-align', textAlign)
row:wikitexttag(titleText'th')
:addClass('summary')
:attr('scope', 'row')
:css('text-align', textAlign)
:wikitext(titleText)
end
else
if (isSerial) then
row:tag(cellType)
row:addClasstag('summarytd')
:cssaddClass('text-alignsummary', textAlign)
:attr('rowspan', numberOfTitleGroups)
:wikitext(titleText)
:css('text-align', textAlign)
:wikitext(titleText)
else
row:tag(cellType'td')
:addClass('summary')
:css('text-align', textAlign)
:wikitext(titleText)
end
end