Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Change to SkillReq formatting
(Changed SkillReq formatting)
(Change to SkillReq formatting)
Line 88: Line 88:


function p._SkillReq(skill, level, showText)
function p._SkillReq(skill, level, showText)
   local result = ' [[File:'..skill..'_(skill).svg|25px|link='..skill..']]'
   local result = '[[File:'..skill..'_(skill).svg|25px|link='..skill..']]'
  result = "Lv "..level..result
   if showText then
   if showText then
     result = result..' [['..skill..']]'
     result = result..' [['..skill..']]'
   end
   end
  result = result.." Level "..level


   result = '<span style="display:inline-block">'..result..'</span>'
   result = '<span style="display:inline-block">'..result..'</span>'