Module:NavigationBar

-- 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(frame) local args = frame:getParent.args local html = mw.html.create('div') :addClass('article-tabs') local text = title.rootText section(html, text, text) if args.page then section(html, 'Gallery', args.page .. '/Image Gallery') elseif args[1] == 'game' then section(html, 'Gallery', text .. '/Image Gallery') section(html, 'Trophies', text .. '/Trophies') elseif args[1] == 'animation' then section(html, 'Gallery', text .. '/Image Gallery') section(html, 'Releases', text .. '/Releases') elseif args[1] == 'fte' then if args[2] ~= 'nodr1' and args[3] ~= 'nodr1' then section(html, 'Danganronpa: Trigger Happy Havoc', text .. '/Danganronpa 1') end if args[2] ~= 'nodr2' and args[3] ~= 'nodr2' then section(html, 'Danganronpa 2: Goodbye Despair', text .. '/Danganronpa 2') end if args[2] ~= 'nodr3' and args[3] ~= 'nodr3' then section(html, 'Danganronpa V3: Killing Harmony', text .. '/Danganronpa V3') end else if args[1] ~= 'nogallery' then if args[1] == 'monokuma' then section(html, 'Gallery', 'Monokuma Kubs/Image Gallery') else section(html, 'Gallery', text .. '/Image Gallery') end end if args[1] ~= 'nosprites' then section(html, 'Sprites', text .. '/Sprite Gallery') end end return tostring(html:done) end return p