# வார்ப்புரு:Navbox/doc

## Parameter descriptions

### Setup parameters

:; *name**
:: The name of the template, which is needed for the "V&nbsp;• T&nbsp;• E" ("View&nbsp;• Talk&nbsp;• Edit") links to work properly on all pages where the template is used. You can enter <code></code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified, and the <code></code> parameter is not set.
:; *state** <span>[<code>autocollapse, collapsed, expanded, plain, off</code>]</span>
:* Defaults to <code>autocollapse</code>. A navbox with <code>autocollapse</code> 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.
:* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state.
:* If set to <code>expanded</code>, the navbox will always start out in an expanded state.
:* If set to <code>plain</code>, the navbox will always be expanded with no [hide] link on the , and the title will remain centered (by using padding to offset the <small>V&nbsp;• T&nbsp;• E</small> links).
:* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the , but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden.
: To show the box when standalone (non-included) but then auto-hide contents when in an article, put "uncollapsed" inside tags:
:* <code></code>
:* That setting will force the box visible when standalone (even when followed by other boxes), displaying "[hide]" but then auto-collapse the box when stacked inside an article.
: 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:
:* In your intermediate template, create a parameter also named "state" as a pass-through like this:
:* <code></code>
:* The <code>|</code> will make the template expanded when viewing the template page by itself.
::* Example: with autocollapse as the default initial state. Catalan peseta transcludes it and has only one navbox. So the peso navbox shows. Chilean peso has two navboxes. So the peso navbox collapses.
::* Example: with <code></code> as the default initial state. All transcluding articles show the content by default, unless there is a hypothetical article that specifies <code></code> when transcluding.
:* The template can be added to a section after the template definition to explain how to use the <code>state</code> parameter.
:; *navbar**
:: If set to <code>plain</code>, the <span>V&nbsp;• T&nbsp;• E</span> links on the side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Use <code>off</code> to remove the <span>V&nbsp;• T&nbsp;• E</span> links, but not apply padding (this is for advanced use only; the "plain" 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.
:; ***
:: *See later section on using navboxes within one another for examples and a more complete description.* If set to <code>child</code> or <code>subgroup</code>, then the navbox can be used as a borderless child that fits snugly in another navbox. The 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 <code></code>, then the is hidden and padding is removed, and the navbox may be used as a child of another container (do not use the <code></code> option inside of another navbox; similarly, only use the <code>child</code>/<code>subgroup</code> option inside of another navbox). If set to anything else (default), then a regular navbox is displayed with a . An alternate way to specify the to be a subgroup style is like this (i.e. use the first unnamed parameter instead of the named ** parameter):
::: <code></code>
:::: <code>...</code>
::: <code></code>