Jump to content

Module:Aligned table: Difference between revisions

add colwidth per request
(alt syntax as requested)
(add colwidth per request)
Line 56: Line 56:
elseif isnotempty(args['nowrap' .. tostring(i)]) then
elseif isnotempty(args['nowrap' .. tostring(i)]) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
end
if isnotempty(args['colwidth' .. tostring(i)]) then
colstyle[ i ] = 'width:' .. args['colwidth' .. tostring(i)] .. ';' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'width']) then
colstyle[ i ] = 'width:' .. args['col' .. tostring(i) .. 'width'] .. ';' .. colstyle[ i ]
elseif isnotempty(args['colwidth']) then
colstyle[ i ] = 'width:' .. args['colwidth'] .. ';' .. colstyle[ i ]
end
end
if isnotempty(args['colstyle' .. tostring(i)]) then
if isnotempty(args['colstyle' .. tostring(i)]) then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.