Template:Navbox/doc: Difference between revisions
imported>Administrator m 1 revision imported |
m 1 revision imported |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{ | '''{{tl|Navbox}}''' allows a {{W|Navigation templates|navigational template}} to be set up relatively quickly by supplying it with one or more lists of links. Using this template or {{tl|Navbox with collapsible groups}} is highly recommended for standardization of navigational templates, and for ease of use. | ||
== Usage == | == Usage == | ||
| Line 10: | Line 5: | ||
Please remove the parameters that are left blank. | Please remove the parameters that are left blank. | ||
<pre style="overflow: auto;">{{Navbox | <pre style="overflow: auto;"> | ||
{{Navbox | |||
| name = {{subst:PAGENAME}} | | name = {{subst:PAGENAME}} | ||
| | | title = | ||
| | | image = | ||
| above = | |||
| | | group1 = | ||
| | | list1 = | ||
... | |||
| group20 = | |||
| list20 = | |||
| group20 | |||
| list20 | |||
| below | | below = | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 37: | Line 29: | ||
| name = Navbox/doc | | name = Navbox/doc | ||
| state = uncollapsed | | state = uncollapsed | ||
| image = {{{image}}} | |||
| title = {{{title}}} | | title = {{{title}}} | ||
| above = {{{above}}} | | above = {{{above}}} | ||
| group1 = {{{group1}}} | | group1 = {{{group1}}} | ||
| list1 = {{{list1}}} | | list1 = {{{list1}}} | ||
| group2 = {{{group2}}} | | group2 = {{{group2}}} | ||
| list2 = {{{list2}}} | | list2 = {{{list2}}} | ||
| list3 = {{{list3}}} ''without {{{group3}}}'' | | list3 = {{{list3}}} ''without {{{group3}}}'' | ||
| group4 = {{{group4}}} | | group4 = {{{group4}}} | ||
| list4 = {{{list4}}} | | list4 = {{{list4}}} | ||
| below = {{{below}}} <br /> See alternate navbox formats under: [[#Layout of table|''Layout of table'']] | |||
| below = {{{below}}}<br/>See alternate navbox formats under: [[#Layout of table|''Layout of table'']] | |||
}} | }} | ||
The navbox uses lowercase parameter names, as shown in the box (''at right''). The mandatory ''name'' and ''title'' will create a one-line box if other parameters are omitted. | The navbox uses lowercase parameter names, as shown in the box (''at right''). The mandatory ''name'' and ''title'' will create a one-line box if other parameters are omitted. | ||
Notice "group1" (etc.) is optional, as are sections named "above/below". | Notice "group1" (etc.) is optional, as are sections named "above/below". | ||
The basic and most common parameters are as follows (see below for the full list): | |||
: | |||
: <code> | :<code>name -</code> the name of the template. | ||
: <code> | :<code>title -</code> text in the title bar, such as: <nowiki>[[Widget stuff]]</nowiki>. | ||
:<code>state - off, uncollapsed (default), collapsed</code>: the status of box expansion, where "off" hides collapser completely. | |||
: <code> | :<code>groupBackground - </code>a CSS color for the group-cells, such as: <code>#eee;</code> | ||
: <code>image | :<code>image - </code>an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as <code><nowiki>[[File:</nowiki><var>XX</var><nowiki>.jpg|90px|link=|alt=]]</nowiki></code>. | ||
: <code>group<sub>n</sub> | :<code>above - </code>text to appear above the group/list section (could be a list of overall wikilinks). | ||
: <code>list<sub>n</sub> | |||
: <code>below | :<code>group<sub>n</sub> - </code>the left-side text before list-n (if group-n omitted, list-n starts at left of box). | ||
:<code>list<sub>n</sub> - </code>text listing wikilinks, often separated by middot templates, such as: [<font/>[A]]<code>{<font/>{·}}</code> [<font/>[B]] | |||
:<code>below - </code>optional text to appear below the group/list section. | |||
Further details, and complex restrictions, are explained below under section ''[[#Parameter descriptions|Parameter descriptions]]''. See some alternate navbox formats under section [[#Layout of table|''Layout of table'']]. | |||
== Parameter descriptions == | == Parameter descriptions == | ||
The following is a complete list of parameters for using {{tl|Navbox}}. 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]] do not even require those to be set. | The following is a complete list of parameters for using {{tl|Navbox}}. 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]] do not even require those to be set. | ||
{{tl|Navbox}} shares numerous common parameter names | {{tl|Navbox}} shares numerous common parameter names as its sister template {{tl|Navbox with collapsible groups}} for consistency and ease of use. Parameters marked with an asterisk <nowiki>*</nowiki> are common to all templates. | ||
=== Setup parameters === | === Setup parameters === | ||
; ''name''<nowiki>*</nowiki> | |||
: The name of the template, which is needed for the view, discuss, and edit icon links to work properly on all pages where the template is used. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></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. | |||
; ''state''<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>uncollapsed, collapsed, off</code>]</span> | |||
:* Defaults to <code> | :* Defaults to <code>uncollapsed</code>. | ||
:* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | :* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | ||
:* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right. | |||
:* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right | :* If set to anything other than <code>collapsed</code>, or <code>off</code> (such as <code>uncollapsed</code>), the navbox will always start out in an expanded state, but have the "hide" button. | ||
:* If set to anything other than | |||
: | : To define a default initial state for a navbox that can be overridden in an article: | ||
:* | :* In your intermediate template, create a parameter also named "state" as a pass-through: | ||
:: <tt><nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki></tt> | |||
:* The <nowiki><includeonly>|</nowiki> will expand the template when viewing the template page by itself. | |||
: | |||
:: | |||
: | |||
: Example: {{tl|Absalom navbox}} with autocollapse as the default initial state. [[The Docks]] transcludes it and has only one navbox, so the Absalom navbox shows. [[Absalom]] has two navboxes, so the Absalom navbox collapses. | |||
<!-- No PFW navboxes use expanded as the default | |||
Example: {{tl|Historical currencies of Hungary}} with expanded as the default initial state. All transcluding articles shows the content by default, unless there were an hypothetical article that specifies state = collapsed when transcluding. | |||
--> | |||
=== Cells === | === Cells === | ||
; ''title''<nowiki>*</nowiki> | |||
: 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><nowiki>·</nowiki></code> to ensure proper centering. This parameter is technically not mandatory, but using {{tl|Navbox}} is rather pointless without a title. | |||
; ''group<sub>n</sub>''<nowiki>*</nowiki> | |||
: | : (i.e. ''group1'', ''group2'', etc.) If specified, text appears in a header cell displayed to the left of ''list<sub>n</sub>''. If omitted, ''list<sub>n</sub>'' uses the full width of the table. | ||
; ''groupBackground''<nowiki>*</nowiki> | |||
: | : If specified, changes the background color of the groups of this Navbox and all contained Navboxes. | ||
; ''groupColor''<nowiki>*</nowiki> | |||
: | : If specified, changes the text color of the groups of this Navbox and all contained Navboxes. | ||
; ''list<sub>n</sub>''<nowiki>*</nowiki> | |||
: | : (i.e. ''list1'', ''list2'', etc.) The body of the template, usually a bulleted list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within <code><nowiki><div> </div></nowiki></code>. At least one ''list'' parameter is required; each additional ''list'' is displayed in a separate row of the table. Each ''list<sub>n</sub>'' may be preceded by a corresponding ''group<sub>n</sub>'' parameter, if provided (see below). | ||
; ''image''<nowiki>*</nowiki> | |||
: 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 ''list1'' parameter must be specified. The ''image'' parameter accepts standard wikicode for displaying an image, ''e.g.'': | |||
:: <code><nowiki>[[File:</nowiki><var>XX</var><nowiki>.jpg|90px|link=|alt=]]</nowiki></code> | |||
; ''above''<nowiki>*</nowiki> | |||
: A full-width cell displayed between the titlebar and first group/list, i.e. ''above'' the template's body (groups, lists and image). In a template without an image, ''above'' behaves in the same way as the ''list1'' parameter without the ''group1'' parameter. | |||
; ''below''<nowiki>*</nowiki> | |||
: A full-width cell displayed ''below'' the template's body (groups, lists and image). In a template without an image, ''below'' behaves in the same way as the template's final ''list<sub>n</sub>'' parameter without a ''group<sub>n</sub>'' parameter. <!-- For an example of the ''below'' parameter in use, see {{tl|Lists of the provinces and territories of Canada}}. --> | |||
== Layout of table == | |||
Table generated by {{tl|Navbox}} '''without''' ''image'', ''above'', and ''below'' parameters (gray list background color added for illustration only): | |||
{{Navbox | {{Navbox | ||
| name = Navbox/doc | | name = Navbox/doc | ||
| state = uncollapsed | | state = uncollapsed | ||
| title = {{{title}}} | | title = {{{title}}} | ||
| group1 = {{{group1}}} | | group1 = {{{group1}}} | ||
| list1 = {{{list1}}} | | list1 = {{{list1}}} | ||
| group2 = {{{group2}}} | | group2 = {{{group2}}} | ||
| list2 = {{{list2}}} | | list2 = {{{list2}}} | ||
| list3 = {{{list3}}} ''without {{{group3}}}'' | | list3 = {{{list3}}} ''without {{{group3}}}'' | ||
| group4 = {{{group4}}} | | group4 = {{{group4}}} | ||
| list4 = {{{list4}}} | | list4 = {{{list4}}} | ||
}} | }} | ||
Table generated by {{tl|Navbox}} '''with''' ''image'', ''above'' and ''below'' parameters (gray list background color added for illustration only): | |||
{{Navbox | {{Navbox | ||
| name = Navbox/doc | | name = Navbox/doc | ||
| state = uncollapsed | | state = uncollapsed | ||
| image = {{{image}}} | | image = {{{image}}} | ||
| title = {{{title}}} | | title = {{{title}}} | ||
| above = {{{above}}} | | above = {{{above}}} | ||
| group1 = {{{group1}}} | | group1 = {{{group1}}} | ||
| list1 = {{{list1}}} | | list1 = {{{list1}}} | ||
| group2 = {{{group2}}} | | group2 = {{{group2}}} | ||
| list2 = {{{list2}}} | | list2 = {{{list2}}} | ||
| list3 = {{{list3}}} ''without {{{group3}}}'' | | list3 = {{{list3}}} ''without {{{group3}}}'' | ||
| group4 = {{{group4}}} | | group4 = {{{group4}}} | ||
| list4 = {{{list4}}} | | list4 = {{{list4}}} | ||
| below = {{{below}}} | | below = {{{below}}} | ||
}} | }} | ||
Table generated by {{tl|Navbox}} '''with''' ''image'', ''lists'', and '''without''' ''groups'', ''above'', ''below'' (gray list background color added for illustration only): | |||
Table generated by {{tl|Navbox}} '''with''' ''image | |||
{{Navbox | {{Navbox | ||
| name = Navbox/doc | | name = Navbox/doc | ||
| state = uncollapsed | | state = uncollapsed | ||
| | | image = {{{image}}} | ||
| | | title = {{{title}}} | ||
| list1 = {{{list1}}} | |||
| list1 = | |||
| list2 = {{{list2}}} | |||
| list2 = | |||
| list3 = {{{list3}}} | |||
| list3 = | |||
| list4 = {{{list4}}} | |||
| list4 = | }} | ||
== Examples == | |||
=== | === No image === | ||
<pre style="overflow: auto;"> | <pre style="overflow:auto;"> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| title = [[ | | title = The Seven Realms of [[Thassilon]] | ||
| image = | |||
| image = | |||
| list1 = | | list1 = | ||
* [[ | * [[Bakrakhan]], realm of Wrath | ||
* [[ | * [[Cyrusian]], realm of Pride | ||
* [[ | * [[Edasseril]], realm of Envy | ||
* [[ | * [[Eurythnia]], realm of Lust | ||
* [[ | * [[Gastash]], realm of Gluttony | ||
* [[ | * [[Haruka]], realm of Sloth | ||
* [[ | * [[Shalast]], realm of Greed | ||
}} | }} | ||
</pre> | </pre> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| title = [[ | | title = The Seven Realms of [[Thassilon]] | ||
| image = | |||
| image = | |||
| list1 = | | list1 = | ||
* [[ | * [[Bakrakhan]], realm of Wrath | ||
* [[ | * [[Cyrusian]], realm of Pride | ||
* [[ | * [[Edasseril]], realm of Envy | ||
* [[ | * [[Eurythnia]], realm of Lust | ||
* [[ | * [[Gastash]], realm of Gluttony | ||
* [[ | * [[Haruka]], realm of Sloth | ||
* [[ | * [[Shalast]], realm of Greed | ||
}} | }} | ||
=== With | === With image, without groups === | ||
<pre style="overflow: auto;"> | <pre style="overflow:auto;"> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| title = [[ | | title = The Seven Realms of [[Thassilon]] | ||
| image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]] | |||
| image = [[File: | |||
| | | list1 = | ||
* [[ | * [[Bakrakhan]], realm of Wrath | ||
* [[ | * [[Cyrusian]], realm of Pride | ||
* [[Edasseril]], realm of Envy | |||
* [[Eurythnia]], realm of Lust | |||
* [[ | * [[Gastash]], realm of Gluttony | ||
* [[Haruka]], realm of Sloth | |||
* [[Shalast]], realm of Greed | |||
}} | }} | ||
</pre> | </pre> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| title = [[ | | title = The Seven Realms of [[Thassilon]] | ||
| image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]] | |||
| image = [[File: | |||
| | |||
| | | list1 = | ||
* [[ | * [[Bakrakhan]], realm of Wrath | ||
* [[Cyrusian]], realm of Pride | |||
* [[Edasseril]], realm of Envy | |||
* [[Eurythnia]], realm of Lust | |||
* [[Gastash]], realm of Gluttony | |||
* [[Haruka]], realm of Sloth | |||
* [[Shalast]], realm of Greed | |||
}} | }} | ||
=== With image, groups, above, below === | === With image, groups, above, below === | ||
<pre style="overflow: auto;"> | <pre style="overflow:auto;"> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| title = [[ | | title = The Seven Realms of [[Thassilon]] | ||
| image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]] | |||
| above = Listed with their associated sin | |||
| image = [[File: | |||
| group1 = | | group1 = Wrath | ||
| list1 = | | list1 = | ||
* [[ | * [[Bakrakhan]] | ||
| group2 = | | group2 = Pride | ||
| list2 = | | list2 = | ||
* [[ | * [[Cyrusian]] | ||
| group3 = | | group3 = Envy | ||
| list3 = | | list3 = | ||
* [[ | * [[Edasseril]] | ||
| group4 = | | group4 = Lust | ||
| list4 = | | list4 = | ||
* [[ | * [[Eurythnia]] | ||
| group5 = | | group5 = Gluttony | ||
| list5 = | | list5 = | ||
* [[ | * [[Gastash]] | ||
* [[ | |||
| group6 = Sloth | |||
| list6 = | |||
* [[Haruka]] | |||
| group7 = Greed | |||
| list7 = | |||
* [[Shalast]] | |||
| below = | | below = '''See also''': [[Runelords]] | ||
}} | }} | ||
</pre> | </pre> | ||
{{Navbox | {{Navbox | ||
| name | | name = Thassilon navbox | ||
| | | image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]] | ||
| | | title = The Seven Realms of [[Thassilon]] | ||
| above = | | above = Listed with their associated sin | ||
| group1 = | | group1 = Wrath | ||
| list1 = | | list1 = | ||
* [[ | * [[Bakrakhan]] | ||
| group2 = | | group2 = Pride | ||
| list2 = | | list2 = | ||
* [[ | * [[Cyrusian]] | ||
| group3 = | | group3 = Envy | ||
| list3 = | | list3 = | ||
* [[ | * [[Edasseril]] | ||
| group4 = | | group4 = Lust | ||
| list4 = | | list4 = | ||
* [[ | * [[Eurythnia]] | ||
| group5 = | | group5 = Gluttony | ||
| list5 = | | list5 = | ||
* [[ | * [[Gastash]] | ||
| below = | | group6 = Sloth | ||
| list6 = | |||
* [[Haruka]] | |||
| group7 = Greed | |||
| list7 = | |||
* [[Shalast]] | |||
| below = '''See also''': [[Runelords]] | |||
}} | }} | ||
== Child navboxes == | == Child navboxes == | ||
It is possible to place multiple navboxes within a single border with the use of the ''border'' 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:auto;"> | |||
<pre style="overflow: auto;"> | |||
{{Navbox | {{Navbox | ||
| name = {{subst:PAGENAME}} | | name = {{subst:PAGENAME}} | ||
| title = Title | | title = Title | ||
| group1 = [optional] | | group1 = [optional] | ||
| list1 = {{Navbox | | list1 = {{Navbox | ||
...child navbox parameters... | ...child navbox parameters... | ||
}} | |||
... | ... | ||
| Line 581: | Line 349: | ||
</pre> | </pre> | ||
You can nest several levels of navbox to add subgroups to a group: | |||
<pre style="overflow:auto;"> | |||
{{Navbox | {{Navbox | ||
| name = | | name = {{subst:PAGENAME}} | ||
| title = Title | |||
| title = | |||
| group1 = | | group1 = [primary] | ||
| list1 = | | list1 = {{Navbox | ||
| | | group1 = [secondary] | ||
| | | list1 = {{Navbox | ||
| group1 = [tertiary] | |||
| list1 = ... | |||
}} | |||
... | |||
}} | |||
... | |||
}} | |||
</pre> | |||
{{Navbox | {{Navbox | ||
| name = Navbox/doc | | name = Navbox/doc | ||
| title = | | title = Title | ||
| group1 = [primary] | |||
| list1 = {{Navbox | |||
| group1 = [secondary] | |||
| list1 = {{Navbox | |||
| group1 = [tertiary] | |||
| list1 = ... | |||
}} | |||
}} | |||
... | |||
}} | |||
... | |||
}} | }} | ||
=== Multiple show/hides in a single container === | |||
Use {{tl|Navbox with collapsible groups}}. | |||
}} | |||
== Relationship with other Navbox templates == | == Relationship with other Navbox templates == | ||
This navbox template is specifically designed to work in conjunction with | This navbox template is specifically designed to work in conjunction with {{tl|Navbox with collapsible groups}}. Both templates share common parameters for consistency and ease of use (such parameters are marked with a <sup>'''†'''</sup> in the complete parameter list above). Most importantly, all of these templates can each be used as children of one another. | ||
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | |||
Latest revision as of 01:11, 14 February 2025
Template:Tl allows a Template:W to be set up relatively quickly by supplying it with one or more lists of links. Using this template or Template:Tl is highly recommended for standardization of navigational templates, and for ease of use.
Usage[edit source]
Please remove the parameters that are left blank.
{{Navbox
| name = {{subst:PAGENAME}}
| title =
| image =
| above =
| group1 =
| list1 =
...
| group20 =
| list20 =
| below =
}}
Parameter list[edit source]
The navbox uses lowercase parameter names, as shown in the box (at right). The mandatory name and title will create a one-line box if other parameters are omitted.
Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):
name -the name of the template.title -text in the title bar, such as: [[Widget stuff]].state - off, uncollapsed (default), collapsed: the status of box expansion, where "off" hides collapser completely.
groupBackground -a CSS color for the group-cells, such as:#eee;
image -an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as[[File:XX.jpg|90px|link=|alt=]].
above -text to appear above the group/list section (could be a list of overall wikilinks).
groupn -the left-side text before list-n (if group-n omitted, list-n starts at left of box).listn -text listing wikilinks, often separated by middot templates, such as: [[A]]{{·}}[[B]]below -optional text to appear below the group/list section.
Further details, and complex restrictions, are explained below under section Parameter descriptions. See some alternate navbox formats under section Layout of table.
Parameter descriptions[edit source]
The following is a complete list of parameters for using Template:Tl. In most cases, the only required parameters are name, title, and list1, though child navboxes do not even require those to be set.
Template:Tl shares numerous common parameter names as its sister template Template:Tl for consistency and ease of use. Parameters marked with an asterisk * are common to all templates.
Setup parameters[edit source]
- name*
- The name of the template, which is needed for the view, discuss, and edit icon links to work properly on all pages where the template is used. You can enter
{{subst:PAGENAME}}for this value as a shortcut. The name parameter is only mandatory if atitleis specified and theborderparameter is not set.
- state* [
uncollapsed, collapsed, off] -
- Defaults to
uncollapsed. - If set to
collapsed, the navbox will always start out in a collapsed state. - If set to
off, the navbox will always be expanded with no [hide] link on the right. - If set to anything other than
collapsed, oroff(such asuncollapsed), the navbox will always start out in an expanded state, but have the "hide" button.
- Defaults to
- To define a default initial state for a navbox that can be overridden in an article:
- In your intermediate template, create a parameter also named "state" as a pass-through:
- | state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}
- The <includeonly>| will expand the template when viewing the template page by itself.
- Example: Template:Tl with autocollapse as the default initial state. The Docks transcludes it and has only one navbox, so the Absalom navbox shows. Absalom has two navboxes, so the Absalom navbox collapses.
Cells[edit source]
- title*
- 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
·to ensure proper centering. This parameter is technically not mandatory, but using Template:Tl is rather pointless without a title.
- groupn*
- (i.e. group1, group2, etc.) If specified, text appears in a header cell displayed to the left of listn. If omitted, listn uses the full width of the table.
- groupBackground*
- If specified, changes the background color of the groups of this Navbox and all contained Navboxes.
- groupColor*
- If specified, changes the text color of the groups of this Navbox and all contained Navboxes.
- listn*
- (i.e. list1, list2, etc.) The body of the template, usually a bulleted list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within
<div> </div>. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter, if provided (see below).
- image*
- 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 list1 parameter must be specified. The image parameter accepts standard wikicode for displaying an image, e.g.:
[[File:XX.jpg|90px|link=|alt=]]
- above*
- A full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image). In a template without an image, above behaves in the same way as the list1 parameter without the group1 parameter.
- below*
- A full-width cell displayed below the template's body (groups, lists and image). In a template without an image, below behaves in the same way as the template's final listn parameter without a groupn parameter.
Layout of table[edit source]
Table generated by Template:Tl without image, above, and below parameters (gray list background color added for illustration only):
Table generated by Template:Tl with image, above and below parameters (gray list background color added for illustration only):
Table generated by Template:Tl with image, lists, and without groups, above, below (gray list background color added for illustration only):
Examples[edit source]
No image[edit source]
{{Navbox
| name = Thassilon navbox
| title = The Seven Realms of [[Thassilon]]
| image =
| list1 =
* [[Bakrakhan]], realm of Wrath
* [[Cyrusian]], realm of Pride
* [[Edasseril]], realm of Envy
* [[Eurythnia]], realm of Lust
* [[Gastash]], realm of Gluttony
* [[Haruka]], realm of Sloth
* [[Shalast]], realm of Greed
}}
With image, without groups[edit source]
{{Navbox
| name = Thassilon navbox
| title = The Seven Realms of [[Thassilon]]
| image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]]
| list1 =
* [[Bakrakhan]], realm of Wrath
* [[Cyrusian]], realm of Pride
* [[Edasseril]], realm of Envy
* [[Eurythnia]], realm of Lust
* [[Gastash]], realm of Gluttony
* [[Haruka]], realm of Sloth
* [[Shalast]], realm of Greed
}}
With image, groups, above, below[edit source]
{{Navbox
| name = Thassilon navbox
| title = The Seven Realms of [[Thassilon]]
| image = [[File:Sihedron Rune.jpg|75px|The Sihedron Rune]]
| above = Listed with their associated sin
| group1 = Wrath
| list1 =
* [[Bakrakhan]]
| group2 = Pride
| list2 =
* [[Cyrusian]]
| group3 = Envy
| list3 =
* [[Edasseril]]
| group4 = Lust
| list4 =
* [[Eurythnia]]
| group5 = Gluttony
| list5 =
* [[Gastash]]
| group6 = Sloth
| list6 =
* [[Haruka]]
| group7 = Greed
| list7 =
* [[Shalast]]
| below = '''See also''': [[Runelords]]
}}
[edit source]
It is possible to place multiple navboxes within a single border with the use of the border 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):
{{Navbox
| name = {{subst:PAGENAME}}
| title = Title
| group1 = [optional]
| list1 = {{Navbox
...child navbox parameters...
}}
...
}}
You can nest several levels of navbox to add subgroups to a group:
{{Navbox
| name = {{subst:PAGENAME}}
| title = Title
| group1 = [primary]
| list1 = {{Navbox
| group1 = [secondary]
| list1 = {{Navbox
| group1 = [tertiary]
| list1 = ...
}}
...
}}
...
}}
Multiple show/hides in a single container[edit source]
Use Template:Tl.
[edit source]
This navbox template is specifically designed to work in conjunction with Template:Tl. Both templates share common parameters for consistency and ease of use (such parameters are marked with a † in the complete parameter list above). Most importantly, all of these templates can each be used as children of one another.