Module:ModifierTables: Difference between revisions

m
it was a table
m (didn't work)
m (it was a table)
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 = string:gsub(row.otherModifiers, '\r\n','\r\n')
     local nummodifiers = 0
    for _ in pairs(row.otherModifiers) do
    nummodifiers = nummodifiers + 1
    end
     if nummodifiers < 5 then
     if nummodifiers < 5 then
     result = result..'||'..row.otherModifiers
     result = result..'||'..row.otherModifiers
892

edits