Module:Character tabs

local getArgs = require('Module:Arguments').getArgs local TabsBuilder = require('Module:TabsBuilder')

local p = {}

function p.main(frame) local args = getArgs(frame)

local builder = TabsBuilder.new local character = args[1] if character == nil or character == '' then error('Character must be set.') end

builder :addTab(character, 'Overview') :addTab(character .. '/Profile', 'Profile') :addTab(character .. '/Cards', 'Cards') :addTab(character .. '/Discography', 'Discography') :addTab(character .. '/Gallery', 'Gallery') return builder:tostring end

return p