Jump to content

Module:Aligned table: Difference between revisions

add rowXheader = option
No edit summary
(add rowXheader = option)
Line 111: Line 111:
-- loop over the cells in each row
-- loop over the cells in each row
for i=1,cols do
for i=1,cols do
local cell = row:tag('td')
local cell
if isnotempty(args['row' .. tostring(j) .. 'header']) then
cell = row:tag('th')
else
cell = row:tag('td')
end
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)])
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.