Difference between revisions of "Template:Canada elections"

From blackwiki
Jump to navigation Jump to search
imported>Addbot
m (Bot: Migrating 2 interwiki links, now provided by Wikidata on d:q6857808)
imported>Frietjes
m (copyedit)
Line 1: Line 1:
{{Navbox
+
{{Navbox Canada
|name = Canada elections
+
| name     = Canada elections
|titlestyle = color:black; background-color:white;
+
| title     = Canadian federal elections and referendums
|title = <span style="vertical-align:1px;">[[Image:Maple Leaf (from roundel).svg|20x20px|link=|alt=]]</span>  '''<font color=#00006E>Canadian federal elections and referendums</font>'''
+
| leaf      = yes
|listclass = hlist
+
| bodyclass = hlist
|state = {{{state|autocollapse}}}
+
| state     = {{{state|autocollapse}}}
|style = width:100%;
 
|groupstyle = padding:0.35em 1.0em; line-height:1.1em;background:white;color:black;border: 1px solid #CC0000;
 
|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 = [[List of Canadian federal general elections|Elections]]
+
| group1 = [[List of Canadian federal general elections|Elections]]
|list1  =  
+
| list1  =
 
* [[Canadian federal election, 1867|1867]]
 
* [[Canadian federal election, 1867|1867]]
 
* [[Canadian federal election, 1872|1872]]
 
* [[Canadian federal election, 1872|1872]]
Line 53: Line 49:
 
* [[Canadian federal election, 2008|2008]]
 
* [[Canadian federal election, 2008|2008]]
 
* [[Canadian federal election, 2011|2011]]
 
* [[Canadian federal election, 2011|2011]]
* [[42nd Canadian federal election|''next'']]
+
* ''[[42nd Canadian federal election|next]]''
  
|group2 = [[List of federal by-elections in Canada|By-elections]]<br><small>(by parliament)</small>
+
| group2 = [[List of federal by-elections in Canada|By-elections]]<br>{{small|(by parliament)}}
|list2 =
+
| list2 =
 
* [[By-elections to the 1st Canadian Parliament|1st (1867–72)]]
 
* [[By-elections to the 1st Canadian Parliament|1st (1867–72)]]
 
* [[By-elections to the 2nd Canadian Parliament|2nd (1873–74)]]
 
* [[By-elections to the 2nd Canadian Parliament|2nd (1873–74)]]
Line 99: Line 95:
 
* ''[[By-elections to the 41st Canadian Parliament|41st (2011– )]]''
 
* ''[[By-elections to the 41st Canadian Parliament|41st (2011– )]]''
  
|group3 = [[Referendums in Canada|Referendums]]
+
| group3 = [[Referendums in Canada|Referendums]]
|list3 =
+
| list3 =
 
* [[Canadian prohibition plebiscite, 1898|1898]]
 
* [[Canadian prohibition plebiscite, 1898|1898]]
 
* [[Canadian conscription plebiscite, 1942|1942]]
 
* [[Canadian conscription plebiscite, 1942|1942]]
 
* [[Charlottetown Accord|1992]]
 
* [[Charlottetown Accord|1992]]
  
|belowclass= hlist
+
| below =
|below=  
 
 
* [[List of federal political parties in Canada|Federal political parties]]
 
* [[List of federal political parties in Canada|Federal political parties]]
 
* [[List of Canadian federal electoral districts|Federal electoral districts]]
 
* [[List of Canadian federal electoral districts|Federal electoral districts]]
 
* [[Historical federal electoral districts of Canada|Historical federal electoral districts]]
 
* [[Historical federal electoral districts of Canada|Historical federal electoral districts]]
|belowstyle  = padding:0.35em 1.0em; line-height:1.1em;background:white;color:black;border: 1px solid #CC0000;
 
  
 
}}<noinclude>
 
}}<noinclude>
<br/>{{collapsible option}}
+
 
 +
{{collapsible option}}
  
 
[[Category:Canada federal politics and government navigational boxes]]
 
[[Category:Canada federal politics and government navigational boxes]]
 
[[Category:Canada election navigational boxes]]
 
[[Category:Canada election navigational boxes]]
 
</noinclude>
 
</noinclude>

Revision as of 15:42, 8 April 2013

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 elections|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Canada elections|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Canada elections|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.