Module:Navbox/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
this module is meant to be invoked directly!
Ganaram inukshuk (talk | contribs)
update documentation
Line 1: Line 1:
{{documentation|
{{documentation|
{{dochead|header='''Note:''' This module may be invoked directly by calling <code>_navbox(args)</code> or by using its corresponding template ([[Template:Navbox]]).}}{{lua|Arguments|Navbar|Yesno}}
{{dochead|header='''Note:''' This module may be invoked directly by calling <code>_navbox(args)</code> or by using its corresponding template ([[Template:Navbox]]).}}{{lua|Arguments|Navbar|Template input utils|Yesno}}


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

Revision as of 08:44, 13 October 2025


Note: This module may be invoked directly by calling _navbox(args) or by using its corresponding template (Template:Navbox). This module implements Template:Navbox.

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.

See also