local p = {}
 
function p.championArray ( frame )
    local i = 0
    local arr = {}
    for s in frame.args[1]:gmatch('<span class="wrapperChampion">([%a%]+)<\/span>') do
        arr[i] = { i, s }
        i  = i + 1
        return arr[i][2]
    end
end
 
function p.statArray ( frame )
    local i = 0
    local arr = {}
    for s in frame.args[1]:gmatch('<span class="wrapper">([%d%.]+)<\/span>') do
        arr[i] = { i, s }
        i = i + 1
    end
    table.sort(arr, function(a, b) return a[2] > b[2] end)
    return '|' .. arr[1][2] .. '\n|-\n|' .. arr[2][2] .. '\n|-\n|' .. arr[3][2] .. '\n|-\n|' .. arr[4][2] .. '\n|-\n|' .. arr[5][2]
end
 
return p