Editing
Template:Navbox/doc
(section)
Jump to navigation
Jump to search
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 == 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;"> {{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = {{Navbox|child ...child navbox parameters... }} ... }} </pre> === Subgroups example === {{main|Template:Navbox subgroup}} This example shows how subgroups can be used. It is recommended that one use {{t|Navbox subgroup}}, but the same result can be reached by using {{t|Navbox}} with <code>border = child</code> or the first unnamed parameter set to <code>child</code>. The ''evenodd'' parameter is used to reverse striping in some of the subgroups in order to get all of the stripes to line up properly. To remove the striping altogether, you can set <code>liststyle = background:transparent;</code> in each of the navboxes. {{Navbox | name = Navbox/doc | image = [[File:Blue dragon.jpg|100px|link=|alt=]] | state = uncollapsed | title = Multiple subgroup example | above = Above | below = Below | group1 = Group1 | list1 = List1 | group2 = Group2 | list2 = {{Navbox|child | evenodd = swap | group1 = Group2.1 | list1 = List1 | group2 = Group2.2 | list2 = List2 | group3 = Group2.3 | list3 = List3 }} | group3 = Group3 | list3 = List3 | group4 = Group4 | list4 = {{Navbox|child | evenodd = swap | group1 = Group4.1 | list1 = List1 | group2 = Group4.2 | list2 = List2 | group3 = Group4.3 | list3 = List3 }} }} === 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 another navbox, with <code>1 = child</code> set. The view (v), discuss (d), edit (e) navbar links are hidden using <code>navbar = plain</code> for each of them, or could be suppresed by just leaving out the ''name'' parameter (child navboxes do not require the name parameter to be set, unlike regular navboxes). {{Navbox | name = Navbox/doc | title = Former French overseas empire | state = uncollapsed | list1 = {{Navbox|child | navbar = plain | title = Former French colonies in Africa and the Indian Ocean | listclass = hlist | group1 = Mahgreb | list1 = * |Algeria * Morocco <small>(Arguin Island)</small> * Tunisia | group2 = French West Africa | list2 = * Côte d'Ivoire * French Dahomey|Dahomey * French Sudan * Guinea * Mauritania * Niger * Senegal * Upper Volta * French Togoland * James Island | group3 = French Equatorial Africa | list3 = * Chad * Gabon * Middle Congo * Oubangui-Chari | group4 = Comoros | list4 = * Anjouan * Grande Comore]] * Mohéli]] * French Somaliland (Djibouti) * Madagascar * Mauritius|Ile de France * Seychelles }} | list2 = {{Navbox|child | navbar = plain | title = Former French colonies in the Americas | listclass = hlist | list1 = * New France <small>(Acadia, Louisiana, Canada, Terre Neuve) 1655–1763 </small> | list2 = * Inini * Berbice * Saint-Domingue * <small>[[Haiti]]</small> * Tobago * |Virgin Islands * France Antarctique * France Équinoxiale | below = French West India Company }} | list3 = {{Navbox|child | navbar = plain | title = Former French colonies in Asia and Oceania | listclass = hlist | group1 = French India | list1 = * Chandernagor * Coromandel Coast * Madras * Mahé * Pondichéry * Karaikal * Yanaon | group2 = French Indochina | list2 = * Cambodia * Laos * Vietnam <small>(Annam, Cochinchina, Tonkin)</small> | group3 = Other Asian | list3 = * Alaouites * Alexandretta-Hatay * Ceylon * Kwangchowan | group4 = Oceania | list4 = * New Hebrides ** Vanuatu | below = French East India Company }} }}
Summary:
Please note that all contributions to Syra D&D Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
SyraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
Template
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information