Module:Icons: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 28: Line 28:
-- For ambiguous overrides, determines the type text to be used in the page link
-- For ambiguous overrides, determines the type text to be used in the page link
local ambiguousTypeMap = Overrides.ambiguousTypeMap()
local ambiguousTypeMap = Overrides.ambiguousTypeMap()
local currencyFormatDefn = Overrides.currencyFormatDefn()


-- Defines icon types for which a section or anchor on a static page should be linked to, rather
-- Defines icon types for which a section or anchor on a static page should be linked to, rather
Line 291: Line 292:


     return tostring(result)
     return tostring(result)
end
local currencyFormatDefn = {
["melvorD:GP"] = {
["img"] = 'Coins.svg',
["name"] = 'Gold Pieces',
["abbr"] = 'GP'
},
["melvorD:SlayerCoins"] = {
["img"] = 'Slayer Coins.svg',
["name"] = 'Slayer Coins',
["abbr"] = 'SC'
},
["melvorD:RaidCoins"] = {
["img"] = 'Raid Coins.svg',
["name"] = 'Raid Coins',
["abbr"] = 'RC'
},
["melvorItA:AbyssalPieces"] = {
["img"] = 'Abyssal Pieces.svg',
["name"] = 'Abyssal Pieces',
["abbr"] = 'AP'
},
["melvorItA:AbyssalSlayerCoins"] = {
["img"] = 'Abyssal Slayer Coins.svg',
["name"] = 'Abyssal Slayer Coins',
["abbr"] = 'ASC'
},
}
-- Aliases for the above
for k, v in pairs(currencyFormatDefn) do
if v.abbr ~= nil and currencyFormatDefn[v.abbr] == nil then
currencyFormatDefn[v.abbr] = v
end
end
end


2,869

edits