Module:Aligned table: Difference between revisions
allow customization of rowstyle (per Template:Aligned table/doc)
(typo) |
(allow customization of rowstyle (per Template:Aligned table/doc)) |
||
Line 108: | Line 108: | ||
-- start a new row | -- start a new row | ||
local row = root:tag('tr') | local row = root:tag('tr') | ||
row:css('vertical-align', 'top') | if isnotempty(args['rowstyle']) then | ||
row:cssText(args['rowstyle']) | |||
else | |||
row:css('vertical-align', 'top') | |||
end | |||
-- loop over the cells in each row | -- loop over the cells in each row | ||
for i=1,cols do | for i=1,cols do |