Module:ModifierTables: Difference between revisions

I think I made it so that modifier tables now will only hide at least two rows
(_getModifierTable: Correct issues with incorrect other modifier count & incorrect number of visible modifiers; change sort order)
(I think I made it so that modifier tables now will only hide at least two rows)
Line 227: Line 227:
         end
         end
       end
       end
 
     
  local overflowModCount = Shared.tableCount(modTextArray['overflow'])
      if overflowModCount == 1 then
      table.insert(modTextArray['visible'], modTextArray['overflow'][1])
      end
  local otherModText = {table.concat(modTextArray['visible'], '<br/>')}
  local otherModText = {table.concat(modTextArray['visible'], '<br/>')}
  local overflowModCount = Shared.tableCount(modTextArray['overflow'])
   
  if overflowModCount > 0 then
  if overflowModCount > 1 then
  -- Number of other modifiers for the object exceed the specified maximum
  -- Number of other modifiers for the object exceed the specified maximum
  table.insert(otherModText, '<br/><span style="float:left;margin-left:0;margin-right:1em" class="mw-collapsible mw-collapsed" ')
  table.insert(otherModText, '<br/><span style="float:left;margin-left:0;margin-right:1em" class="mw-collapsible mw-collapsed" ')