Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Home
Random page
Pages on topics near you
Recent changes
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Navbox/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Technical details == * The {{Navbar|1={{NAMESPACE}}:{{BASEPAGENAME}}|mini=on}} links are produced by [[Template:Navbar]]; if you have questions about them, it is probably best to ask at [[Template talk:Navbar|its talk page]]. * The two-pixel-wide border between groups and lists is drawn using the {{Code|border-left:|css}} property of the list cells. Thus, if you wish to change the background color of the template (for example {{Parameter|bodystyle|background-color: purple;}}), then you'll need to make the {{Code|border-left-color:|css}} property for all list parameters have the same value (i.e. {{Parameter|liststyle|border-left-color: purple;}}). If you wish to have a border around each list cell, then the 2px border between the list cells and group cells will disappear; you'll have to come up with your own solution. * Adjacent navboxes have only a one-pixel-wide border between them; if you set the top or bottom margin with the {{Parameter|style}} or {{Parameter|bodystyle}} parameters, then this will not work. * The default {{Code|margin-left:|css}} and {{Code|margin-right:|css}} properties of the outer navbox table are set to {{Code|auto|css}}. If you wish to use navbox as a float, you will need to manually set the margin-* property values because the auto value is incompatible with the float property. For example, add the following code to use the navbox as a float: {{Parameter|bodystyle|float: right; margin-left: 1em; margin-right: 0; width: 22em;}} * Navbox templates, including this one, are a major contributor to the [[Help:Template limits|post-expand include size]] of pages, and can cause pages to exceed the limit and not render correctly. There are a multiple known methods for mitigating this. ** {{Template link general|code=on|{{ROOTPAGENAME}}}} can be replaced with {{Module link expanded|Navbox|navbox}}, which approximately halves the include size. ** Nesting other templates inside of a navbox can cause the include size to increase by a factor of two or more. Using the inline child syntax documented at {{Section link|#Child navboxes}} mitigates this, but only for plain navboxes, navboxes with columns and navboxes with collapsible groups (but not any other navbox types). === Copying to other wikis === If you are trying to copy [[Template:Navbox]] to your local wiki, be aware that there are several prerequisites that must be installed or copied over as well: * The [[mediawikiwiki:Special:MyLanguage/Extension:Scribunto|Scribunto]] and [[mediawikiwiki:Special:MyLanguage/Extension:TemplateStyles|TemplateStyles]] extensions must be installed and activated. * [[Module:Navbox]] and its module and TemplateStyles dependencies, listed at [[Module:Navbox/doc]] * Optionally, the JavaScript code that enables support for the {{Code|mw-collapsible|css}} class states (autocollapse, innercollapse and outercollapse) may be copied from [[MediaWiki:Common.js]], if dynamic collapsing is desired. === Navbox documentation === {{Ombox|type=notice|text=Most templates built using {{Template link general|Navbox}} don't require a unique documentation subpage, but rather should transclude {{Template link general|Navbox documentation}} in lieu of the generic {{Template link general|Documentation}} template.}} === Tracking categories === * {{Category link with count|Navbox orphans}} * {{Category link with count|Navboxes using background colours}} * {{Category link with count|Navboxes using borders}} * {{Category link with count|Navigational boxes without horizontal lists}} * {{Category link with count|Potentially illegible navboxes}}
Summary:
Please note that all contributions to Wikifacta are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License. A few of Wikifacta's pages are from Wikipedia.org's Mainspace and Draftspace. (see
Wikifacta:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template
:
Navbox/doc
(section)
Add topic