Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
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
Move
General
What links here
Related changes
Special pages
Page information
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!
== Child navboxes == {{Selfref|For additional examples, see the [[Template:Navbox/testcases|Navbox testcases page]].}} It is possible to place multiple navboxes within a single border. These can either be specified inline or by using a nested navbox template, although the latter method can result in a signifcantly large [[WP:PEIS|post-expand include size]]. To specify child navboxes inline, set the <code>list<sub>n</sub></code> parameter to <code>child</code> or <code>subgroup</code>. Elements of the child navbox can be specified by prepending <code>child<sub>n</sub>_</code>, <code>subgroup<sub>n</sub>_</code>, or just <code><sub>n</sub>_</code> to the parameter names (e.g. <code>1_list1</code>). Child navboxes can be nested by adding an additional prefix (e.g. <code>1_1_list1</code>). The basic code for doing this is as follows (which adds a subgroup for the first group/list area): <pre style="overflow: auto;"> {{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = child | 1_title = [optional] | 1_group1 = [optional] | 1_list1 = child | 1_1_title = [optional] | 1_1_group1 = [optional] | 1_1_list1 = ...list contents... ... ... }} </pre> To specify child navboxes using a nested template, use "child" as the first parameter or set the ''border'' parameter. The basic code for doing this is as follows (which adds a subgroup for the first group/list area): <pre style="overflow: auto;"> {{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = {{Navbox|child ...child navbox parameters... }} ... }} </pre> === Subgroups example === This example shows two subgroups and a sub-subgroup created using <code>child</code> and <code>subgroup</code> keywords (both are interchangible). The striping is alternated automatically. To remove the striping altogether, you can set <code>child<sub>n</sub>_liststyle = background:transparent;</code> in each. {{{{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 }} === Multiple show/hides in a single container === {{main|Template:Navbox with collapsible groups}} The example below is generated using a regular navbox for the main container, then its list1, list2, and list3 parameters each contain the <code>child</code> keyword. The view (v), talk (t), edit (e) navbar links are hidden automatically because the "child" or "subgroup" keyword is used, so using <code>navbar = plain</code> for each of them is not necessary. The code <syntaxhighlight lang="wikitext" inline>N_state = {{#ifeq:{{{selected|}}|ABBREVIATION|uncollapsed|{{{stateN|collapsed}}}}}</syntaxhighlight> is used to replicate the <syntaxhighlight lang="wikitext" inline>abbrN = ABBREVIATION</syntaxhighlight> functionality of {{tl|Navbox with collapsible groups}}. {{{{PAGENAMETDOC}} | name = Navbox/doc | title = [[French colonial empire|Former French overseas empire]] | state = uncollapsed | list1 = child | 1_state = {{#ifeq:{{{selected|}}|Africa|uncollapsed|{{{state1|collapsed}}}}} | 1_title = [[French colonial empire|Former French colonies]] in [[Africa]] and the [[Indian Ocean]] | 1_listclass = hlist | 1_group1 = [[Mahgreb]] | 1_list1 = * [[French rule in Algeria|Algeria]] * [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small> * [[History of Tunisia|Tunisia]] | 1_group2 = [[French West Africa]] | 1_list2 = * [[History of Côte d'Ivoire#French Period|Côte d'Ivoire]] * [[French Dahomey|Dahomey]] * [[French Sudan]] * [[French Guinea|Guinea]] * [[History of Mauritania#French colonization and post-colonial history|Mauritania]] * [[History of Niger#Colonization|Niger]] * [[History of Senegal|Senegal]] * [[French Upper Volta|Upper Volta]] * [[French Togoland]] * [[James Island (The Gambia)|James Island]] | 1_group3 = [[French Equatorial Africa]] | 1_list3 = * [[Colonial Chad|Chad]] * [[History of Gabon|Gabon]] * [[History of the Republic of the Congo|Middle Congo]] * [[Oubangui-Chari]] | 1_group4 = [[Comoros]] | 1_list4 = * [[Anjouan]] * [[Grande Comore]] * [[Mohéli]] * [[History of Djibouti#French Interest|French Somaliland (Djibouti)]] * [[History of Madagascar#French control|Madagascar]] * [[Mauritius|Ile de France]] * [[Seychelles]] | list2 = child | 2_state = {{#ifeq:{{{selected|}}|Americas|uncollapsed|{{{state2|collapsed}}}}} | 2_title = [[French colonial empire|Former French colonies]] in the [[Americas]] | 2_listclass = hlist | 2_list1 = * [[New France]]{{spaces|2}}<small>([[Acadia]], [[Louisiana (New France)|Louisiana]], [[Canada, New France|Canada]], [[Newfoundland (island)|Terre Neuve]]) 1655–1763 </small> | 2_list2 = * [[Inini]] * [[Berbice]] * [[Saint-Domingue]] * <small>[[Haiti]]</small> * [[Tobago]] * [[History of the British Virgin Islands|Virgin Islands]] * [[France Antarctique]] * [[France Équinoxiale]] | 2_below = [[French West India Company]] | list3 = child | 3_state = {{#ifeq:{{{selected|}}|Asia|uncollapsed|{{{state3|collapsed}}}}} | 3_title = [[French colonial empire|Former French colonies]] in [[Asia]] and [[Oceania]] | 3_listclass = hlist | 3_group1 = [[Asia]] | 3_list1 = child | 3_1_group1 = [[French India]] | 3_1_list1 = * [[Chandernagor]] * [[Coromandel Coast]] * [[History of Chennai|Madras]] * [[Mahé, India|Mahé]] * [[History of Pondicherry|Pondichéry]] * [[Karaikal]] * [[Yanam (India)|Yanaon]] | 3_1_group2 = [[French Indochina]] | 3_1_list2 = * [[Colonial Cambodia|Cambodia]] * [[History of Laos to 1945#French Laos|Laos]] * [[French Indochina|Vietnam]] <small>([[Annam (French colony)|Annam]], [[Cochinchina]], [[Tonkin]])</small> | 3_1_group3 = Other Asian | 3_1_list3 = * [[Alawite State|Alaouites]] * [[Republic of Hatay|Alexandretta-Hatay]] * [[Sri Lanka|Ceylon]] * [[Kwangchowan]] | 3_group4 = [[Oceania]] | 3_list4 = * [[New Hebrides]] ** [[History of Vanuatu|Vanuatu]] | 3_below = [[French East India Company]] }}
Summary:
Please note that all contributions to Ikwipedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Ikwipedia: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)
Toggle limited content width