Module:Navbox/doc: Difference between revisions
m Text replacement - "{{todo|inline=1| Documentation}}" to "{{Todo|inline=1| add documentation }}" |
ArrowHead294 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{documentation| | {{documentation| | ||
{{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.}}{{lua|Arguments|Navbar|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. | ||
On other modules, you can include <syntaxhighlight inline lang="lua">local navbox = require("Module:Navbox")._navbox</syntaxhighlight> at or near the top.}} | On other modules, you can include <syntaxhighlight inline lang="lua">local navbox = require("Module:Navbox")._navbox</syntaxhighlight> at or near the top. | ||
{{ | |||
This template allows a {{w|wp:navigational template|navigation box}} to be set up relatively quickly by supplying it with one or more lists of links. Using this template, or one of its "Navbox suite" sister templates, is highly recommended for standardization of navigational templates, and for ease of use. | |||
It comes equipped with default styles that should work for most navigational templates. Changing the default styles is possible, but not recommended. The default styling is modelled off of [http://runescape.wiki/ RuneScape Wiki's] navigation box, instead of {{w|Template:Navbox|Wikipedia's}}. | |||
=== See also === | === See also === | ||
* [[Module:Navbar]] | * [[Module:Navbar]] | ||
}} | }} |