Module:Aligned table: Difference between revisions
typo
(scope and colXheader per request) |
(typo) |
||
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'):attr('scope','col') | ||
elseif isnotempty(args['col' .. tostring(j) .. 'header']) then | elseif isnotempty(args['col' .. tostring(j) .. 'header']) then | ||
cell = row:tag('th'): | cell = row:tag('th'):attr('scope','row') | ||
else | else | ||
cell = row:tag('td') | cell = row:tag('td') |