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

Module:Character tabs: Difference between revisions

From Sekaipedia
Content added Content deleted
mNo edit summary
mNo edit summary
Line 5: Line 5:
local args = frame:getParent().args
local args = frame:getParent().args


local tabview = builder.new();
local tabview = builder.new()
args[1] = 'Hatsune Miku'
tabview:addTab(args[1], 'Main')
tabview:addTab(args[1], 'Main')

Revision as of 06:26, 8 July 2021

To generate {{Character tabs}}, invoke using the main function.


local builder = require('Module:Tabview')
local p = {}

function p.main(frame)
	local args = frame:getParent().args

	local tabview = builder.new()
	
	args[1] = 'Hatsune Miku'
	
	tabview:addTab(args[1], 'Main')
		:addTab(string.format("%s/Cards", args[1]), "Cards")
		:addTab(string.format("%s/Profile", args[1]), "Profile")
		:addTab(string.format("%s/Translations", args[1]), "Translations")
		:addTab(string.format("%s/Image Gallery", args[1]), "Gallery")
	
	return tabview:tostring()
end

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