Template:Navbox with collapsible groups/testcases

{{template test cases notice}}

Test 1

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}}