Difference between revisions of "Template:Canada macroriding"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use listclass = hlist in navbox as per WP:HLIST)
imported>Zzuuzz
m (Reverted edits by 60.121.140.83 (talk) to last version by Freddiem)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Navbox
+
{{Navbox Canada
| name   = Canada macroriding
+
| name     = Canada macroriding
| titlestyle = color:black; background-color:white;
+
| title     = [[Elections in Canada|Canadian federal election results by region]]
| title = <span style="vertical-align:1px;">[[Image:Maple Leaf (from roundel).svg|20x20px]]</span>  '''<font color=#00006E>[[Elections in Canada|Canadian federal election results by region]]</font>'''
+
| state    = {{{state|autocollapse}}}
|listclass = hlist
+
| leaf      = yes
| groupstyle = padding:0.35em 1.0em; line-height:1.1em;background:white;color:black;border: 1px solid #CC0000;
+
| listclass = hlist
| list1style = padding:0.35em 0; line-height:1.5em;background:white;color:black;border-top: 1px solid #CC0000;
+
 
| liststyle = padding:0.35em 0; line-height:1.5em;background:white;color:black;
+
| group1 = [[Western Canada]]
| group1 = <font color=#00006E>[[Western Canada]]</font>
+
| list1  =
| list1  =
+
* [[Canadian federal election results on Vancouver Island|Vancouver Island]]
* [[Canadian federal election results in Vancouver Island|Vancouver Island]]
 
 
* [[Canadian federal election results in Greater Vancouver and the Sunshine Coast|Greater Vancouver and the Sunshine Coast]]
 
* [[Canadian federal election results in Greater Vancouver and the Sunshine Coast|Greater Vancouver and the Sunshine Coast]]
 
* [[Canadian federal election results in the Fraser Valley|Fraser Valley]]
 
* [[Canadian federal election results in the Fraser Valley|Fraser Valley]]
Line 19: Line 18:
 
* [[Canadian federal election results in Southern Saskatchewan|Southern Saskatchewan]]
 
* [[Canadian federal election results in Southern Saskatchewan|Southern Saskatchewan]]
 
* [[Canadian federal election results in Rural Manitoba|Rural Manitoba]]
 
* [[Canadian federal election results in Rural Manitoba|Rural Manitoba]]
* [[Canadian federal election results in Winnipeg|Winnipeg]]|- bgcolor="#F9F9F9"
+
* [[Canadian federal election results in Winnipeg|Winnipeg]]
| group2 = <font color=#00006E>[[Ontario]]</font>
+
 
| list2  =
+
| group2 = [[Ontario]]
 +
| list2  =
 
* [[Canadian federal election results in Northern Ontario|Northern Ontario]]
 
* [[Canadian federal election results in Northern Ontario|Northern Ontario]]
 
* [[Canadian federal election results in Southwestern Ontario|Southwestern Ontario]]
 
* [[Canadian federal election results in Southwestern Ontario|Southwestern Ontario]]
Line 33: Line 33:
 
* [[Canadian federal election results in Eastern Ontario|Eastern Ontario]]
 
* [[Canadian federal election results in Eastern Ontario|Eastern Ontario]]
 
* [[Canadian federal election results in Ottawa|Ottawa]]
 
* [[Canadian federal election results in Ottawa|Ottawa]]
|- bgcolor="#F9F9F9"
+
 
| group3 = <font color=#00006E>[[Quebec]]</font>
+
| group3 = [[Quebec]]
| list3  =
+
| list3  =
 
* [[Canadian federal election results in the Laurentides, Outaouais and Northern Quebec|Laurentides, Outaouais and Northern Quebec]]
 
* [[Canadian federal election results in the Laurentides, Outaouais and Northern Quebec|Laurentides, Outaouais and Northern Quebec]]
 
* [[Canadian federal election results in Northern Montreal and Laval|Northern Montreal and Laval]]
 
* [[Canadian federal election results in Northern Montreal and Laval|Northern Montreal and Laval]]
Line 46: Line 46:
 
* [[Canadian federal election results in the Côte-Nord and Saguenay|Côte-Nord and Saguenay]]
 
* [[Canadian federal election results in the Côte-Nord and Saguenay|Côte-Nord and Saguenay]]
 
* [[Canadian federal election results in Eastern Quebec|Eastern Quebec]]
 
* [[Canadian federal election results in Eastern Quebec|Eastern Quebec]]
| group4 = <font color=#00006E>[[Atlantic Canada]]</font>
+
 
| list4  =
+
| group4 = [[Atlantic Canada]]
 +
| list4  =
 
* [[Canadian federal election results in New Brunswick|New Brunswick]]
 
* [[Canadian federal election results in New Brunswick|New Brunswick]]
 
* [[Canadian federal election results in Nova Scotia|Nova Scotia]]
 
* [[Canadian federal election results in Nova Scotia|Nova Scotia]]
 
* [[Canadian federal election results in Prince Edward Island|Prince Edward Island]]
 
* [[Canadian federal election results in Prince Edward Island|Prince Edward Island]]
* [[Canadian federal election results in Newfoundland and Labrador|Newfoundland and Labrador]]  
+
* [[Canadian federal election results in Newfoundland and Labrador|Newfoundland and Labrador]]
| group5 = <font color=#00006E>[[Northern Canada]]</font>
+
 
| list5  =
+
| group5 = [[Northern Canada]]
 +
| list5  =
 
* [[Yukon (electoral district)|Yukon]]
 
* [[Yukon (electoral district)|Yukon]]
* [[Western Arctic|Northwest Territories]]
+
* [[Northwest Territories (electoral district)|Northwest Territories]]
 
* [[Nunavut (electoral district)|Nunavut]]
 
* [[Nunavut (electoral district)|Nunavut]]
|- bgcolor="#F9F9F9"
+
 
 
}}<noinclude>
 
}}<noinclude>
[[Category:Canada federal politics and government navigational boxes]]
+
{{collapsible option}}
 +
[[Category:Canada federal politics and government navigational boxes|Riding]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:45, 1 September 2017

Template:Navbox Canada Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Canada macroriding|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Canada macroriding|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Canada macroriding|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.