Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Icon: Implement special handling for type 'agility', for linking to particular obstacles & pillars
(TotH: Suppress alt text)
(Icon: Implement special handling for type 'agility', for linking to particular obstacles & pillars)
Line 389: Line 389:
img = sgsub(img, '/Guide', '')
img = sgsub(img, '/Guide', '')
link = sgsub(link, '#', '')
link = sgsub(link, '#', '')
-- Special handling for links to Agility obstacles or pillars
if iconType == 'agility' then
img = 'Agility'
iconType = 'skill'
if text == nil then
text = link
end
link = 'Agility#' .. string.gsub(link, ' ', '')
end


--MANUAL OVERRIDES
--MANUAL OVERRIDES