Content deleted Content added
avoid preprocessing where possible Tag: Reverted |
Revert - issues with CSS |
||
Line 255:
row:tag('td')
:attr('id', 'pc' .. idTrim(idTrim(args.ProdCode, ' ----'), '<'))
:css('text-align', 'center')
:wikitext(args.ProdCode)
elseif (args.ProdCode == '' or string.find(args.ProdCode or '', 'TBA') ~= nil) then
createEmptyCell(args, v, false)
createTableData(args.ProdCode, 1,
else
-- ProductionCode parameter not used; Do nothing.
Line 324 ⟶ 325:
-- If serial titles need to be centered and not left, then this should be removed.
local textAlign =
if (v == 'Aux1' and isSerial) then
textAlign = "left"
Line 520 ⟶ 521:
return nil
end
local textAlign = "left"
-- If Title is blank, then set Raw Title to TBA
if (hasValue(titleText) == false) then
titleText = tableEmptyCellModule._main({})
textAlign = "left"
end
Line 533 ⟶ 537:
:attr('scope', 'row')
:attr('rowspan', numberOfParameterGroups)
:css('text-align', textAlign)
:wikitext(titleText)
else
Line 538 ⟶ 543:
:addClass('summary')
:attr('scope', 'row')
:css('text-align', textAlign)
:wikitext(titleText)
end
Line 545 ⟶ 551:
:addClass('summary')
:attr('rowspan', numberOfParameterGroups)
:css('text-align', textAlign)
:wikitext(titleText)
else
row:tag('td')
:addClass('summary')
:css('text-align', textAlign)
:wikitext(titleText)
end
Line 564 ⟶ 572:
:attr('rowspan', numberOfParameterGroups)
:attr('id', epID and 'ep' .. epID or '')
:css('text-align', 'center')
:wikitext(episodeText)
end
Line 627 ⟶ 636:
createTableRowEpisodeNumberHeader(episodeValue, numberOfParameterGroups, episodeText)
else
createTableData(episodeText, numberOfParameterGroups,
end
Line 673 ⟶ 682:
row = row:done() -- Use done() to close the 'tr' tag in rowspaned rows.
:tag('tr')
:css('background', topColor)
end
Line 790 ⟶ 798:
row = root:tag('tr') -- Create the table row and store it globally
:addClass('vevent')
:css('text-align', 'center')
:css('background', topColor)
Line 822 ⟶ 831:
-- Local function which handles both module entry points.
local function main(frame, sublist)
local args
-- Most parameters should still display when blank, so don't remove blanks
if (sublist) then
▲ local args = require('Module:Arguments').getArgs(frame, {
args = getArgs(frame, {removeBlanks = false, wrappers = 'Template:Episode list/sublist'})
else
args = getArgs(frame, {removeBlanks = false, wrappers = 'Template:Episode list'})
end
-- args['1'] = mw.getCurrentFrame():getParent():getTitle()
return _main(args, sublist, frame
end
|