Module documentation[view] [edit] [history] [purge]
Note: While this module should not be invoked directly, the use of its corresponding template (Template:Navbox) is not absolutely necessary.

On other templates that use or generate navigation boxes, you can call _navbox (note the underscore in front). The navbox function (without the underscore) is used by Template:Navbox as a wrapper.

On other modules, you can include local navbox = require("Module:Navbox")._navbox at or near the top.

This template allows a navigation box to be set up relatively quickly by supplying it with one or more lists of links. It comes equipped with default styles that should work for most navigational templates. Changing the default styles is possible, but not recommended. The default styling for our navigation boxes is modelled off of RuneScape Wiki's navigation box, instead of Wikipedia's.

See also


-- Page is following provisonal style guide: User:Ganaram_inukshuk/Provisional_style_guide_for_Lua
-- Loosely modeled off of Runescape Wiki's navbox, not Wikipedia's

local p = {}


-- Navbox to be called by other modules
-- Rows is a jagged array where:
-- - If a subtable has one entry, it's for a headerless row
-- - If a subtable has two entry, it's a header-data pair; if the second entry
--   is another table, then the data is a subtable
function p._navbox(title, rows)
	
	
end

-- Navbox to be #invoke'd
-- Only supports one level of headers
function p.navbox(args)
	
end

return p