|
|
Line 221: |
Line 221: |
| {{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> | | {{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> |
| {{!}}} }} | | {{!}}} }} |
− | <noinclude>
| |
− | {{TemplateDocStart}}
| |
− | ::''Parts of this page were taken from the [https://en.wikipedia.org/wiki/Template:Navbox/doc The English Wikipedia's documentation on the Navbox template].
| |
− |
| |
− | This navigational template creates a box with a long list of organized links, so that a user can move between similar pages quickly. The template has default CSS styling, which can be changed as needed, although this is not recommended. This template should be used in a variety of places throughout the wiki because of its ease of use and standardization.
| |
− |
| |
− | == Parameters ==
| |
− | : <code>name</code> – The name of the Navbox
| |
− | : <code>title</code> – The title of the Navbox (shown at the top)
| |
− | : <code>titlestyle</code> – A CSS style for the title-bar, such as: <code>background: aqua;</code>
| |
− | : <code>groupstyle</code> – A CSS style for the group-cells, such as: <code>background: #f516db;</code>
| |
− | : <code>above</code> – Text to appear above the group/list section
| |
− | : <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|80px|link=|alt=]]</nowiki></code>.
| |
− | : <code>imageleft</code> – An optional left-side image (code the same as the "image" parameter).
| |
− | : <code>group<sub>n</sub></code> – The left-side text before list-n (if group-n omitted, list-n extends to the left edge of the box, and defaults to <code>text-align:center</code> styling).
| |
− | : <code>list<sub>n</sub></code> – Text listing wikilinks using a <code>hlist</code> format (where the wikilinks are styled as a horizontal list).
| |
− | : <code>below</code> – Optional text to appear below the group/list section.
| |
− |
| |
− | == Examples ==
| |
− | === A Simple Navbox Showing Layout ===
| |
− | <pre>
| |
− | <nowiki>
| |
− | {{Navbox
| |
− | | name = Navbox
| |
− | | title = Title
| |
− | | above = Above
| |
− |
| |
− | | image = [[File:StateMembership2019.jpeg | 200px]]
| |
− |
| |
− | | group1 = Group1
| |
− | | list1 = List1
| |
− |
| |
− | | group2 = Group2
| |
− | | list2 =
| |
− | * List 1
| |
− | * List 2
| |
− |
| |
− | | group3 = Group3
| |
− | | list3 =
| |
− | * List 1
| |
− | * List 2
| |
− | * List 3
| |
− |
| |
− | | group4 = Group4
| |
− | | list4 =
| |
− | * List 1
| |
− | * List 2
| |
− | * List 3
| |
− | * List 4
| |
− |
| |
− | | group5 = Group5
| |
− | | list5 =
| |
− | * List 1
| |
− | * List 2
| |
− | * List 3
| |
− | * List 4
| |
− | * List 5
| |
− |
| |
− | | below = Below
| |
− |
| |
− | }}
| |
− | </nowiki>
| |
− | </pre>
| |
− |
| |
− | {{Navbox
| |
− | | name = Navbox
| |
− | | title = Title
| |
− | | above = Above
| |
− |
| |
− | | image = [[File:StateMembership2019.jpeg | 200px]]
| |
− |
| |
− | | group1 = Group1
| |
− | | list1 = List1
| |
− |
| |
− | | group2 = Group2
| |
− | | list2 = * List 1 * List 2
| |
− |
| |
− | | group3 = Group3
| |
− | | list3 = * List 1 * List 2 * List 3
| |
− |
| |
− | | group4 = Group4
| |
− | | list4 = * List 1 * List 2 * List 3 * List 4
| |
− |
| |
− | | group5 = Group5
| |
− | | list5 = * List 1 * List 2 * List 3 * List 4 * List 5
| |
− |
| |
− | | below = Below
| |
− | }}
| |
− |
| |
− | == Adding Subgroups and using Imageleft ==
| |
− | <pre>
| |
− | {{Navbox
| |
− | | name = Navbox
| |
− | | title = Title
| |
− | | above = Above
| |
− |
| |
− | | imageleft = [[File:StateMembership2019.jpeg | 200px]]
| |
− |
| |
− | | group1 = Group1
| |
− | | list1 = List1
| |
− |
| |
− | | group2 = Group2
| |
− | | list2 = * List 1 * List 2
| |
− |
| |
− | | group3 = Group3
| |
− | | list3 = * List 1 * List 2 * List 3
| |
− |
| |
− | | group4 = Group4
| |
− | | list4 = * List 1 * List 2 * List 3 * List 4
| |
− |
| |
− | | group5 = Group5
| |
− | | list5 = {{Navbox|child
| |
− | | group1 = ChildGroup1
| |
− | | list1 = ChildList1
| |
− |
| |
− | | group2 = ChildGroup2
| |
− | | list2 = ChildList2
| |
− | }}
| |
− |
| |
− | | below = Below
| |
− | }}
| |
− | </pre>
| |
− |
| |
− | {{Navbox
| |
− | | name = Navbox
| |
− | | title = Title
| |
− | | above = Above
| |
− |
| |
− | | imageleft = [[File:StateMembership2019.jpeg | 200px]]
| |
− |
| |
− | | group1 = Group1
| |
− | | list1 = List1
| |
− |
| |
− | | group2 = Group2
| |
− | | list2 = * List 1 * List 2
| |
− |
| |
− | | group3 = Group3
| |
− | | list3 = * List 1 * List 2 * List 3
| |
− |
| |
− | | group4 = Group4
| |
− | | list4 = * List 1 * List 2 * List 3 * List 4
| |
− |
| |
− | | group5 = Group5
| |
− | | list5 = {{Navbox|child
| |
− | | group1 = ChildGroup1
| |
− | | list1 = ChildList1
| |
− |
| |
− | | group2 = ChildGroup2
| |
− | | list2 = ChildList2
| |
− | }}
| |
− |
| |
− | | below = Below
| |
− | }}
| |
| <noinclude> | | <noinclude> |
| {{Navbox/doc}} | | {{Navbox/doc}} |
- Parts of this page were taken from the The English Wikipedia's documentation on the Navbox template.
 | This template uses Lua:
|
This navigational template creates a box with a long list of organized links, so that a user can move between similar pages quickly. The template has default CSS styling, which can be changed as needed, although this is not recommended. This template should be used in a variety of places throughout the wiki because of its ease of use and standardization.
Parameters
name
– The name of the Navbox
title
– The title of the Navbox (shown at the top)
titlestyle
– A CSS style for the title-bar, such as: background: aqua;
groupstyle
– A CSS style for the group-cells, such as: background: #f516db;
above
– Text to appear above the group/list section
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|80px|link=|alt=]]
.
imageleft
– An optional left-side image (code the same as the "image" parameter).
groupn
– The left-side text before list-n (if group-n omitted, list-n extends to the left edge of the box, and defaults to text-align:center
styling).
listn
– Text listing wikilinks using a hlist
format (where the wikilinks are styled as a horizontal list).
below
– Optional text to appear below the group/list section.
Examples
A Simple Navbox Showing Layout
{{Navbox
| name = Navbox
| title = Title
| listclass = hlist
| above = Above
| image = [[File:StateMembership2019.jpeg | 200px]]
| group1 = Group1
| list1 = List1
| group2 = Group2
| list2 =
* List 1
* List 2
| group3 = Group3
| list3 =
* List 1
* List 2
* List 3
| group4 = Group4
| list4 =
* List 1
* List 2
* List 3
* List 4
| group5 = Group5
| list5 =
* List 1
* List 2
* List 3
* List 4
* List 5
| below = Below
}}
Title |
---|
Above |
Group1 | List1 | |
---|
Group2 | |
---|
Group3 | |
---|
Group4 |
- List 1 * List 2 * List 3 * List 4
|
---|
Group5 |
- List 1 * List 2 * List 3 * List 4 * List 5
|
---|
Below |
Adding Subgroups and using Imageleft
{{Navbox
| name = Navbox
| title = Title
| listclass = hlist
| above = Above
| imageleft = [[File:StateMembership2019.jpeg | 200px]]
| group1 = Group1
| list1 = List1
| group2 = Group2
| list2 = * List 1 * List 2
| group3 = Group3
| list3 = * List 1 * List 2 * List 3
| group4 = Group4
| list4 = * List 1 * List 2 * List 3 * List 4
| group5 = Group5
| list5 = {{Navbox|child
| group1 = ChildGroup1
| list1 = ChildList1
| group2 = ChildGroup2
| list2 = ChildList2
}}
| below = Below
}}
Title |
---|
Above |
| Group1 | List1 |
---|
Group2 | |
---|
Group3 | |
---|
Group4 |
- List 1 * List 2 * List 3 * List 4
|
---|
Group5 | ChildGroup1 | ChildList1 |
---|
ChildGroup2 | ChildList2 |
---|
|
---|
Below |