Module:Icon: Difference between revisions

m Undo revision 61784 by Saag (talk)
Tag: Undo
LVL (talk | contribs)
Fix for bullet lifesteal and spirit lifesteal
Line 23: Line 23:
     ["thumper"] = "Module-Icon missing.png",
     ["thumper"] = "Module-Icon missing.png",
     -- Add any others that show red links
     -- Add any others that show red links
}
-- Items that link to disambiguation pages
local linkOverrides = {
    ["Bullet Lifesteal"] = "Bullet Lifesteal (item)",
    ["Spirit Lifesteal"] = "Spirit Lifesteal (item)"
}
}


Line 232: Line 238:


     -- Localize link if on translated subpage
     -- Localize link if on translated subpage
     local baseLink = iconData.link or ""
     local baseLink = linkOverrides[iconData.name] or iconData.link or ""
     local link = baseLink
     local link = baseLink