Module:Side box: Difference between revisions

add newlines
(add a newline to the above row)
(add newlines)
Line 97: Line 97:


-- The body row
-- The body row
local bodyRow = root:tag('tr')
local bodyRow = root:newline():tag('tr')
if data.image then
if data.image then
bodyRow:tag('td')
bodyRow:tag('td')
Line 119: Line 119:
-- The below row
-- The below row
if data.below then
if data.below then
local belowCell = root:tag('tr'):tag('td')
local belowCell = root:newline():tag('tr'):tag('td')
belowCell
belowCell
:attr('colspan', data.imageright and 3 or 2)
:attr('colspan', data.imageright and 3 or 2)