Module:Navbox/doc: Difference between revisions
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 other templates that use or generate navigation boxes, you can call | 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:Navbar]]. | ||
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.}} | ||
| Line 7: | Line 7: | ||
=== See also === | === See also === | ||
* [[ | * [[Module:Navbar]] | ||
Revision as of 19:03, 6 December 2024
- 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:Navbar.
On modules, you can include local navbox = require("Module:Navbox")._navbox at or near the top. This module implements Template:Navbox.