Content deleted Content added
m (W+) |
mNo edit summary |
||
Line 41:
end
local function left(builder, args, year, itemNum, outerPadding)
builder = builder:tag('td')
:attr('scope', 'row')
:css('text-align', 'right') -- For year = 'TBA'
:css('border', 'none')
:css('padding',
:css('border-right', '16px solid ' .. color(args, year, itemNum))
:wikitext(year)
Line 55:
end
local function right(builder, args, year, itemNum, itemList, outerPadding, innerPadding)
local outerPadding, innerPadding = '5px', '2px'▼
if itemNum == 0 then return end
Line 89 ⟶ 88:
end
local function row(builder, args, year, outerPadding, innerPadding)
local itemNum, itemList = items(args, year)
builder = builder:tag('tr')
left(builder, args, year, itemNum, outerPadding)
right(builder, args, year, itemNum, itemList, outerPadding, innerPadding)
end
Line 105 ⟶ 104:
function p._main(args)
-- Main module code goes here.
▲ local outerPadding, innerPadding = '5px', '2px'
local ret
local firstyear, lastyear
Line 122 ⟶ 123:
ret:tag('caption')
:css('padding',
:css('font-size', '112.5%') -- 90% / 80%
:addClass('nowrap')
Line 130 ⟶ 131:
ret:tag('tr'):tag('td')
:attr('colspan', '2')
:css('padding', '0px
:css('border', 'none')
:css('text-align', 'center')
Line 160 ⟶ 161:
for year = firstyear, lastyear do
row(ret, args, year, outerPadding, innerPadding)
end
if TBA then
row(ret, args, 'TBA', outerPadding, innerPadding)
end
|