Module:TabVariables

From Leaguepedia | League of Legends Esports Wiki
Jump to: navigation, search

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

local util_vars = require("Module:VarsUtil")

-- variables for TabsHeader metadata
-- may be retrieved for use in Cargo metadata

local p = {}

function p.setName(name)
	util_vars.setVar('thisTab', name)
end

function p.setIndex(num)
	util_vars.setVar('tabThis', num)
end

function p.getName()
	return util_vars.getVar('thisTab')
end

function p.getIndex()
	return util_vars.getVar('tabThis')
end

return p