<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cev-eris.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ANavbox%2Fdoc</id>
	<title>Template:Navbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cev-eris.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ANavbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.cev-eris.com/index.php?title=Template:Navbox/doc&amp;action=history"/>
	<updated>2026-04-20T08:05:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.cev-eris.com/index.php?title=Template:Navbox/doc&amp;diff=2906&amp;oldid=prev</id>
		<title>George: Created page with &quot;==Usage== Please remove the parameters that are left blank.  &lt;pre style=&quot;overflow: auto;&quot;&gt;{{Navbox | name       = {{subst:PAGENAME}}{{subst:void|Don't change anything on this...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cev-eris.com/index.php?title=Template:Navbox/doc&amp;diff=2906&amp;oldid=prev"/>
		<updated>2020-06-27T18:06:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Usage== Please remove the parameters that are left blank.  &amp;lt;pre style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;{{Navbox | name       = {{subst:PAGENAME}}{{subst:void|Don&amp;#039;t change anything on this...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Usage==&lt;br /&gt;
Please remove the parameters that are left blank.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;{{Navbox&lt;br /&gt;
| name       = {{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}&lt;br /&gt;
| title      =&lt;br /&gt;
| listclass  = hlist&lt;br /&gt;
| state      = {{{state|}}}&lt;br /&gt;
&lt;br /&gt;
| above      =&lt;br /&gt;
| image      =&lt;br /&gt;
&lt;br /&gt;
| group1     =&lt;br /&gt;
| list1      =&lt;br /&gt;
&lt;br /&gt;
| group2     =&lt;br /&gt;
| list2      =&lt;br /&gt;
&lt;br /&gt;
| group3     =&lt;br /&gt;
| list3      =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ... --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| below      =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameter list ==&lt;br /&gt;
{{{{PAGENAMETDOC}}&lt;br /&gt;
| name   = Navbox/doc&lt;br /&gt;
| state  = uncollapsed&lt;br /&gt;
| title  = {{{title}}}&lt;br /&gt;
| above  = {{{above}}}&lt;br /&gt;
| image  = {{{image}}}&lt;br /&gt;
| group1 = {{{group1}}}&lt;br /&gt;
| list1  = {{{list1}}}&lt;br /&gt;
| group2 = {{{group2}}}&lt;br /&gt;
| list2  = {{{list2}}}&lt;br /&gt;
| list3  = {{{list3}}} ''without {{{group3}}}''&lt;br /&gt;
| group4 = {{{group4}}}&lt;br /&gt;
| list4  = {{{list4}}}&lt;br /&gt;
| below  = {{{below}}} &amp;lt;br /&amp;gt; See alternate navbox formats under: [[#Layout of table|''Layout of table'']]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The navbox uses lowercase parameter names, as shown in the box (''above''). The required ''name'' and ''title'' will create a one-line box if other parameters are omitted.&lt;br /&gt;
&lt;br /&gt;
Notice &amp;quot;group1&amp;quot; (etc.) is optional, as are sections named &amp;quot;above/below&amp;quot;.&lt;br /&gt;
{{clear}}&lt;br /&gt;
The basic and most common parameters are as follows (see [[#Parameter descriptions|below]] for the full list):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; – the name of the template.&lt;br /&gt;
: &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; – text in the title bar, such as: &amp;lt;nowiki&amp;gt;[[Widget stuff]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
: &amp;lt;code&amp;gt;listclass&amp;lt;/code&amp;gt; – a CSS class for the list cells, usually &amp;lt;code&amp;gt;hlist&amp;lt;/code&amp;gt; for horizontal lists. Alternatively, use bodyclass for the whole box.&lt;br /&gt;
: &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; – controls when a navbox is expanded or collapsed.&lt;br /&gt;
: &amp;lt;code&amp;gt;titlestyle&amp;lt;/code&amp;gt; – a CSS style for the title-bar, such as: &amp;lt;code&amp;gt;background: gray;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;groupstyle&amp;lt;/code&amp;gt; – a CSS style for the group-cells, such as: &amp;lt;code&amp;gt;background: #eee;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;above&amp;lt;/code&amp;gt; – text to appear above the group/list section (could be a list of overall wikilinks).&lt;br /&gt;
: &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt; – an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;XX&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt;.jpg|80px|link=|alt=]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
: &amp;lt;code&amp;gt;imageleft&amp;lt;/code&amp;gt; – an optional left-side image (code the same as the &amp;quot;image&amp;quot; parameter).&lt;br /&gt;
: &amp;lt;code&amp;gt;group&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;lt;/code&amp;gt; – the left-side text before list-n (if group-n omitted, list-n starts at left of box).&lt;br /&gt;
: &amp;lt;code&amp;gt;list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;lt;/code&amp;gt; – text listing wikilinks using a [[Help:Lists|wikilist]] format.&lt;br /&gt;
: &amp;lt;code&amp;gt;below&amp;lt;/code&amp;gt; – optional text to appear below the group/list section.&lt;br /&gt;
&lt;br /&gt;
== Parameter descriptions ==&lt;br /&gt;
The following is a complete list of parameters for using {{tl|Navbox}}.  In most cases, the only required parameters are &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;list1&amp;lt;/code&amp;gt;, though [[Template:Navbox/doc#Child navboxes|child navboxes]] do not even require those to be set.&lt;br /&gt;
&lt;br /&gt;
{{tl|Navbox}} shares numerous common parameter names with its sister templates, {{tl|Navbox with columns}} and {{tl|Navbox with collapsible groups}}, for consistency and ease of use.  Parameters marked with an asterisk (*) are common to all three master templates.&lt;br /&gt;
&lt;br /&gt;
=== Setup parameters ===&lt;br /&gt;
:; ''name''*&lt;br /&gt;
:: The name of the template, which is needed for the &amp;quot;V&amp;amp;nbsp;• T&amp;amp;nbsp;• E&amp;quot; (&amp;quot;View&amp;amp;nbsp;• Talk&amp;amp;nbsp;• Edit&amp;quot;) links to work properly on all pages where the template is used. You can enter &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:PAGENAME}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for this value as a shortcut.  The name parameter is only mandatory if a &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; is specified, and the &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; parameter is not set, and the &amp;lt;code&amp;gt;navbar&amp;lt;/code&amp;gt; parameter is not used to disable the navbar.&lt;br /&gt;
:; ''state''* &amp;lt;span style=&amp;quot;font-weight:normal;&amp;quot;&amp;gt;[&amp;lt;code&amp;gt;autocollapse, collapsed, expanded, plain, off&amp;lt;/code&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
:* Defaults to &amp;lt;code&amp;gt;autocollapse&amp;lt;/code&amp;gt;. A navbox with &amp;lt;code&amp;gt;autocollapse&amp;lt;/code&amp;gt; will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. For the technically minded, see [[MediaWiki:Common.js]].&lt;br /&gt;
:* If set to &amp;lt;code&amp;gt;collapsed&amp;lt;/code&amp;gt;, the navbox will always start out in a collapsed state.&lt;br /&gt;
:* If set to &amp;lt;code&amp;gt;expanded&amp;lt;/code&amp;gt;, the navbox will always start out in an expanded state.&lt;br /&gt;
:* If set to &amp;lt;code&amp;gt;plain&amp;lt;/code&amp;gt;, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered (by using padding to offset the &amp;lt;small&amp;gt;V&amp;amp;nbsp;• T&amp;amp;nbsp;• E&amp;lt;/small&amp;gt; links).&lt;br /&gt;
:* If set to &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered.  This is for advanced use only; the &amp;quot;plain&amp;quot; option should suffice for most applications where the [show]/[hide] button needs to be hidden.&lt;br /&gt;
: To show the box when standalone (non-included) but then auto-hide contents when in an article, put &amp;quot;expanded&amp;quot; inside {{tag|noinclude|p}} tags. This setting will force the box visible when standalone (even when followed by other boxes), displaying &amp;quot;[hide]&amp;quot;, but then it will auto-collapse the box when stacked inside an article:&lt;br /&gt;
:: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;| state =&amp;amp;nbsp;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{tag|noinclude|content=expanded}}&lt;br /&gt;
: Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:&lt;br /&gt;
:* In your intermediate template, create a parameter also named &amp;quot;state&amp;quot; as a pass-through like this:&lt;br /&gt;
:: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;| state = {{{state&amp;lt;includeonly&amp;gt;|your_desired_initial_state&amp;lt;/includeonly&amp;gt;}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:* The {{tag|includeonly|o}}&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; will make the template expanded when viewing the template page by itself.&lt;br /&gt;
::* Example 1: {{tl|Peso}} with ''autocollapse'' as the default initial state. [[Catalan peseta]] transcludes it and has only one navbox; thus, the peso navbox shows. [[Chilean peso]] has more than two navboxes; thus, the peso navbox collapses.&lt;br /&gt;
::* Example 2: {{tl|Historical currencies of Hungary}} with ''expanded'' as the default initial state, as such: &lt;br /&gt;
:::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;| state = {{{state&amp;lt;includeonly&amp;gt;|expanded&amp;lt;/includeonly&amp;gt;}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::All transcluding articles show the content by default, unless there is a hypothetical article that specifies &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{templatename|state=collapsed}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; when transcluding.&lt;br /&gt;
&lt;br /&gt;
::* Example 3: {{tl|Tourism}} with ''collapsed'' as the default initial state, as such: &lt;br /&gt;
:::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;| state = {{{state&amp;lt;includeonly&amp;gt;|collapsed&amp;lt;/includeonly&amp;gt;}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::All transcluding articles will show the template as collapsed by default, but the template will still be uncollapsed when displayed on its own page.&lt;br /&gt;
:* The template {{tl|Collapsible option}} explains how to use the &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter. It can be added to a {{tag|noinclude|p}} section after the template definition or to the instructions on the {{tl|documentation subpage}}.&lt;br /&gt;
:; ''navbar''*&lt;br /&gt;
:: If set to &amp;lt;code&amp;gt;plain&amp;lt;/code&amp;gt;, the &amp;lt;span style=&amp;quot;font-size: 88%;&amp;quot;&amp;gt;V&amp;amp;nbsp;• T&amp;amp;nbsp;• E&amp;lt;/span&amp;gt; links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered.  Use &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt; to remove the &amp;lt;span style=&amp;quot;font-size: 88%;&amp;quot;&amp;gt;V&amp;amp;nbsp;• T&amp;amp;nbsp;• E&amp;lt;/span&amp;gt; links, but not apply padding (this is for advanced use only; the &amp;quot;plain&amp;quot; option should suffice for most applications where a navbar is not desired). It is highly recommended that one not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.&lt;br /&gt;
:; ''border''*&lt;br /&gt;
:: ''See later section on [[#Child navboxes|using navboxes within one another]] for examples and a more complete description.'' If set to &amp;lt;code&amp;gt;child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;subgroup&amp;lt;/code&amp;gt;, then the navbox can be used as a borderless child that fits snugly in another navbox.  The border is hidden and there is no padding on the sides of the table, so it fits into the ''list'' area of its parent navbox. If set to &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;, then the border is hidden and padding is removed, and the navbox may be used as a child of another container (do not use the &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; option inside of another navbox; similarly, only use the &amp;lt;code&amp;gt;child&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;subgroup&amp;lt;/code&amp;gt; option inside of another navbox). If set to anything else (default), then a regular navbox is displayed with a 1px border. An alternate way to specify the border to be a subgroup style is like this (i.e. use the first unnamed par&lt;/div&gt;</summary>
		<author><name>George</name></author>
	</entry>
</feed>