Module:CharacterNav

-- local p = {}

local title = mw.title.getCurrentTitle

function section(html, text, link) local tag = html:tag('div') :addClass('article-tabs__tab') :wikitext( .. text .. ) if title.text == link then tag:addclass('article-tabs__selected') end tag:done end

function p.main local html = mw.html.create('div') local charName = title.rootText section(html, charName, charName) section(html, 'Progression', charName .. '/Progression') section(html, 'Affinity', charName .. '/Affinity') section(html, 'Costumes', charName .. '/Costumes') return tostring(html:done) end

return p