Module:Equipment/Recommended: Difference between revisions

m
Allow for an Empty slot to be passed in
m (Fix incorrect calculation on remaining row sizes when custom header text is used)
m (Allow for an Empty slot to be passed in)
 
Line 75: Line 75:
-- ! prefix, treat as plain text
-- ! prefix, treat as plain text
itemIcon = string.sub(v, 2, -1)
itemIcon = string.sub(v, 2, -1)
else
elseif v ~= 'Empty' then
-- Otherwise treat as an item icon
-- Otherwise treat as an item icon
local icontype = slot.icontype or 'item'
local icontype = slot.icontype or 'item'