Editing
Template:Navbox with collapsible groups/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!
== Examples == ===Basic example=== <pre style="overflow:scroll;"> {{Navbox with collapsible groups |name = University of Michigan |title = [[University of Michigan|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]] |titlestyle = background:#00008B;color:#FFD700; |groupstyle = background:#FFD700;color:#00008B; |image = |selected = {{{1|}}} |state = collapsed |group1 = [[University of Michigan#Academic profile|<span style="color:#00008B;">Academics</span>]] |abbr1 = academics |list1 = [[University of Michigan College of Engineering|College of Engineering]]{{·}} [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]]{{·}} [[Gerald R. Ford School of Public Policy]]{{·}} [[University of Michigan Law School|Law School]]{{·}} [[University of Michigan Health System|Medical School]]{{·}} [[Ross School of Business]]{{·}} [[University of Michigan School of Education|School of Education]]{{·}} [[University of Michigan School of Information|School of Information]]{{·}} [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]]{{·}}[[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]]{{·}} [[University of Michigan School of Public Health|School of Public Health]]{{·}} [[Taubman College of Architecture and Urban Planning]] |group2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]] |abbr2 = athletics |list2 = [[Michigan Stadium]]{{·}} [[Crisler Arena]]{{·}} [[Yost Ice Arena]]{{·}} [[Michigan Wolverines]]{{·}} [[Michigan Wolverines football|Football]]{{·}} [[Michigan – Ohio State football rivalry|UM-OSU Rivalry]]{{·}} [[Little Brown Jug (American football)|Little Brown Jug]]{{·}} [[Paul Bunyan Trophy]]{{·}} [[Cold War (ice hockey)|Cold War]] |group3 = Campus |abbr3 = campus |list3 = [[Angell Hall Observatory]]{{·}} [[Burton Memorial Tower|Burton Tower]]{{·}} [[The Diag]]{{·}} [[David M. Dennison Building|Dennison Building]]{{·}} [[Gerald R. Ford Presidential Library]]{{·}} [[Hill Auditorium]]{{·}} [[Lurie Tower]]{{·}} [[Matthaei Botanical Gardens]]{{·}} [[Michigan Union]]{{·}} [[Museums at the University of Michigan|Museums]]{{·}} [[Nichols Arboretum]]{{·}} [[University of Michigan Health System|UM Health System]]{{·}} [[University of Michigan Library|University Library]] }} </pre> {{Navbox with collapsible groups |name = University of Michigan |state = uncollapsed |title = [[University of Michigan|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]] |titlestyle = background:#00008B;color:#FFD700; |groupstyle = background:#FFD700;color:#00008B; |image = |selected = {{{1|}}} |group1 = [[University of Michigan#Academic profile|<span style="color:#00008B;">Academics</span>]] |abbr1 = academics |list1 = [[University of Michigan College of Engineering|College of Engineering]]{{·}} [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]]{{·}} [[Gerald R. Ford School of Public Policy]]{{·}} [[University of Michigan Law School|Law School]]{{·}} [[University of Michigan Health System|Medical School]]{{·}} [[Ross School of Business]]{{·}} [[University of Michigan School of Education|School of Education]]{{·}} [[University of Michigan School of Information|School of Information]]{{·}} [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]]{{·}}[[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]]{{·}} [[University of Michigan School of Public Health|School of Public Health]]{{·}} [[Taubman College of Architecture and Urban Planning]] |group2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]] |abbr2 = athletics |list2 = [[Michigan Stadium]]{{·}} [[Crisler Arena]]{{·}} [[Yost Ice Arena]]{{·}} [[Michigan Wolverines]]{{·}} [[Michigan Wolverines football|Football]]{{·}} [[Michigan – Ohio State football rivalry|UM-OSU Rivalry]]{{·}} [[Little Brown Jug (American football)|Little Brown Jug]]{{·}} [[Paul Bunyan Trophy]]{{·}} [[Cold War (ice hockey)|Cold War]] |group3 = Campus |abbr3 = campus |list3 = [[Angell Hall Observatory]]{{·}} [[Burton Memorial Tower|Burton Tower]]{{·}} [[The Diag]]{{·}} [[David M. Dennison Building|Dennison Building]]{{·}} [[Gerald R. Ford Presidential Library]]{{·}} [[Hill Auditorium]]{{·}} [[Lurie Tower]]{{·}} [[Matthaei Botanical Gardens]]{{·}} [[Michigan Union]]{{·}} [[Museums at the University of Michigan|Museums]]{{·}} [[Nichols Arboretum]]{{·}} [[University of Michigan Health System|UM Health System]]{{·}} [[University of Michigan Library|University Library]] }} ===Nesting other Navbox forms=== This example shows {{t1|Navbox}}, {{t1|Navbox with collapsible groups}} and {{t1|Navbox with columns}} all working together. Press the edit button for the section to view the code. Note that each of the child navboxes has the first parameter set to <code>child</code> {{Navbox with collapsible groups |name = Navbox with collapsible groups |title = Navbox, Navbox with columns, and Navbox with collapsible groups together |selected = {{{1|}}} |group1 = [[:Category:Scouting|The Scouting Movement]] |abbr1 = movement |list1 = [[Scouting]]{{·}}''[[Scouting for Boys]]''{{·}}[[Scout method]]{{·}}[[Scout Law]]{{·}}[[Scout Promise]]{{·}}[[Scout Motto]]{{·}}[[Wood Badge]]{{·}}[[Age groups in Scouting and Guiding]]{{·}}[[Cub Scout]]{{·}}[[Scout (Scouting)|Boy Scout]]{{·}}[[Rover Scout]]{{·}}[[Brownie (Girl Guides)|Brownie]]{{·}}[[Girl Guiding and Girl Scouting]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Jamboree (Scouting)|Jamboree]]{{·}}[[Scout Leader]]{{·}}[[World Organization of the Scout Movement|WOSM]]{{·}}[[World Association of Girl Guides and Girl Scouts|WAGGGS]]{{·}}[[Non-aligned Scouting and Scout-like organisations|Non-aligned organisations]]{{·}}[[Scouting controversy and conflict]]{{·}}[[Scouting in popular culture]]{{·}}[[List of Scouts]]{{·}}[[List of highest awards in Scouting]] |list2 = {{Navbox|child |title = [[French colonial empire|Former French colonies]] in [[Africa]] and the [[Indian Ocean]] |state = {{#ifeq:{{{1|}}}|french|uncollapsed|collapsed}} |titlestyle = background# |groupstyle = background:lavender; |group1 = [[Maghreb|Mahgreb]] |list1 = [[French Algeria|Algeria]]{{·}} [[French protectorate of Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small>{{·}} [[History of Tunisia|Tunisia]] |group2 = [[French West Africa]] |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]] |group3 = |list3 = [[French Togoland]]{{·}} [[James Island (Gambia)|James Island]] |group4 = [[French Equatorial Africa]] |list4 = [[Colonial Chad|Chad]]{{·}} [[History of Gabon|Gabon]]{{·}} [[History of the Republic of the Congo|Middle Congo]]{{·}} [[Ubangi-Shari|Oubangui-Chari]] |group5 = [[Comoros]] |list5 = [[Anjouan]]{{·}} [[Grande Comore]]{{·}} [[Mohéli]] |group6 = |list6 = [[History of Djibouti#French interest|French Somaliland (Djibouti)]]{{·}} [[History of Madagascar#French control|Madagascar]]{{·}} [[Mauritius|Ile de France]]{{·}} [[Seychelles]] }} |group3 = [[:Category:Scouting in the United Kingdom|Scouting in the United Kingdom]] |abbr3 = Scouting |list3 = [[The Scout Association]]{{·}}[[Girlguiding UK]]{{·}}[[Beaver Scouts]]{{·}}[[Cub Scouts (The Scout Association)|Cub Section (UK)]]{{·}}[[Venture Scout]]{{·}}[[Explorer Scouts (The Scout Association)|Explorer Scouts]]{{·}}[[Brownie (Girl Guides)]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Rainbow (Girl Guides)]]{{·}}[[Scout Network]]{{·}}[[Chief Scout (The Scout Association)|Chief Scout (United Kingdom)]]{{·}}[[Scout Counties (The Scout Association)|Scout Counties]]{{·}}[[Scout District]]{{·}}[[Scouts (The Scout Association)|Scout Section (UK)]]{{·}}[[Scout Activity Centre (The Scout Association)|Scout Activity Centre]]{{·}}[[Young Leaders (The Scout Association)|Young Leaders]] |list4 = {{Navbox with columns|child |state = {{#ifeq:{{{1|}}}|coltest|uncollapsed|collapsed}} |title = Navbox with columns nested in itself |colstyle = text-align:center; |col1width = 33% |col2width = 17% |col3width = 33% |col4width = 17% |col1header = Col1Header |col2header = Col2Header |col3header = Col3Header |col4header = Col4Header |col1 = {{Navbox with columns|child |colwidth = 50% |colstyle = text-align:center; |col1header = Col1.1Header |col2header = Col1.2Header |col1 = Col1.1 |col2 = Col1.2 }} |col2 = Col2 |col3 = {{Navbox with columns|child |colwidth = 33% |colstyle = text-align:center; |col1header = Col3.1Header |col2header = Col3.2Header |col3header = Col3.3Header |col1 = Col3.1 |col2 = Col3.2 |col3 = Col3.3 }} |col4 = Col4 }} }} ===Nesting Navboxes to get more groups/lists=== You can conveniently nest Navboxes, including {{t1|Navbox with collapsible groups}}, to get an unlimited number of groups/lists. The following example uses one instance of {{t1|Navbox with collapsible groups}} to get the first 10 collapsible groups, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many groups/lists as you like: {{Navbox with collapsible groups |name = {{PAGENAME}} |state = collapsed |title = Title |selected = {{{1|}}} |group1 = A |list1 = List A |group2 = B |list2 = List B |group3 = C |list3 = List C |group4 = D |list4 = List D |group5 = E |list5 = List E |group6 = F |list6 = List F |group7 = G |list7 = List G |group8 = H |list8 = List H |group9 = I |list9 = List I |list10 = {{Navbox with collapsible groups|child |selected = {{{1|}}} |group1 = J |list1 = List J |group2 = K |list2 = List K |group3 = L |list3 = List L |group4 = M |list4 = List M |group5 = N |list5 = List N |group6 = O |list6 = List O |group7 = P |list7 = List P |group8 = Q |list8 = List Q |group9 = R |list9 = List R |list10 = {{Navbox with collapsible groups|child |selected = {{{1|}}} |group1 = S |list1 = List S |group2 = T |list2 = List T |group3 = U |list3 = List U |group4 = V |list4 = List V |group5 = W |list5 = List W |group6 = X |list6 = List X |group7 = Y |list7 = List Y |group8 = Z |list8 = List Z }} }} }}
Summary:
Please note that all contributions to Fanra's EverQuest Wiki are considered to be released under the Creative Commons Attribution Share Alike (see
Project: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!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Main Menu
Main page
Sections
Classes and Races
Spells, Songs, Disciplines, and AAs
Items
Zones
NPCs
Quests
Raids
Tradeskills
User Interface
Tips and Guides
EQ Links
Wiki
Recent changes
Advanced search
Random page
Help
Contact Fanra
Tools
What links here
Related changes
Upload file
Special pages
Page information