Module:Aligned table: Difference between revisions

no edit summary
(Undid revision 617860748 by Frietjes (talk))
No edit summary
Line 114: Line 114:
if args['class' .. tostring(j) .. '.' .. tostring(i)] then
if args['class' .. tostring(j) .. '.' .. tostring(i)] then
cell:addClass(args['class' .. tostring(j) .. '.' .. tostring(i)])
cell:addClass(args['class' .. tostring(j) .. '.' .. tostring(i)])
elseif args['rowclass' .. tostring(j)] then
else
cell:addClass(args['rowclass' .. tostring(j)])
if args['rowclass' .. tostring(j)] then
elseif args['row' .. tostring(j) .. 'class'] then
cell:addClass(args['rowclass' .. tostring(j)])
cell:addClass(args['row' .. tostring(j) .. 'class'])
elseif args['row' .. tostring(j) .. 'class'] then
elseif colclass[i] ~= '' then
cell:addClass(args['row' .. tostring(j) .. 'class'])
cell:addClass(colclass[i])
end
end
if colclass[i] ~= '' then
if isnotempty(colstyle[i]) then
cell:addClass(colclass[i])
cell:cssText(colstyle[i])
end
end
end
if args['style' .. tostring(j) .. '.' .. tostring(i)] then
if args['style' .. tostring(j) .. '.' .. tostring(i)] then
cell:cssText(args['style' .. tostring(j) .. '.' .. tostring(i)])
cell:cssText(args['style' .. tostring(j) .. '.' .. tostring(i)])
elseif args['rowstyle' .. tostring(j)] then
else
cell:cssText(args['rowstyle' .. tostring(j)])
if args['rowstyle' .. tostring(j)] then
elseif args['row' .. tostring(j) .. 'style'] then
cell:cssText(args['rowstyle' .. tostring(j)])
cell:cssText(args['row' .. tostring(j) .. 'style'])
elseif args['row' .. tostring(j) .. 'style'] then
cell:cssText(args['row' .. tostring(j) .. 'style'])
end
if isnotempty(colstyle[i]) then
cell:cssText(colstyle[i])
end
end
end
cell:wikitext(args[cols*(j - 1) + i] or '')
cell:wikitext(args[cols*(j - 1) + i] or '')
Anonymous user