Module:Navbox

Revision as of 07:20, 22 November 2024 by Ganaram inukshuk (talk | contribs) (Created page with "-- 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation[view] [edit] [history] [purge]
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.

On modules, you can include local navbox = require("Module:Navbox")._navbox to create a navbox.


Introspection summary for Module:Navbox 
Functions provided (2)
Line Function Params
11 _navbox (main) (title, rows)
18 navbox (args)
Lua modules required (0)
Variable Module Functions used

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