Template:Navbox with collapsible groups/testcases
{{template test cases notice}}
Test 1
{{testcase rows|_style=width:100%
| name = University of Michigan
| state = {{{state|
| titlestyle = background:#00008B;color:#FFD700;
| title = University of Michigan
| image =
| groupstyle = background:#FFD700;color:#00008B;
| listclass = hlist
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}
| abbr1 = academics
| group1 = University of Michigan#Academic profile
| list1 =
- College of Engineering
- College of Literature, Science and the Arts
- Gerald R. Ford School of Public Policy
- Law School
- Medical School
- Ross School of Business
- School of Education
- School of Information
- School of Music, Theatre & Dance
- School of Natural Resources and Environment
- School of Public Health
- Taubman College of Architecture and Urban Planning
| abbr2 = athletics
| state2 = uncollapsed
| group2 = Michigan Wolverines
| list2 =
- Michigan Stadium
- Crisler Arena
- Yost Ice Arena
- Michigan Wolverines
- Football
- UM–OSU Rivalry
- Little Brown Jug
- Paul Bunyan Trophy
- Cold War
| abbr3 = campus
| group3 = Campus
| list3 =
- Angell Hall Observatory
- Burton Tower
- The Diag
- Dennison Building
- Gerald R. Ford Presidential Library
- Hill Auditorium
- Lurie Tower
- Matthaei Botanical Gardens
- Michigan Union
- Museums
- Nichols Arboretum
- Michigan Medicine
- University Library
}}
Test 2
{{testcase rows|_style=width:100%
| title = title
| name = {{FULLPAGENAME}}
| navbar =
| state = uncollapsed
| border =
| 1 =
| above = above
| image = image
| imageleft = imageleft
| bodyclass =
| titleclass =
| aboveclass =
| belowclass =
| groupclass =
| listclass =
| imageclass =
| style = background:red;
| bodystyle = background:wheat;
| basestyle = background:lightblue;
| titlestyle = background:silver;
| abovestyle = background:gold;
| belowstyle = background:green;
| imagestyle = background:yellow;
| imageleftstyle = background:lightsteelblue;
| groupstyle =
| secttitlestyle =
| liststyle =
| contentstyle =
| listpadding =
| group1 = group1
| sect1 = sect1
| section1 = section1
| selected = abbr1
| abbr1 = abbr1
| state1 =
| group1style =
| sect1titlestyle =
| list1style = background:red;
| content1style = background:#eee;
| list1class =
| content1 = content1
| list1 = list1
| image1 = image1
| imageleft1 = imageleft1
| below = below
}}
Test 3
{{testcase rows|_style=width:100%
| name = {{FULLPAGENAME}}
| title = #_ notation test
| groupstyle = background:#123456;color:#FEDCBA;
| listclass = hlist
| list1 = child
| 1_list1 =
- List 1.1.1
- List 1.1.2
| 1_list2 = child
|1_2_group1 = Group 1.2.1
|1_2_list1 =
- List 1.2.1
- List 1.2.2
|1_2_group2 = Group 1.2.2
|1_2_list2 = subgroup
|1_2_2_list1 = List 1.2.2.1
|1_2_2_group2 = Group 1.2.2.2
|1_2_2_list2 = List 1.2.2.2
| 1_list3 = List 1.3
| list2 = child
| 2_group1 = Group 2.1
| 2_list1 = child
| 2_1_list1 = List 2.1.1
| 2_1_list2 = List 2.1.2
| list3 = child
| 3_list1 = List 3
| group4 = Group 4
| list4 = child
| 4_group1 = Group 4.1
| 4_list1 = List 4.1
| 4_group2 = Group 4.2
| 4_list2 = subgroup
| 4_2_group1 = Group 4.2.1
| 4_2_list1 = List 4.2.1
| 4_2_group2 = Group 4.2.2
| 4_2_list2 = child
| 4_2_2_group1 = Group 4.2.2.1
| 4_2_2_list1 = List 4.2.2.1
| 4_2_2_group2 = Group 4.2.2.2
| 4_2_2_list2 =
- List 4.2.2.2.1
- List 4.2.2.2.2
| 4_list3 = List 4.3
| group5 = Group 5
| list5 = subgroup
| 5_list1 =
- List 5.1
- List 5.2
}}
Test 4
{{testcase rows|_style=width:100%
| name = {{FULLPAGENAME}}
| title = Other corner-cases
| group3 = "child"
| list3 = child
| group4 = empty
| list4 =
| 4_list1 = This is a subgroup where the parent list is blank instead of being a subgroup keyword
| group5 = undefined
| 5_list1 = This is a subgroup where the parent list is never defined
| 6_list1 = This is a subgroup where the parent group is never defined
| group7 = "subgroup"
| list7 = subgroup
}}
Test 5
{{center|{{tl|{{BASEPAGENAME}}}}}}
{{{{BASEPAGENAME}}|navbox
| name = {{FULLPAGENAME}}
| below = Below below
| list5 = 5l
| group5 = 5g
| child4_list2 = 4.2l
| child4_group2 = 4.2g
| child4_list1 = 4.1l
| child4_group1 = 4.1g
| list4 = child
| group4 = 4g
| list3 = 3l
| group3 = 3g
| list1 = 1l
| group1 = 1g
| above = Above above
| title = Argument order testtitle
}}
{{reflist talk}}
{{center|{{tl|{{BASEPAGENAME}}/sandbox}}}}
{{{{BASEPAGENAME}}/sandbox|navbox
| name = {{FULLPAGENAME}}
| below = Below below
| list5 = 5l
| group5 = 5g
| child4_list2 = 4.2l
| child4_group2 = 4.2g
| child4_list1 = 4.1l
| child4_group1 = 4.1g
| list4 = child
| group4 = 4g
| list3 = 3l
| group3 = 3g
| list1 = 1l
| group1 = 1g
| above = Above above
| title = Argument order testtitle
}}
{{reflist talk}}