Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Chapter tabs: Difference between revisions

From Sekaipedia
Content added Content deleted
mNo edit summary
mNo edit summary
Tag: Reverted
Line 15: Line 15:
tabview
tabview
:addOneArgTab("/%s", "❮ %s", args['prev'], { if_nil = 'blank', width = '110px' })
:addOneArgTab("/%s", "❮ %s", args['prev'], { if_nil = 'blank', width = '105px' })
:addTab("", "All Chapters", { width = '110px' })
:addTab("", "All Chapters", { width = '105px' })
:addOneArgTab("/%s", "%s ❯", args['next'], { if_nil = 'blank', width = '110px' })
:addOneArgTab("/%s", "%s ❯", args['next'], { if_nil = 'blank', width = '105px' })
return tabview:tostring()
return tabview:tostring()

Revision as of 01:28, 15 August 2021

Documentation for this module may be created at Module:Chapter tabs/doc

local getArgs = require('Module:Arguments').getArgs
local builder = require('Module:TabviewBuilder')
local p = {}

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

	local tabview = builder.new(
		args['base'],
		{
			['gap'] = '15px',
			['justify-content'] = 'center'
		}
	)
	
	tabview
		:addOneArgTab("/%s", "❮ %s", args['prev'], { if_nil = 'blank', width = '105px' })
		:addTab("", "All Chapters", { width = '105px' })
		:addOneArgTab("/%s", "%s ❯", args['next'], { if_nil = 'blank', width = '105px' })
	
	return tabview:tostring()
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.