Module:ModifierTables: Difference between revisions

m
didn't work
m (hiding modifiers if many)
m (didn't work)
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
     local _, nummodifiers = row.otherModifiers:gsub('\n','')
     local _, nummodifiers = string:gsub(row.otherModifiers, '\r\n','\r\n')
     if nummodifiers < 5 then
     if nummodifiers < 5 then
     result = result..'||'..row.otherModifiers
     result = result..'||'..row.otherModifiers
892

edits