Module:Aligned table: Difference between revisions
typo
(evenodd row classes) |
(typo) |
||
Line 130: | Line 130: | ||
elseif args['row' .. tostring(j) .. 'class'] then | elseif args['row' .. tostring(j) .. 'class'] then | ||
cell:addClass(args['row' .. tostring(j) .. 'class']) | cell:addClass(args['row' .. tostring(j) .. 'class']) | ||
elseif args['rowevenclass'] and math.fmod( | elseif args['rowevenclass'] and math.fmod(j,2) == 0 then | ||
cell:addClass(args['rowevenclass']) | cell:addClass(args['rowevenclass']) | ||
elseif args['rowoddclass'] and math.fmod( | elseif args['rowoddclass'] and math.fmod(j,2) == 1 then | ||
cell:addClass(args['rowoddclass']) | cell:addClass(args['rowoddclass']) | ||
end | end |