Module:Aligned table: Difference between revisions

m
(even/odd rowstyles)
m (59 revisions imported from wikipedia:Module:Aligned_table: see Topic:Vtixlm0q28eo6jtf)
 
(2 intermediate revisions by 2 users not shown)
Line 39: Line 39:
colstyle[1] = 'text-align:left;'
colstyle[1] = 'text-align:left;'
colstyle[2] = 'text-align:right;'
colstyle[2] = 'text-align:right;'
end
if isnotempty(args['rightleft']) then
colstyle[1] = 'text-align:right;'
colstyle[2] = 'text-align:left;'
end
end
for i = 1,cols do
for i = 1,cols do
Line 112: Line 116:
else
else
row:css('vertical-align', 'top')
row:css('vertical-align', 'top')
end
if isnotempty(args['rowclass']) then
row:addClass(args['rowclass'])
end
end
-- loop over the cells in the row
-- loop over the cells in the row