Module:Traits: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 123: Line 123:


         -- Figure out how many columns there is to span
         -- Figure out how many columns there is to span
        local mode_colspan = 0
         if has_multiple_rows and t.index == 1 then
         if has_multiple_rows and t.index == 1 then
            mode_colspan = 1
             t.mode_row = true
             t.mode_row = true
         end
         end


         t.colspan = 1
         t.colspan = 1
         t.colspan = t.colspan + table.matches(header_dict, t.name) + mode_colspan
         t.colspan = t.colspan + table.matches(header_dict, t.name)


         -- Get multipliers from args
         -- Get multipliers from args