Module:Navbar
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Navbar/doc
local config = mw.loadData('Module:Navbox/configuration')
local p = {}
-- Function to get style for a specific navbox
function p.getStyle(name)
return config.styles[name] or config.default
end
-- Example of using getStyle in rendering a navbox
function p.renderNavbox(name)
local styles = p.getStyle(name)
-- Use styles to render the navbox
end
return p