Module:Icons: Difference between revisions

m
Remove unused variable
(Added simple function to return SkillReq or AbyssalSkillReq based on a Boolean value)
m (Remove unused variable)
Line 921: Line 921:
}
}
}
}
}
-- When calling for an icon for Key, add a css class
local imgClassOverrides = {
-- Was previously used for Township stat icons prior to v1.1.2
--['Population'] = 'township-colortoggle'
}
}


Line 1,003: Line 997:
end
end
end
end
local ovrClass = imgClassOverrides[link]
 
-- Type & extension overrides must be after adjustments have been made
-- Type & extension overrides must be after adjustments have been made
-- for any image overrides
-- for any image overrides
Line 1,034: Line 1,028:
iconType = ovrType
iconType = ovrType
end
end
if ovrClass ~= nil then
 
class = ovrClass
end
-- There are a couple specific double overrides to be included that don't fit in the above lists
-- There are a couple specific double overrides to be included that don't fit in the above lists


2,875

edits