4,951
edits
Falterfire (talk | contribs) (Added inline blocks to GP & Icon code) |
Falterfire (talk | contribs) (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 | ||