Module:Aligned table: Difference between revisions

    (should work now)
    (will work on this later)
    Line 12: Line 12:
    local colstyle = {}
    local colstyle = {}
    local cols = tonumber(args['cols']) or 2
    local cols = tonumber(args['cols']) or 2
    local noblankrows = args['noblankrows'] or ''


    -- create the root table
    -- create the root table
    Line 113: Line 112:
    else
    else
    row:css('vertical-align', 'top')
    row:css('vertical-align', 'top')
    end
    -- skip blank rows, if feature is enabled
    local showrow = 1
    if isnotempty(noblankrows) then
    showrow = 0
    for i=1,cols do
    if isnotempty(args[cols*(j - 1) + i] or '') then
    showrow = 1
    break
    end
    end
    end
    end
    -- loop over the cells in the row
    -- loop over the cells in the row