Template:Navbox Canada/doc

< Template:Navbox Canada

This template may be used to create a {{navbox}} or {{navbox with collapsible groups}} using the standard style for Canada-related navigational boxes.

Usage

{{Navbox Canada
| name   = {{subst:PAGENAME}}
| title  = 
| leaf   = yes

| above  = 

| group1 =
| list1  =

| group2 = 
| list2  =

...

| group20 =
| list20  =

| below   =

}}

or

{{Navbox Canada
| name   = {{subst:PAGENAME}}
| collapsible groups = yes
| title  = 
| leaf   = yes

| above  = 

| group1 =
| abbr1  =
| list1  =

| group2 = 
| abbr2  =
| list2  =

...

| group20 =
| abbr20  =
| list20  =

| below   =

}}

Parameters

The parameters mostly mimic {{navbox}}, with the addition of |leaf=yes, which adds the leaf icon to the title. In order for the red border to work properly, the first list must start with |list1=. The template will automatically determine the last list number.

In some cases, it may be necessary to override the default top and bottom red borders. For example, when used with subgroups/child navigational boxes. To add force the addition of a top or bottom border, use |topborder=yes or |bottomborder=yes. To force the removal of a top or bottom border, use |notopborder=yes or |nobottomborder=yes.

Examples

Example 1

{{Navbox Canada
| name = {{subst:PAGENAME}}
| title = Title
| leaf = yes

| list1 = 
* item a
* item b
* item c
* item d

}}

Example 2

{{Navbox Canada
| name = {{subst:PAGENAME}}
| title = Title
| leaf = yes

| above = above
| group1 = group1
| list1 = 
* item1a
* item1b
| group2 = group2
| list2 = 
* item2a
* item2b
| below = below
}}

Example 3

{{Navbox Canada
| name = {{subst:PAGENAME}}
| title = Title
| collapsible groups = yes
| leaf = yes

| above = above
| group1 = group1
| list1 = 
* item1a
* item1b
| group2 = group2
| list2 = 
* item2a
* item2b
| below = below
}}

Example 4

{{Navbox Canada
| name = {{subst:PAGENAME}}
| title = Title
| leaf = yes
| notopborder = yes

| above = above
| group1 = group1
| list1 = {{Navbox Canada|subgroup
| topborder = yes
| group1 = group1.1
| list1 =
* item1.1a
* item1.1b
| group2 = group1.2
| list2 =
* item1.2a
* item1.2b
}}
| group2 = group2
| list2 = 
* item2a
* item2b
| below = below
}}

Example 5

{{Navbox Canada
| name = {{subst:PAGENAME}}
| title = Title
| leaf = yes
| nobottomborder = yes

| above = above

| group1 = group1
| list1 = 
* item1a
* item1b

| group2 = group2
| list2 = {{Navbox Canada|subgroup
| bottomborder = yes
| group1 = group2.1
| list1 =
* item2.1a
* item2.1b
| group2 = group2.2
| list2 =
* item2.2a
* item2.2b
}}
| below = below
}}

See also