Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Home
Random page
Pages on topics near you
Recent changes
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Navbox/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Subgroups example === This example shows two subgroups and an even deeper nested sub-subgroup created using {{Code|child}} or {{Code|subgroup}} keywords (they are equivalent and interchangeable); the striping is alternated automatically. To remove the striping altogether, set the {{Parameter|child{{Sub|{{Var|N}}}}_liststyle|background-color: transparent;}} parameter in each one. {{{{PAGENAMETDOC}} | name = Navbox/doc | state = uncollapsed | title = Multiple subgroup example | above = Above | below = Below | group1 = Group1 | list1 = List1 | group2 = Group2 | list2 = child | child2_group1 = Group2.1 | child2_list1 = List1 | child2_group2 = Group2.2 | child2_list2 = List2 | child2_group3 = Group2.3 | child2_list3 = List3 | group3 = Group3 | list3 = List3 | group4 = Group4 | list4 = subgroup | subgroup4_group1 = Group4.1 | subgroup4_list1 = List1 | subgroup4_group2 = Group4.2 | subgroup4_list2 = List2 | subgroup4_group3 = Group4.3 | subgroup4_list3 = child | subgroup4_child3_group1 = Group 4.3.1 | subgroup4_child3_list1 = List1 | subgroup4_child3_group2 = Group 4.3.2 | subgroup4_child3_list2 = List2 }} ==== Relationship with other Navbox templates ==== This navbox template works in conjunction with two other templates: {{Template link general|Navbox with columns}} and {{Template link general|Navbox with collapsible groups}}. All three of these templates share common parameters for consistency and ease of use (they are marked with a preceding superscript orange star ({{Color|var(--color-option-orange, #a95226)|{{Sup|β }}}}β¦) in the [[#Descriptions|parameter descriptions]] above). Most importantly, they can all be used as child templates of one another. Using the inline notation, the <code>{{Sub|{{Var|N}}}}_type</code> parameter can be set to the values {{Code|with columns}} or {{Code|with collapsible groups}} to activate the compatibility for that type of child navbox, as shown in the example below. {{Collapse|title=Deeply nested navbox example source code|content=<syntaxhighlight lang="wikitext" style="box-sizing: border-box; margin-left: 2rem; width: 80vw;">{{Navbox | name = Template:Navbox/doc | title = Navbox with nested regular Navbox, Navbox with Collapsible Groups, and Navbox with Columns | listclass = hlist<!-- Note that this applies to the child navboxes unless explicitly set otherwise. --> | group1 = Regular Navbox | list1 = subgroup | 1_group1 = Group 1 | 1_list1 = * List 1.1 * List 1.2 | 1_group2 = Group 2 | 1_list2 = * List 2.1 * List 2.2 | group2 = Navbox with Collapsible Groups | list2 = subgroup | 2_type = with collapsible groups | 2_group1 = Group 1 | 2_list1 = * List 1.1 * List 1.2 | 2_group2 = Group 2 | 2_list2 = * List 2.1 * List 2.2 | group3 = Navbox with Columns | list3 = subgroup | 3_type = with columns | 3_col1header = Column 1 | 3_col1 = * List 1.1 * List 1.2 | 3_col2header = Column 2 | 3_col2 = * List 2.1 * List 2.2 | list11 = subgroup | 11_title = Regular Navbox | 11_group1 = Group 1 | 11_list1 = * List 1.1 * List 1.2 | 11_group2 = Group 2 | 11_list2 = * List 2.1 * List 2.2 | list12 = subgroup | 12_title = Navbox with Collapsible Groups | 12_type = with collapsible groups | 12_group1 = Group 1 | 12_list1 = * List 1.1 * List 1.2 | 12_group2 = Group 2 | 12_list2 = * List 2.1 * List 2.2 | list13 = subgroup | 13_title = Navbox with Columns | 13_type = with columns | 13_col1header = Column 1 | 13_col1 = * List 1.1 * List 1.2 | 13_col2header = Column 2 | 13_col2 = * List 2.1 * List 2.2 }}</syntaxhighlight>}} {{Navbox | name = Template:Navbox/doc | title = Navbox with nested regular Navbox, Navbox with Collapsible Groups, and Navbox with Columns | listclass = hlist<!-- Note that this applies to the child navboxes unless explicitly set otherwise. --> | group1 = Regular Navbox | list1 = subgroup | 1_group1 = Group 1 | 1_list1 = * List 1.1 * List 1.2 | 1_group2 = Group 2 | 1_list2 = * List 2.1 * List 2.2 | group2 = Navbox with Collapsible Groups | list2 = subgroup | 2_type = with collapsible groups | 2_group1 = Group 1 | 2_list1 = * List 1.1 * List 1.2 | 2_group2 = Group 2 | 2_list2 = * List 2.1 * List 2.2 | group3 = Navbox with Columns | list3 = subgroup | 3_type = with columns | 3_col1header = Column 1 | 3_col1 = * List 1.1 * List 1.2 | 3_col2header = Column 2 | 3_col2 = * List 2.1 * List 2.2 | list11 = subgroup | 11_title = Regular Navbox | 11_group1 = Group 1 | 11_list1 = * List 1.1 * List 1.2 | 11_group2 = Group 2 | 11_list2 = * List 2.1 * List 2.2 | list12 = subgroup | 12_title = Navbox with Collapsible Groups | 12_type = with collapsible groups | 12_group1 = Group 1 | 12_list1 = * List 1.1 * List 1.2 | 12_group2 = Group 2 | 12_list2 = * List 2.1 * List 2.2 | list13 = subgroup | 13_title = Navbox with Columns | 13_type = with columns | 13_col1header = Column 1 | 13_col1 = * List 1.1 * List 1.2 | 13_col2header = Column 2 | 13_col2 = * List 2.1 * List 2.2 }} You can also nest these or other navbox templates by assigning the keyword {{Code|child}} as the value of the first unnamed/positional parameter or the named {{Parameter|border}} parameter (e.g., {{Template link general|plaincode=on|Navbox|child|β¦}}, {{Template link general|plaincode=on|Navbox with columns|2=1=child|3=β¦}} or {{Template link general|plaincode=on|Navbox with collapsible groups|2=border=child|3=β¦}}). Note that this style of nesting can lead to a large increase in the template's [[Help:Template limits|post-expand include size]].
Summary:
Please note that all contributions to Wikifacta are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License. A few of Wikifacta's pages are from Wikipedia.org's Mainspace and Draftspace. (see
Wikifacta:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Template
:
Navbox/doc
(section)
Add topic