Module:PerkImage

local p = {} p.main = function(f) local args = f:getParent.args local output = '' if args[1] == nil or args[1] == '' then return '' end local split = mw.text.split(args[1],' ') for i, v in ipairs(split) do		if (v == '&') then v = 'And' end v = string.gsub(v,"['!:]","") if i == 1 then output = output .. mw.language.getContentLanguage:lc(v) else output = output .. mw.language.getContentLanguage:ucfirst(v) end end output = 'IconPerks '..output..'.png' return output end return p