Module:Aligned table: Difference between revisions

scope and colXheader per request
m (Protected Module:Aligned table: High-risk Lua module ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(scope and colXheader per request)
Line 113: Line 113:
local cell
local cell
if isnotempty(args['row' .. tostring(j) .. 'header']) then
if isnotempty(args['row' .. tostring(j) .. 'header']) then
cell = row:tag('th')
cell = row:tag('th'):attribute('scope','col')
elseif isnotempty(args['col' .. tostring(j) .. 'header']) then
cell = row:tag('th'):attribute('scope','row')
else
else
cell = row:tag('td')
cell = row:tag('td')
Anonymous user