Module:Icon

local p = {} local lang = mw.getContentLanguage local bossFilenames = { fire = 'Boss Fire.png', water = 'Boss Water.png', wind = 'Boss Wind.png', earth = 'Boss Earth.png', light = 'Boss Light.png', dark = 'Boss Dark.png', none = 'Boss None.png', crystal = 'Crystal cactuar (boss icon).png', ['crystal cactuar'] = 'Crystal cactuar (boss icon).png', --metal = 'Metal cactuar (boss icon).png', --gold = 'Gold cactuar (boss icon).png', } local jobtypeFilenames = { warrior = 'Warrior Icon.png', mage = 'Mage Icon.png', ranger = 'Ranger Icon.png', monk = 'Monk Icon.png', healer = 'Healer Icon.png', support = 'Support Icon.png', material = 'Material Icon.png', } local orbFilenames = { fire = 'Fire Icon.png', water = 'Water Icon.png', wind = 'Wind Icon.png', earth = 'Earth Icon.png', light = 'Light Icon.png', dark = 'Dark Icon.png', life = 'Life Icon.png', prismatic = 'Prismatic Icon.png', none = 'None Icon.png', } local seedFilenames = { fire = 'Seed fire.png', water = 'Seed water.png', wind = 'Seed wind.png', earth = 'Seed earth.png', light = 'Seed light.png', dark = 'Seed dark.png', prismatic = 'Seed prismatic.png', crystal = 'Crystal.png', } p.boss = function(frame) local args = frame:getParent.args return p._boss(args) end p._boss = function(args) local element = mw.text.trim(args[1] or ''):lower local filename = bossFilenames[element] if filename then return '' end return '' end p.jobtype = function(frame) local args = frame:getParent.args return p._jobtype(args) end p._jobtype = function(args) local jobtype = mw.text.trim(args[1] or ''):lower local filename = jobtypeFilenames[jobtype] if filename then return '' end return '' end

p.orb = function(frame) local args = frame:getParent.args return p._orb(args) end p._orb = function(args) local element = mw.text.trim(args[1] or ''):lower local filename = orbFilenames[element] if filename then return '' end return '' end

p.seed = function(frame) local args = frame:getParent.args return p._seed(args) end p._seed = function(args) local element = mw.text.trim(args[1] or ''):lower local filename = seedFilenames[element] if filename then return '' end return '' end

return p