Module:SkillListLite el

local p = {} local SkillListLite = require( 'Module:SkillListLite' )._main local getArgs = require( 'Module:Arguments' ).getArgs

function p.main(frame) local args = getArgs(frame, {   wrappers = {      'Template:SkillListLite el'    }  }) return p._main( args ) end

function p._main( args ) local nametext = args[2] if args['userparam'] then if string.match( args['userparam'], args[2] ) then local i, numbers = 0, {} for footnote in mw.text.gsplit( args['userparam'], ':', plain ) do       if string.match( footnote, args[2] ) then table.insert( numbers, i ) end i = i + 1 end nametext = args[2] .. ' ' .. table.concat( numbers, ', ' ) .. ''   end end return SkillListLite({   ["source"] = args[1],    ["name"] = args[2],    ["nametext"] = nametext,  }) end

return p