This page will only parse completely when it is included in another page.

This template allows a [brwiki="Templates"]navigational template[/brwiki] to be set up relatively quickly by supplying it one or more lists of links. It comes equipped with default styles that should work for most navigational templates. Changing the default styles is not recommended, but is possible. Using this template, or one of its "Navbox suite" sister templates, is highly recommended for standardization of navigational templates, and for ease of use.
[h="2"] Usage [/h]
Please remove the parameters that are left blank.
<pre style="overflow:scroll;">[template]Navbox
|name = [template]subst:PAGENAME[/template]
|title =
|image =
|above =
|group1 =
|list1 =
|group2 =
|list2 =
...
|group20 =
|list20 =
|below =
[/template]</pre>
[h="2"]Parameter list[/h]
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|image = {{{image}}}
|title = {{{title}}}
|above = {{{above}}}
|group1 = {{{group1}}}
|list1 = {{{list1}}}
|group2 = {{{group2}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}} [i]without {{{group3}}}[/i]
|group4 = {{{group4}}}
|list4 = {{{list4}}}
|below = {{{below}}}<br/>See alternate navbox formats under: [wiki="Navbox/doc#Layout of table"][i]Layout of table[/i][/wiki]
[/template]
The navbox uses lowercase parameter names, as shown in the box ([i]at right[/i]). The mandatory [i]name[/i] and [i]title[/i] will create a one-line box if other parameters are omitted.
<br/>
Notice "group1" (etc.) is optional, as are sections named "above/below".
[template]clr[/template]
The basic and most common parameters are as follows (see below for the full list):
[indent]<code>name -</code> the name of the template.[/indent]:<code>title -</code> text in the title bar, such as: &#91;&#91;Widget stuff&#93;&#93;.
[indent]<code>state - autocollapse, uncollapsed, collapsed</code>: the status of box expansion, where "autocollapse" hides stacked navboxes automatically.[/indent]
[indent]<code>titlestyle - </code>a CSS style for the title-bar, such as: <code>background:gray;</code>[/indent]:<code>groupstyle - </code>a CSS style for the group-cells, such as: <code>background:#eee;</code>
[indent]<code>image - </code>an optional right-side image (coded as the whole image tag: &#91;&#91;Image:XX.jpg&#124;90px&#93;&#93; ).[/indent]:<code>imageleft - </code>an optional left-side image (code the same was as the "image" parameter).
[indent]<code>above - </code>text to appear above the group/list section (could be a list of overall wikilinks).[/indent]
[indent]<code>group<sub>n</sub> - </code>the left-side text before list-n (if group-n omitted, list-n starts at left of box).[/indent]:<code>list<sub>n</sub> - </code>text listing wikilinks, often separated by middot templates, such as: [<font/>[A]]<code>{<font/>{·}}</code> [<font/>[B]]
[indent]<code>below - </code>optional text to appear below the group/list section.[/indent]
Further details, and complex restrictions, are explained below under section [i][wiki="Navbox/doc#Parameter descriptions"]Parameter descriptions[/wiki][/i]. See some alternate navbox formats under: [wiki="Navbox/doc#Layout of table"][i]Layout of table[/i][/wiki].
[h="2"]Parameter descriptions[/h]
The following is a complete list of parameters for using [template]t|Navbox[/template]. In most cases, the only required parameters are <code>name</code>, <code>title</code>, and <code>list1</code>, though [template="Navbox/doc#Child_navboxes"]child navboxes[/template] do not even require those to be set.
[template]t|Navbox[/template] shares numerous common parameter names as its sister templates [template]t|Navbox with columns[/template] and [template]t|Navbox with collapsible groups[/template] for consistency and ease of use. Parameters marked with a cross<sup>[span] style="font-weight:bold;" |
?
[/span]</sup> are common to all three master templates.
[h="3"]Setup parameters[/h]
[indent]; [i]name[/i]<sup>?</sup>[/indent]:: The name of the template, which is needed for the "v[template]·[/template] d[template]·[/template] e" ("view[template]·[/template] discuss[template]·[/template] edit") links to work properly on all pages where the template is used. You can enter <code>&#123;&#123;subst:PAGENAME&#125;&#125;</code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified, and the <code>border</code> parameter is not set.
[indent]; [i]state[/i]<sup>?</sup> [span] style="font-weight:normal;" |
[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]
[/span][/indent]:* 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 [wiki]MediaWiki:Common.js[/wiki].
[indent]* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state.[/indent]:* If set to <code>plain</code>, 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 <small>v ? d ? e</small> links).
[indent]* If set to <code>off</code>, 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 "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden.[/indent]:*If set to anything other than <code>autocollapse</code>, <code>collapsed</code>, <code>plain</code>, or <code>off</code> (such as "uncollapsed"), the navbox will always start out in an expanded state, but have the "hide" button.
[indent] To show the box when standalone (non-included) but then auto-hide contents when in an article, put "uncollapsed" inside <noinclude> tags:[/indent]:* <code>state = </code>&lt;noinclude&gt;uncollapsed&lt;/noinclude&gt;
[indent]* 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.[/indent]
[indent] 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:[/indent]:*In your intermediate template, create a parameter also named "state" as a pass-through like this:
[indent]*<tt>&#124; state &#61; &#123;&#123;&#123;state&lt;includeonly&gt;&#124;yo ur&#95;desired&#95;initial&#95;state&lt;/includeonly&gt;&#125;&#125;&#125;</tt>[/indent]:*The &lt;includeonly&gt;&#124; will make the template expanded when viewing the template page by itself.
[/indent]
[indent]; [i]navbar[/i]<sup>?</sup>[/indent]:: Defaults to <code>Tnavbar</code>. If set to <code>plain</code>, the <small>v ? d ? e</small> links on the left 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 <small>v ? d ? e</small> 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). Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.
[indent]; [i]border[/i]<sup>?</sup>[/indent]:: [i]See section below on using navboxes within one another for examples and a more complete description.[/i] If set to <code>child</code> or <code>subgroup</code>, then the navbox can be used as a borderless child that fits snuggly in another navbox. The border is hidden and there is no padding on the sides of the table, so it fits into the [i]list[/i] area of its parent navbox. If set to <code>none</code>, 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 <code>none</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 1px border. An alternate way to specify the border to be a subgroup style is like this (i.e. use the first unnamed parameter instead of the named [i]border[/i] parameter):
[indent]::<code>&#123;&#123;Navbox&#124;child</code>[/indent]::::<code>...
[indent]::<code>&#125;&#125;</code>[/indent]
[h="3"]Cells[/h]
[indent]; [i]title[/i]<sup>?</sup>[/indent]:: Text that appears centered in the top row of the table. It is usually the template's topic, i.e. a succinct description of the body contents. This should be a single line, but if a second line is needed, use <code>&#123;&#123;&#45;&#125;&#125;</code> to ensure proper centering. This parameter is technically not mandatory, but using [template]t|Navbox[/template] is rather pointless without a title.
[indent]; [i]group<sub>n</sub>[/i][/indent]:: (i.e. [i]group1[/i], [i]group2[/i], etc.) If specified, text appears in a header cell displayed to the left of [i]list<sub>n</sub>[/i]. If omitted, [i]list<sub>n</sub>[/i] uses the full width of the table.
[indent]; [i]list<sub>n</sub>[/i]<sup>?</sup>[/indent]:: (i.e. [i]list1[/i], [i]list2[/i], etc.) The body of the template, usually a list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within <code>&lt;div&gt; &lt;/div&gt;</code>. At least one [i]list[/i] parameter is required; each additional [i]list[/i] is displayed in a separate row of the table. Each [i]list<sub>n</sub>[/i] may be preceded by a corresponding [i]group<sub>n</sub>[/i] parameter, if provided (see below).
[indent]; [i]image[/i]<sup>?</sup>[/indent]:: An image to be displayed in a cell below the title and to the right of the body (the groups/lists). For the image to display properly, the [i]list1[/i] parameter must be specified. The [i]image[/i] parameter accepts standard wikicode for displaying an image, i.e.
[indent]:: <code>image &#61; &#91;&#91;Image:Example.jpg&#124;100px&#93;&#93 ;</code>[/indent]
[indent]; [i]imageleft[/i]<sup>?</sup>[/indent]:: An image to be displayed in a cell below the title and to the left of the body (lists). For the image to display properly, the [i]list1[/i] parameter must be specified and no groups can be specified. The [i]imageleft[/i] parameter accepts standard wikicode for displaying an image, i.e.
[indent]:: <code>imageleft &#61; &#91;&#91;Image:Example.jpg&#124;100px&#93;&#93 ;</code>[/indent]
[indent]; [i]above[/i]<sup>?</sup>[/indent]:: A full-width cell displayed between the titlebar and first group/list, i.e. [i]above[/i] the template's body (groups, lists and image). In a template without an image, [i]above[/i] behaves in the same way as the [i]list1[/i] parameter without the [i]group1[/i] parameter.
[indent]; [i]below[/i]<sup>?</sup>[/indent]:: A full-width cell displayed [i]below[/i] the template's body (groups, lists and image). In a template without an image, [i]below[/i] behaves in the same way as the template's final [i]list<sub>n</sub>[/i] parameter without a [i]group<sub>n</sub>[/i] parameter. For an example of the [i]below[/i] parameter in use, see [template]t|Lists of the provinces and territories of Canada[/template].
[h="3"]Style parameters[/h]
Styles are generally not recommended as to maintain consistency among templates and pages in Wikipedia. However, the option to modify styles is given.
[indent]; [i]style[/i]<sup>?</sup>[/indent]:: Specifies [wiki="wikipedia:Cascading Style Sheets"]CSS[/wiki] styles to apply to the template body. The parameter [i]bodystyle[/i] also does the example same thing and can be used in place of this [i]style[/i] parameter. This option should be used sparingly as it can lead to visual inconsistencies. Examples:
[indent]:: <code>style = background:#[i]nnnnnn[/i];</code>[/indent]::: <code>style = width:[i]N[/i]&nbsp;[em/%/px or width:auto];</code>
[indent]:: <code>style = float:[[i]left/right/none[/i]];</code>[/indent]::: <code>style = clear:[[i]right/left/both/none[/i]];</code>
[indent]; [i]basestyle[/i]<sup>?</sup>[/indent]:: CSS styles to apply to the [i]title[/i], [i]above[/i], [i]below[/i], and [i]group[/i] cells all at once. The style are not applied to [i]list[/i] cells. This is convenient for easily changing the basic color of the navbox without having to repeat the style specifications for the different parts of the navbox. Examples:
[indent]:: <code>basestyle = background:lightskyblue;</code>[/indent]
[indent]; [i]titlestyle[/i]<sup>?</sup>[/indent]:: CSS styles to apply to [i]title[/i], most often the titlebar's background color:
[indent]:: <code>titlestyle &#61; background:[i]#nnnnnn[/i];</code>[/indent]::: <code>titlestyle &#61; background:[i]name[/i];</code>
[indent]; [i]groupstyle[/i][/indent]:: CSS styles to apply to the [i]groupN[/i] cells. This option overrides any styles that are applied to the entire table. Examples:
[indent]:: <code>groupstyle = background:#[i]nnnnnn[/i];</code>[/indent]::: <code>groupstyle = text-align:[[i]left/center/right[/i]];</code>
[indent]:: <code>groupstyle = vertical-align:[[i]top/middle/bottom[/i]];</code>[/indent]
[indent]; [i]group<sub>n</sub>style[/i][/indent]:: CSS styles to apply to a specific group, in addition to any styles specified by the [i]groupstyle[/i] parameter. This parameter should only be used when absolutely necessary in order to maintain standardization and simplicity. Examples:
[indent]:: <code>group3style = background:red;color:white;</code>[/indent]
[indent]; [i]liststyle[/i]<sup>?</sup>[/indent]:: CSS styles to apply to all lists. Overruled by the [i]oddstyle[/i] and [i]evenstyle[/i] parameters (if specified) below.
[indent]; [i]list<sub>n</sub>style[/i]<sup>?</sup>[/indent]:: CSS styles to apply to a specific group, in addition to any styles specified by the [i]groupstyle[/i] parameter. This parameter should only be used when absolutely necessary in order to maintain standardization and simplicity. Examples:
[indent]:: <code>list5style = background:#ddddff;</code>[/indent]
[indent]; [i]listpadding[/i]<sup>?</sup>[/indent]:: A number and unit specifying the padding in each [i]list[/i] cell. The [i]list[/i] cells come equipped with a default padding of 0.25em on the left and right, and 0em on the top and bottom. Due to complex technical reasons, simply setting "liststyle=padding:0.5em;" (or any other padding setting) will not work. Examples:
[indent]:: <code>listpadding = 0.5em 0em; </code> (sets 0.5em padding for the left/right, and 0em padding for the top/bottom.)[/indent]::: <code>listpadding = 0em; </code> (removes all list padding.)
[indent]; [i]oddstyle[/i][/indent]:; [i]evenstyle[/i]
[indent]:Applies to odd/even list numbers. Overrules styles defined by [i]liststyle[/i]. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances.[/indent]
[indent]; [i]evenodd[/i] [span] style="font-weight:normal;" |
<code>[swap, even, odd, off]</code>
[/span][/indent]:: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color. Setting to <code>off</code> disables automatic row striping. This advanced parameter should only be used to fix problems when the navbox is being used as a child of another navbox and the stripes do not match up. Examples and a further description can be found in the section on child navboxes below.
[indent]; [i]abovestyle[/i]<sup>?</sup>[/indent]:; [i]belowstyle[/i]<sup>?</sup>
[indent]: CSS styles to apply to the top cell (specified via the [i]above[/i] parameter) and bottom cell (specified via the [i]below[/i] parameter). Typically used to set background color or text alignment:[/indent]::: <code>abovestyle = background:#[i]nnnnnn[/i];</code>
[indent]:: <code>abovestyle = text-align:[[i]left/center/right[/i]];</code>[/indent]
[indent]; [i]imagestyle[/i]<sup>?</sup>[/indent]:; [i]imageleftstyle[/i]<sup>?</sup>
[indent]: CSS styles to apply to the cells where the image/imageleft sits. These styles should only be used in exceptional circumstances, usually to fix width problems if the width of groups is set and the width of the image cell grows too large. Examples:[/indent]::: <code>imagestyle = width:5em;</code>
[h="5"] Default styles [/h]
The style settings listed here are those that editors using the navbox change most often. The other more complex style settings were left out of this list to keep it simple. Most styles are set in [wiki]MediaWiki:Common.css[/wiki].
[indent]<code>bodystyle = background:#fdfdfd; width:100%; vertical-align:middle;</code>[/indent]:<code>titlestyle = background:#ccccff; padding-left:1em; padding-right:1em; text-align:center;</code>
[indent]<code>abovestyle = background:#ddddff; padding-left:1em; padding-right:1em; text-align:center;</code>[/indent]:<code>belowstyle = background:#ddddff; padding-left:1em; padding-right:1em; text-align:center;</code>
[indent]<code>groupstyle = background:#ddddff; padding-left:1em; padding-right:1em; text-align:right;</code>[/indent]:<code>liststyle = background:transparent; text-align:left/center;</code>
[indent]<code>oddstyle = background:transparent;</code>[/indent]:<code>evenstyle = background:#f7f7f7;</code>
Since [i]liststyle[/i] and [i]oddstyle[/i] are transparent odd lists have the color of the [i]bodystyle[/i], which defaults to #fdfdfd (white with a hint of gray). A list has <code>text-align:left;</code> if it has a group, if not it has <code>text-align:center;</code>. Since only [i]bodystyle[/i] has a vertical-align all the others inherit its <code>vertical-align:middle;</code>.
[h="3"]Advanced parameters[/h]
[indent]; [i]titlegroup[/i][/indent]:: This puts a group in the title area, with the same default styles as [i]group<sub>n</sub>[/i]. It should be used only in exceptional circumstances (usually advanced meta-templates) and its use requires some knowledge of the internal code of [template]t|Navbox[/template]; you should be ready to manually set up CSS styles to get everything to work properly if you wish to use it. If you think you have an application for this parameter, it might be best to change your mind, or consult the talk page first.
[indent]; [i]titlegroupstyle[/i][/indent]:: The styles for the titlegroup cell.
[indent]; [i]innerstyle[/i][/indent]:: A very advanced parameter to be used [i]only[/i] for advanced meta-templates employing the navbox. Internally, the navbox uses an outer table to draw the border, and then an inner table for everything else (title/above/groups/lists/below/images, etc.). The [i]style[/i]/[i]bodystyle[/i] parameter sets the style for the outer table, which the inner table inherits, but in advanced cases (meta-templates) it may be necessary to directly set the style for the inner table. This parameter provides access to that inner table so styles can be applied. Use at your own risk.
[h="2"] Layout of table [/h]
Table generated by [template]t|Navbox[/template] [b]without[/b] [i]image[/i], [i]above[/i] and [i]below[/i] parameters
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|liststyle =
|title = {{{title}}}
|group1 = {{{group1}}}
|list1 = {{{list1}}}
|group2 = {{{group2}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}} [i]without {{{group3}}}[/i]
|group4 = {{{group4}}}
|list4 = {{{list4}}}
[/template]
Table generated by [template]t|Navbox[/template] [b]with[/b] [i]image[/i], [i]above[/i] and [i]below[/i] parameters
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|liststyle =
|image = {{{image}}}
|title = {{{title}}}
|above = {{{above}}}
|group1 = {{{group1}}}
|list1 = {{{list1}}}
|group2 = {{{group2}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}} [i]without {{{group3}}}[/i]
|group4 = {{{group4}}}
|list4 = {{{list4}}}
|below = {{{below}}}
[/template]
Table generated by [template]t|Navbox[/template] [b]with[/b] [i]image[/i], [i]imageleft[/i], [i]lists[/i], and [b]without[/b] [i]groups[/i], [i]above[/i], [i]below[/i]
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|liststyle =
|image = {{{image}}}
|imageleft = {{{imageleft}}}
|title = {{{title}}}
|list1 = {{{list1}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}}
|list4 = {{{list4}}}
[/template]
[h="2"] Examples [/h]

[h="3"] No image [/h]
<pre style="overflow:scroll;">
[template]Navbox
| name = Navbox/doc
| title = Barony of [wiki]Dhoesone[/wiki]
| group1 = [wiki]Province[/wiki]s
| list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template] [wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template] [wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
| group2 = Important figures
| list2 = [wiki]Fhiele Dhoesone[/wiki], Baroness of Dhoesone[template]·[/template] [wiki]Rhuimach Taeline[/wiki], Captain General of Dhoesone, Lord of [wiki]Taeline[/wiki][template]·[/template] [wiki]Helaene Dosiere[/wiki], Chancellor of Dhoesone[template]·[/template] [wiki]Clumine Dhoesone[/wiki], Countess of [wiki]Romiene[/wiki][template]·[/template] [wiki]Daeric Dhoesone[/wiki], Count of [wiki]Soniele[/wiki][template]·[/template] [wiki]Thjobald Bjondrig[/wiki], Count of [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Günther Brandt[/wiki], Archdruid of the [wiki]Oaken Grove of Erik[/wiki][template]·[/template] [wiki]James Ardannt[/wiki], [wiki]Haelyn's Bastion of Truth[/wiki][template]·[/template] other [wiki]Interesting people in Dhoesone[/wiki]
| group3 = Organisations
| list3 = [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Andien and Sons[/wiki][template]·[/template] [wiki]Northlands Exchange[/wiki][template]·[/template] [wiki]Northern Reformed Church of Sarimie[/wiki][template]·[/template] [wiki]Haelyn's Bastion of Truth[/wiki][template]·[/template] [wiki]Oaken Grove of Erik[/wiki]
| group4 = Houses and Families
| list4 = need to be added...
[/template]
</pre>
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
| name = Navbox/doc
| title = Barony of [wiki]Dhoesone[/wiki]
| group1 = [wiki]Province[/wiki]s
| list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template] [wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template] [wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
| group2 = Important figures
| list2 = [wiki]Fhiele Dhoesone[/wiki], Baroness of Dhoesone[template]·[/template] [wiki]Rhuimach Taeline[/wiki], Captain General of Dhoesone, Lord of [wiki]Taeline[/wiki][template]·[/template] [wiki]Helaene Dosiere[/wiki], Chancellor of Dhoesone[template]·[/template] [wiki]Clumine Dhoesone[/wiki], Countess of [wiki]Romiene[/wiki][template]·[/template] [wiki]Daeric Dhoesone[/wiki], Count of [wiki]Soniele[/wiki][template]·[/template] [wiki]Thjobald Bjondrig[/wiki], Count of [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Günther Brandt[/wiki], Archdruid of the [wiki]Oaken Grove of Erik[/wiki][template]·[/template] [wiki]James Ardannt[/wiki], [wiki]Haelyn's Bastion of Truth[/wiki][template]·[/template] other [wiki]Interesting people in Dhoesone[/wiki]
| group3 = Organisations
| list3 = [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Upper Anuire Traders[/wiki][template]·[/template] [wiki]Andien and Sons[/wiki][template]·[/template] [wiki]Northlands Exchange[/wiki][template]·[/template] [wiki]Northern Reformed Church of Sarimie[/wiki][template]·[/template] [wiki]Haelyn's Bastion of Truth[/wiki][template]·[/template] [wiki]Oaken Grove of Erik[/wiki]
| group4 = Houses and Families
| list4 = need to be added...
[/template]
[h="3"] With image, without groups [/h]
<pre style="overflow:scroll;">
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|title = [wiki]Province[/wiki]s of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|120px|Arms of Dhoesone[/image]
|list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template]
[wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template]
[wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
[/template]
</pre>
[template]Navbox
|name = Navbox/doc
|state = uncollapsed
|title = [wiki]Province[/wiki]s of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|120px|Arms of Dhoesone[/image]
|list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template]
[wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template]
[wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
[/template]
[h="3"] With two images, without groups, multiple lists [/h]
<pre style="overflow:scroll;">
[template]Navbox
|name = Navbox/doc
|title = Barony of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|80px[/image]
|imageleft = [image]Map of Dhoesone.jpg|80px[/image]
|list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki]
|list2 = [wiki]Hidaele[/wiki][template]·[/template] [wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki]
|list3 = [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki]
|list4 = [wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
[/template]
</pre>
[template]Navbox
|name = Navbox/doc
|title = Barony of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|80px[/image]
|imageleft = [image]Map of Dhoesone.jpg|80px[/image]
|list1 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki]
|list2 = [wiki]Hidaele[/wiki][template]·[/template] [wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki]
|list3 = [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki]
|list4 = [wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
[/template]
[h="3"] With image, groups, above, below [/h]
<pre style="overflow:scroll;">
[template]Navbox
|name = Navbox/doc
|title = Barony of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|80px[/image]
|above = Above text goes here
|group1 = Cerilia
|list1 = Anuire
|group2 = Area
|list2 = [wiki]Northern Marches[/wiki]
|group3 = Provinces
|list3 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template]
[wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template]
[wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
|group4 = etc etc..
|list4 = [wiki]Some Link[/wiki][template]·[/template] [wiki]Some Link[/wiki]
|below = Website: [url="http://www.birthright.net/"]www.birthright.net[/url]
[/template]
</pre>
[template]Navbox
|name = Navbox/doc
|title = Barony of [wiki]Dhoesone[/wiki]
|image = [image]Dhoesone.png|80px[/image]
|above = Above text goes here
|group1 = Cerilia
|list1 = Anuire
|group2 = Area
|list2 = [wiki]Northern Marches[/wiki]
|group3 = Provinces
|list3 = [wiki]Bjondrig[/wiki][template]·[/template] [wiki]Dharilein[/wiki][template]·[/template] [wiki]Giant's Fastness[/wiki][template]·[/template] [wiki]Hidaele[/wiki][template]·[/template]
[wiki]Nolien[/wiki][template]·[/template] [wiki]Riveside[/wiki][template]·[/template] [wiki]Romiene[/wiki][template]·[/template] [wiki]Ruidewash[/wiki][template]·[/template] [wiki]Sidhuire[/wiki][template]·[/template]
[wiki]Soniele[/wiki][template]·[/template] [wiki]Sonnelind[/wiki][template]·[/template] [wiki]Tradebhein[/wiki]
|group4 = etc etc..
|list4 = [wiki]Some Link[/wiki][template]·[/template] [wiki]Some Link[/wiki]
|below = Website: [url="http://www.birthright.net/"]www.birthright.net[/url]
[/template]
[h="2"]Child navboxes[/h]
It is possible to place multiple navboxes within a single border with the use of the [i]border[/i] parameter, or by specifying the first parameter to be "child". The basic code for doing this is as follows (which adds a subgroup for the first group/list area):
<pre style="overflow:scroll;">
[template]Navbox
|name = [template]subst:PAGENAME[/template]
|title = Title
|group1 = [optional]
|list1 = [template]Navbox|child
...child navbox parameters...
[/template]
...
[/template]
</pre>
[h="3"]Subgroups example[/h]
[template]main|Template:Navbox subgroup[/template]
This example shows how subgroups can be used. It is recommended that one uses [template]t|Navbox subgroup[/template], but the same result can be reached by using [template]t|Navbox[/template] with <code>border = child</code> or the first unnamed parameter set to <code>child</code>. Note that the [i]evenodd[/i] parameter is used to reverse striping in some of the subgroups in order to get all of the stripes to line up properly. If you wish to remove the striping altogether, you can set <code>liststyle = background:transparent;</code> in each of the navboxes.
<div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:324px;">&#123;&#123;navbox<br />&#124;name&#61;Cloth<br />&#124;title&#61;&#91;&#91;Cloth&#93;&#93;<br />&#124;state&#61;uncollapsed<br />&#124;group1&#61;Cloths<br />&#124;list1&#61;<br /> &#123;&#123;Navbox&#124;child<br /> &#124;group1&#61;&#123;&#123;wow&#45;inline&#125;& #125;<br /> &#124;list1&#61;&#91;&#91;Linen Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Wool Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Silk Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Mageweave Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Runecloth&#93;&#93;&#123;&#123;·&#125;&# 125; &#91;&#91;Felcloth&#93;&#93;&#123;&#123;·&#125;&#1 25; &#91;&#91;Mooncloth&#93;&#93;<br /> &#124;group2&#61;&#123;&#123;bc&#45;inline&#125;&# 125;<br /> &#124;list2&#61;&#91;&#91;Netherweave Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Spellcloth&#93;&#93;&#123;&#123;·&#125;& #125; &#91;&#91;Shadowcloth&#93;&#93;&#123;&#123;·&#125; &#125; &#91;&#91;Primal Mooncloth&#93;&#93;<br /> &#124;group3&#61;&#123;&#123;wotlk&#45;inline&#125 ;&#125;<br /> &#124;list3&#61;&#91;&#91;Frostweave Cloth&#93;&#93;<br /> &#125;&#125;<br />&#124;group2&#61;Bolts<br />&#124;list2&#61;<br /> &#123;&#123;Navbox&#124;child<br /> &#124;group1&#61;&#123;&#123;wow&#45;inline&#125;& #125;<br /> &#124;list1&#61;&#91;&#91;Bolt of Linen Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Woolen Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Silk Cloth&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Mageweave&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Runecloth&#93;&#93;<br /> &#124;group2&#61;&#123;&#123;bc&#45;inline&#125;&# 125;<br /> &#124;list2&#61;&#91;&#91;Bolt of Netherweave&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Imbued Netherweave&#93;&#93;&#123;&#123;·&#125;&#125; &#91;&#91;Bolt of Soulcloth&#93;&#93;<br /> &#124;group3&#61;&#123;&#123;wotlk&#45;inline&#125 ;&#125;<br /> &#124;list3&#61;<br /> &#125;&#125;<br />&#125;&#125;</pre></div>===Multiple show/hides in a single container===
[template]main|Template:Navbox with collapsible groups[/template]
The example below is generated using a regular navbox for the main container, then its list1, list2, and list3 parameters each contain another navbox, with <code>border = child</code> set. Note that each of the child navboxes has its own VDE navbar; these could be hidden using <code>navbar = plain</code> for each of them, or by just leaving out the [i]name[/i] parameter (child navboxes do not require the name parameter to be set, unlike regular navoxes).
[template]Navbox
|name = Navbox/doc
|title = Continent of [b][wiki]Cerilia[/wiki][/b]
|state = uncollapsed
|list1 = [template]Navbox|child
|title = [wiki]Anuire[/wiki]
|group1 = [wiki]Northern Marches[/wiki]
|list1 = [wiki]Dhoesone[/wiki][template]·[/template] [wiki]The Gorgon's Crown[/wiki][template]·[/template] [wiki]Tuarhievel[/wiki][template]·[/template] [wiki]Cariele[/wiki][template]·[/template] [wiki]The Five Peaks[/wiki][template]·[/template] [wiki]Markazor[/wiki][template]·[/template] [wiki]Mur-Kilad[/wiki][template]·[/template] [wiki]Thurazor[/wiki]
|group2 = [wiki]Heartlands[/wiki]
|list2 = [wiki]Avanil[/wiki][template]·[/template] [wiki]Ghoere[/wiki][template]·[/template] [wiki]Mhoried[/wiki][template]·[/template] [wiki]Tuornen[/wiki][template]·[/template] [wiki]Alamie[/wiki][template]·[/template] [wiki]The Imperial City[/wiki][template]·[/template] [wiki]Elinie[/wiki][template]·[/template] [wiki]Endier[/wiki]
[/template]
|list2 = [template]Navbox|child
|title = [wiki]Brechtür[/wiki]
|group1 = [wiki]Northern Marches[/wiki]
|list1 = [wiki]Dhoesone[/wiki][template]·[/template] [wiki]The Gorgon's Crown[/wiki][template]·[/template] [wiki]Tuarhievel[/wiki][template]·[/template] [wiki]Cariele[/wiki][template]·[/template] [wiki]The Five Peaks[/wiki][template]·[/template] [wiki]Markazor[/wiki][template]·[/template] [wiki]Mur-Kilad[/wiki][template]·[/template] [wiki]Thurazor[/wiki]
|group2 = [wiki]Heartlands[/wiki]
|list2 = [wiki]Avanil[/wiki][template]·[/template] [wiki]Ghoere[/wiki][template]·[/template] [wiki]Mhoried[/wiki][template]·[/template] [wiki]Tuornen[/wiki][template]·[/template] [wiki]Alamie[/wiki][template]·[/template] [wiki]The Imperial City[/wiki][template]·[/template] [wiki]Elinie[/wiki][template]·[/template] [wiki]Endier[/wiki]
[/template]
|list3 = [template]Navbox|child
|title = [wiki]Khinasi[/wiki]
|group1 = [wiki]Northern Marches[/wiki]
|list1 = [wiki]Dhoesone[/wiki][template]·[/template] [wiki]The Gorgon's Crown[/wiki][template]·[/template] [wiki]Tuarhievel[/wiki][template]·[/template] [wiki]Cariele[/wiki][template]·[/template] [wiki]The Five Peaks[/wiki][template]·[/template] [wiki]Markazor[/wiki][template]·[/template] [wiki]Mur-Kilad[/wiki][template]·[/template] [wiki]Thurazor[/wiki]
|group2 = [wiki]Heartlands[/wiki]
|list2 = [wiki]Avanil[/wiki][template]·[/template] [wiki]Ghoere[/wiki][template]·[/template] [wiki]Mhoried[/wiki][template]·[/template] [wiki]Tuornen[/wiki][template]·[/template] [wiki]Alamie[/wiki][template]·[/template] [wiki]The Imperial City[/wiki][template]·[/template] [wiki]Elinie[/wiki][template]·[/template] [wiki]Endier[/wiki]
[/template]
|list4 = [template]Navbox|child
|title = [wiki]Rjurik[/wiki]
|group1 = [wiki]Northern Marches[/wiki]
|list1 = [wiki]Dhoesone[/wiki][template]·[/template] [wiki]The Gorgon's Crown[/wiki][template]·[/template] [wiki]Tuarhievel[/wiki][template]·[/template] [wiki]Cariele[/wiki][template]·[/template] [wiki]The Five Peaks[/wiki][template]·[/template] [wiki]Markazor[/wiki][template]·[/template] [wiki]Mur-Kilad[/wiki][template]·[/template] [wiki]Thurazor[/wiki]
|group2 = [wiki]Heartlands[/wiki]
|list2 = [wiki]Avanil[/wiki][template]·[/template] [wiki]Ghoere[/wiki][template]·[/template] [wiki]Mhoried[/wiki][template]·[/template] [wiki]Tuornen[/wiki][template]·[/template] [wiki]Alamie[/wiki][template]·[/template] [wiki]The Imperial City[/wiki][template]·[/template] [wiki]Elinie[/wiki][template]·[/template] [wiki]Endier[/wiki]
[/template]
|list5 = [template]Navbox|child
|title = [wiki]Vosgaard[/wiki]
|group1 = [wiki]Northern Marches[/wiki]
|list1 = [wiki]Dhoesone[/wiki][template]·[/template] [wiki]The Gorgon's Crown[/wiki][template]·[/template] [wiki]Tuarhievel[/wiki][template]·[/template] [wiki]Cariele[/wiki][template]·[/template] [wiki]The Five Peaks[/wiki][template]·[/template] [wiki]Markazor[/wiki][template]·[/template] [wiki]Mur-Kilad[/wiki][template]·[/template] [wiki]Thurazor[/wiki]
|group2 = [wiki]Heartlands[/wiki]
|list2 = [wiki]Avanil[/wiki][template]·[/template] [wiki]Ghoere[/wiki][template]·[/template] [wiki]Mhoried[/wiki][template]·[/template] [wiki]Tuornen[/wiki][template]·[/template] [wiki]Alamie[/wiki][template]·[/template] [wiki]The Imperial City[/wiki][template]·[/template] [wiki]Elinie[/wiki][template]·[/template] [wiki]Endier[/wiki]
[/template]
[/template]
[h="3"]Additional examples[/h]
You may find additional examples of complex subgroups and child navboxes at the [template="Navbox/doc/Advanced examples"]advanced navbox examples page[/template] and the [template="Navbox/testcases"]Navbox code test page[/template].
[h="2"]Relationship with other Navbox templates[/h]
This navbox template is specifically designed to work in conjunction two other sister templates: [template]t|Navbox with columns[/template] and [template]t|Navbox with collapsible groups[/template]. All three of these templates share common parameters for consistency and ease of use (such parameters are marked with a <sup>[b]?[/b]</sup> in the complete parameter list above). Most importantly, all three of these templates can each be used as children of one another (by using the <code>border = child</code> parameter, or by specifying the first unnamed parameter to be <code>child</code> (i.e. use <code>&#123;&#123;Navbox&#124;child</code>, <code>&#123;&#123;Navbox with columns&#124;child</code>, or <code>&#123;&#123;Navbox with collapsible groups&#124;child</code>). For examples on how this is done, see the page on [template="Navbox/doc/Advanced examples"]advanced navbox examples[/template].
[h="2"] Technical details [/h]
[list][*]This template uses CSS classes for most of its looks, thus it is fully skinnable.
[/LIST]
[list][*]Internally this meta template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta templates since wiki markup has several drawbacks. For instance it makes it harder to use [wiki="m:Help:ParserFunctions"]parser functions[/wiki] and special characters in parameters.
[/LIST]
[list][*]For more technical details see the [wiki="[var]TALKPAGENAME[/var]"]talk page[/wiki], the CSS classes in [wiki]MediaWiki:common.css[/wiki] and the collapsible table used to hide the box in [wiki]MediaWiki:common.js[/wiki].
[/LIST]
[h="3"]Intricacies[/h]
[list][*]The 2px wide border between groups and lists is drawn using the border-left property of the list cell. Thus, if you wish to change the background color of the template (for example <code>bodystyle = background:purple;</code>), then you'll need to make the border-left-color match the background color (i.e. <code>liststyle = border-left-color:purple;</code>). 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 you're own solution.
[/LIST]
[list][*]The list cell width is initially set to 100%. Thus, if you wish to manually set the width of group cells, you'll need to also specify the liststyle to have width:auto. If you wish to set the group width and use images, it's up to you to figure out the CSS in the groupstyle, liststyle, imagestyle, and imageleftstyle parameters to get everything to work correctly. Example of setting group width:
[/LIST]
[indent]:<code>groupstyle = width:10em;</code>[/indent]::<code>liststyle = width:auto;</code>
[list][*]Adjacent navboxes have only a 1 pixel border between them (except in IE6, which doesn't support the necessary CSS). If you set the top or bottom margin of <code>style/bodystyle</code>, then this will not work.
[/LIST]
[h="2"] See also [/h]
[list][*] [template]t|Navbox with columns[/template] &ndash; Allows columns instead of groups/lists
[*] [template]t|Navbox with collapsible groups[/template] &ndash; Another variation.
[*] [wiki="wikipedia:Wikipedia:Line break handling"]Line break handling[/wiki] &ndash; The how-to guide about how to handle word wraps (line breaks) on Wikipedia, such as the wrapping of the link lists used in navboxes.
[*] [template]t|Nowrap begin[/template] &ndash; The recommended format for adding bullets, pipes, or dashes between list items. The page describes how to go about using them with proper wrapping.
[*] [template]t|Nobold[/template] &ndash; To display text at normal font-weight within a context where the default font-weight is bold, e.g. header cells in tables.
[/LIST]

[top]Pages That Use This Template

The following pages include this template:


Tags for this Page

Similar Pages

  1. Navbox with columns rows/doc
    By BRadmin in forum Template
    Comments: 0
    Last Post: 12-08-2008, 08:08 PM
  2. Navbox with columns rows
    By BRadmin in forum Template
    Comments: 0
    Last Post: 12-08-2008, 07:24 PM
  3. Navbox with columns/doc
    By Arjan in forum Template
    Comments: 0
    Last Post: 12-05-2008, 01:20 PM
  4. Navbox with columns
    By Arjan in forum Template
    Comments: 0
    Last Post: 12-05-2008, 01:19 PM
  5. Navbox
    By Arjan in forum Template
    Comments: 0
    Last Post: 12-05-2008, 11:51 AM

Bookmarks

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments
BIRTHRIGHT, DUNGEONS & DRAGONS, D&D, the BIRTHRIGHT logo, and the D&D logo are trademarks owned by Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and are used by permission. ©2002-2010 Wizards of the Coast, Inc.