Module:Navbox
- This module implements a metatemplate, and may be invoked by templates using its corresponding template Template:Navbox, or used directly from other modules.
Module:Navbox is a module that implements the {{Navbox}} template. Navbox templates can be made by using the template or by calling the _navbox function from another module.
On templates, you can create a navbox by using {{Navbox}}, which calls this module's wrapper function.
local navbox = require("Module:Navbox")._navbox to create a navbox.
| Introspection summary for Module:Navbox | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||
No function descriptions were provided. The Lua code may have further information.
-- 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
function p._navbox(title, rows)
end
-- Navbox to be #invoke'd
-- Only supports one level of headers
function p.navbox(args)
end
return p