Module:Icons: Difference between revisions

Added disambiguation override for Chick
(Only show a range of values for GP/SP if the values are actually different)
(Added disambiguation override for Chick)
Line 61: Line 61:
   ['Spider2'] = 'Spider (lv. 52)'
   ['Spider2'] = 'Spider (lv. 52)'
}
}
--Ambiguous overrides section
local ambiguousOverrides = {'Golbin', 'Chick'}


local Shared= require("Module:Shared")
local Shared= require("Module:Shared")
Line 104: Line 106:
   end
   end
   --There are a couple specific double overrides I want to include that don't fit in the above lists
   --There are a couple specific double overrides I want to include that don't fit in the above lists
   if link == 'Golbin' then
   if Shared.contains(ambiguousOverrides, link) then
     if text == nil then text = 'Golbin' end
     if text == nil then text = link end
     link = 'Golbin ('..type..')'
     link = link..' ('..type..')'
   end
   end