FANDOM


local p = {}
function p.script(a)
    local b = '==='
    if not a.args['Ability'] then
        a.args['Ability'] = '{{{Ability}}}'
    end
    if a.args['Ability'] == 'js' then
        b = b .. 'JavaScript (JS)===\n'
    elseif a.args['Ability'] == 'css' then
        b = b .. 'Cascading Style Sheet (CSS)===\n'
    end
    b = b .. [[{| class="linetable hover sortable" style="text-align: center;" align="center" cellspacing="1"
|- bgcolor="#9acd32"
! scope="col" | Nom du contributeur
! scope="col" | Niveau
! scope="col" | Remerciement(s)
|-
]]
    local i = 1
    while a.args[i] do
        if (i - 1) % 3 == 0 then
            a.args[i] = string.gsub(a.args[i], '\n', '')
            a.args[i] = '[[Mur:' .. a.args[i] .. '|' .. a.args[i] .. ']]'
        elseif i % 3 == 0 then
            if a.args['Ability'] == 'js' then
 
            elseif a.args['Ability'] == 'css' then
 
            end
        end
        b = b .. '|' .. a.args[i] .. '\n'  
        i = i + 1
    end
    b = b .. '|}'
    return b
end
return p