Module:ModifierTables: Difference between revisions

m
hiding modifiers if many
m (1-indexing because consistency)
m (hiding modifiers if many)
Line 378: Line 378:
     result = result..'||'..row.type..'||data-sort-value="'..row.val..'"|'..row.modifierText
     result = result..'||'..row.type..'||data-sort-value="'..row.val..'"|'..row.modifierText
     if hasOtherModifiers and displayOtherMods then
     if hasOtherModifiers and displayOtherMods then
      result = result..'||'..row.otherModifiers
    local _, nummodifiers = row.otherModifiers:gsub('\n','')
    if nummodifiers < 5 then
    result = result..'||'..row.otherModifiers
    else
    result = result..'|| many modifiers'
    end
     end
     end
   end
   end
892

edits