Jump to content

Module:Aligned table: Difference between revisions

alt syntax as requested
No edit summary
(alt syntax as requested)
Line 45: Line 45:
if isnotempty(args['colalign' .. tostring(i)]) then
if isnotempty(args['colalign' .. tostring(i)]) then
colstyle[ i ] = 'text-align:' .. args['colalign' .. tostring(i)] .. ';' .. colstyle[ i ]
colstyle[ i ] = 'text-align:' .. args['colalign' .. tostring(i)] .. ';' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'align']) then
colstyle[ i ] = 'text-align:' .. args['col' .. tostring(i) .. 'align'] .. ';' .. colstyle[ i ]
elseif isnotempty(args['align' .. tostring(i)]) then
elseif isnotempty(args['align' .. tostring(i)]) then
colstyle[ i ] = 'text-align:' .. args['align' .. tostring(i)] .. ';' .. colstyle[ i ]
colstyle[ i ] = 'text-align:' .. args['align' .. tostring(i)] .. ';' .. colstyle[ i ]
end
end
if isnotempty(args['colnowrap' .. tostring(i)]) then
if isnotempty(args['colnowrap' .. tostring(i)]) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'nowrap']) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
elseif isnotempty(args['nowrap' .. tostring(i)]) then
elseif isnotempty(args['nowrap' .. tostring(i)]) then
Line 55: Line 59:
if isnotempty(args['colstyle' .. tostring(i)]) then
if isnotempty(args['colstyle' .. tostring(i)]) then
colstyle[ i ] = colstyle[ i ] .. args['colstyle' .. tostring(i)]
colstyle[ i ] = colstyle[ i ] .. args['colstyle' .. tostring(i)]
elseif isnotempty(args['col' .. tostring(i) .. 'style']) then
colstyle[ i ] = colstyle[ i ] .. args['col' .. tostring(i) .. 'style']
elseif isnotempty(args['style' .. tostring(i)]) then
elseif isnotempty(args['style' .. tostring(i)]) then
colstyle[ i ] = colstyle[ i ] .. args['style' .. tostring(i)]
colstyle[ i ] = colstyle[ i ] .. args['style' .. tostring(i)]
Line 60: Line 66:
if isnotempty(args['colclass' .. tostring(i)]) then
if isnotempty(args['colclass' .. tostring(i)]) then
colclass[ i ] =  args['colclass' .. tostring(i)]
colclass[ i ] =  args['colclass' .. tostring(i)]
elseif isnotempty(args['col' .. tostring(i) .. 'class']) then
colclass[ i ] =  args['col' .. tostring(i) .. 'class']
elseif isnotempty(args['class' .. tostring(i)]) then
elseif isnotempty(args['class' .. tostring(i)]) then
colclass[ i ] =  args['class' .. tostring(i)]
colclass[ i ] =  args['class' .. tostring(i)]
Line 86: Line 94:
elseif args['rowclass' .. tostring(j)] then
elseif args['rowclass' .. tostring(j)] then
cell:addClass(args['rowclass' .. tostring(j)])
cell:addClass(args['rowclass' .. tostring(j)])
elseif args['row' .. tostring(j) .. 'class'] then
cell:addClass(args['row' .. tostring(j) .. 'class'])
elseif colclass[i] ~= '' then
elseif colclass[i] ~= '' then
cell:addClass(colclass[i])
cell:addClass(colclass[i])
Line 93: Line 103:
elseif args['rowstyle' .. tostring(j)] then
elseif args['rowstyle' .. tostring(j)] then
cell:cssText(args['rowstyle' .. tostring(j)])
cell:cssText(args['rowstyle' .. tostring(j)])
elseif args['row' .. tostring(j) .. 'style'] then
cell:cssText(args['row' .. tostring(j) .. 'style'])
elseif colstyle[i] ~= '' then
elseif colstyle[i] ~= '' then
cell:cssText(colstyle[i])
cell:cssText(colstyle[i])
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.