Module:Items: Difference between revisions

_getOtherItemBoxText: Collapse modifiers when the list exceeds 11 rows
(Swapped the getExpansionIcon function to using a new function in Icons)
(_getOtherItemBoxText: Collapse modifiers when the list exceeds 11 rows)
Line 266: Line 266:
--For items with modifiers, show what those are
--For items with modifiers, show what those are
if item.modifiers ~= nil and not Shared.tableIsEmpty(item.modifiers) then
if item.modifiers ~= nil and not Shared.tableIsEmpty(item.modifiers) then
table.insert(resultPart, "\r\n|-\r\n|'''Modifiers:'''\r\n"..Constants.getModifiersText(item.modifiers, true))
table.insert(resultPart, "\r\n|-\r\n|'''Modifiers:'''\r\n"..Constants.getModifiersText(item.modifiers, true, false, 10))
end
end
return table.concat(resultPart)
return table.concat(resultPart)