Module:Navbox/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead|header='''Note:''' While this module should not be invoked directly, the use of its corresponding template ([[Template:Navbox]]) is not absolutely necessary.
{{dochead|header='''Note:''' While this module should not be invoked directly, the use of its corresponding template ([[Template:Navbox]]) is not absolutely necessary.


On templates that use or generate navigation boxes, you can call the <code>_navbox</code> (note the underscore in front) helper function.
On templates that use or generate navigation boxes, you can call the <code>_navbox</code> (note the underscore in front) helper function. The wrapper function (<code>navbar</code> without the underscore in front) is used by the template.


On modules, you can include <syntaxhighlight inline lang="lua">local navbox = require("Module:Navbox")._navbox</syntaxhighlight> at or near the top.}}
On modules, you can include <syntaxhighlight inline lang="lua">local navbox = require("Module:Navbox")._navbox</syntaxhighlight> at or near the top.}}

Revision as of 15:37, 6 December 2024

Todo: Documentation

See also