local Skill = {}
 
function Skill.formatTabs(text)
    text = text or ''
    local res = {}
    for i,v in ipairs(mw.text.split(text, '\n\n+')) do
        local dl, dd
        for i,v in ipairs(mw.text.split(v, '\n')) do
            local tab = mw.ustring.match(v, '^;%s*(.-)%s*:?$')
             mw.log(ddd)
            if tab then
                dl = dl or mw.html.create('dl'):addClass('skill-tabs')
                dl:tag('dt'):wikitext(tab):done()
                dd = dl:tag('dd'):newline()
            else
                v = mw.ustring.gsub(v, '^:', '')
                if dd then
                    dd:wikitext(v):newline()
                else
                    res[#res+1] = v
                end
            end
        end
        if dl then res[#res+1] = tostring(dl) end
    end
    return table.concat(res, '\n')
end
return Skill