Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Added SkillReq function
(Added inline blocks to GP & Icon code)
(Added SkillReq function)
Line 64: Line 64:


   return result
   return result
end
function p._SkillReq(skill, level)
  local result = '[[File:'..skill..'_(skill).svg|25px|link='..skill..']]'
  result = result.." '''"..level.."'''"
  result = '<span style="display:inline-block">'..result..'</span>'
  return result
end
function p.SkillReq(frame)
  local args = frame.args ~= nil and frame.args or frame
  local skill = args[1]
  local level = tonumber(args[2])
  return p._SkillReq(skill, level)
end
end