Module:Episode list: Difference between revisions

Content deleted Content added
Removing comma separator, as it incorrectly formats numbers such as "2,819" to "2–819".
sync with sandbox - added EpisodeNumber3 arg
Line 306:
See:
-- createEpisodeNumberCell()
-- createEpisodeNumberCellSecondary()
-- createEpisodeNumberCell2()
-- createTitleCell()
]]--
Line 628:
end
 
-- Local function which is used to create an EpisodeNumber2 celland EpisodeNumber3 cells.
local function createEpisodeNumberCell2_createEpisodeNumberCellSecondary(argsepisodeValue, numberOfParameterGroups)
if (args.EpisodeNumber2episodeValue) then
local episodeText = getEpisodeText(args.EpisodeNumber2episodeValue)
 
if (nonNilParams == 0) then
createTableRowEpisodeNumberHeader(args.EpisodeNumber2episodeValue, numberOfParameterGroups, episodeText)
else
createTableData(episodeText, numberOfParameterGroups, "center")
Line 642:
 
end
end
 
-- Local function which is used to create seconday episode number cells.
local function createEpisodeNumberCellSecondary(args, numberOfParameterGroups)
_createEpisodeNumberCellSecondary(args.EpisodeNumber2, numberOfParameterGroups)
_createEpisodeNumberCellSecondary(args.EpisodeNumber3, numberOfParameterGroups)
end
 
Line 657 ⟶ 663:
local function createSingleRowCells(args, numberOfParameterGroups, multiTitleListEnabled, onInitialPage, title)
createEpisodeNumberCell(args, 1)
createEpisodeNumberCell2createEpisodeNumberCellSecondary(args, 1)
createTitleCell(args, numberOfParameterGroups, multiTitleListEnabled, false)
createCells(args, false, 1, onInitialPage, title, numberOfParameterGroups)
Line 667 ⟶ 673:
local function createMultiRowCells(args, numberOfParameterGroups, onInitialPage, title, topColor)
createEpisodeNumberCell(args, numberOfParameterGroups)
createEpisodeNumberCell2createEpisodeNumberCellSecondary(args, numberOfParameterGroups)
createTitleCell(args, numberOfParameterGroups, false, true)