Module:Aligned table: Difference between revisions

    (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'):attribute('scope','col')
    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'):attribute('scope','row')
    cell = row:tag('th'):attr('scope','row')
    else
    else
    cell = row:tag('td')
    cell = row:tag('td')