Module:Timeline of release years/sandbox: Difference between revisions

Content deleted Content added
add border inherit
in all cases we want a cell
Line 55:
 
local function right(builder, args, year, itemNum, itemList, outerPadding, innerPadding)
builder:tag('td') -- in all cases, we want a cell
if itemNum == 0 then return end
if itemNum == 1 then
builder:tagcss('tdpadding', outerPadding)
:css('padding', outerPadding)
:wikitext(itemList[1])
return
Line 65 ⟶ 67:
-- if itemNum >= 2
builder:css('padding', outerPadding .. ' ' .. outerPadding .. ' ' .. innerPadding)
builder:tag('td')
:css('padding', outerPadding .. ' ' .. outerPadding .. ' ' .. innerPadding)
:wikitext(itemList[1])
Line 111 ⟶ 112:
:css('clear', args.align == 'left' and 'left' or 'right')
:css('margin', args.align == 'left' and '0 1em 0.5ex 0' or '0 0 0.5ex 1em')
:css('border','inherit')
:css('font-size', '80%')
:css('line-height', '90%')