Content added Content deleted
(moved tabs around, removed tl tab, added stamps tab) |
(removed stamps tab) |
||
Line 19: | Line 19: | ||
:addTab(character .. '/Profile', 'Profile') |
:addTab(character .. '/Profile', 'Profile') |
||
:addTab(character .. '/Cards', 'Cards') |
:addTab(character .. '/Cards', 'Cards') |
||
:addTab(string.format('List of %s stamps', character), 'Stamps') |
|||
:addTab(character .. '/Gallery', 'Gallery') |
:addTab(character .. '/Gallery', 'Gallery') |
||
Revision as of 21:26, 9 July 2022
This module depends on the following other modules: |
To generate {{Character tabs}}, invoke using the main function.
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 .. '/Gallery', 'Gallery')
return builder:tostring()
end
return p