Difference between revisions of "Template:Canada Elections"

From blackwiki
Jump to navigation Jump to search
imported>Joeyconnick
m (update navbox name)
 
(148 intermediate revisions by 50 users not shown)
Line 1: Line 1:
{{Navbox
+
{{Navbox Canada
|name   = Canelections
+
| name     = Canada Elections
|state   = {{{state<includeonly>|autocollapse</includeonly>}}}
+
| state     = {{{state<includeonly>|autocollapse</includeonly>}}}
|title   = <span style="vertical-align:1px;">[[File:Maple Leaf (from roundel).svg|20x20px|link=]]</span>&nbsp;&nbsp;'''<font color=#00006E>[[Elections in Canada]]</font>
+
| title     = [[Elections in Canada]]
|titlestyle = color:black; background-color:white;
+
| leaf      = yes
|style = width:100%;
+
| listclass = hlist
|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;
 
|listclass = hlist  
 
|group1  = Most recent
 
|list1  =
 
* [[Canadian federal election, 2011|'''Federal&nbsp;2011''']]
 
* [[British Columbia general election, 2009|British&nbsp;Columbia&nbsp;2009]]
 
* [[Alberta general election, 2012|Alberta&nbsp;2012]] ([[Alberta Senate nominee election, 2012|Senate 2012]])
 
* [[Saskatchewan general election, 2011|Saskatchewan&nbsp;2011]]
 
* [[Manitoba general election, 2011|Manitoba&nbsp;2011]]
 
* [[Ontario general election, 2011|Ontario&nbsp;2011]]
 
* [[Quebec general election, 2008|Quebec&nbsp;2008]]
 
* [[New Brunswick general election, 2010|New&nbsp;Brunswick&nbsp;2010]]
 
* [[Nova Scotia general election, 2009|Nova&nbsp;Scotia&nbsp;2009]]
 
* [[Prince Edward Island general election, 2011|Prince&nbsp;Edward&nbsp;Island&nbsp;2011]]
 
* [[Newfoundland and Labrador general election, 2011|Newfoundland&nbsp;and&nbsp;Labrador&nbsp;2011]]
 
* [[Yukon general election, 2011|Yukon&nbsp;2011]]
 
* [[Northwest Territories general election, 2011|Northwest&nbsp;Territories&nbsp;2011]]
 
* [[Nunavut general election, 2008|Nunavut&nbsp;2008]]
 
* '''[[Elections in Canada#Provincial and territorial|Provincial&nbsp;summary]]'''
 
  
|group2  = Future elections
+
| group1 = Most recent
|list2  =  
+
| list1  =
* [[42nd Canadian federal election|'''Canadian&nbsp;House&nbsp;of&nbsp;Commons''']] {{nowrap|([[By-elections to the 41st Canadian Parliament|By-elections]])}}
+
* [[2019 Canadian federal election|Federal 2019]]
* [[40th British Columbia general election|British&nbsp;Columbia]] {{nowrap|([[List of British Columbia by-elections#39th Parliament 2009-present|By-elections]])}}
+
* [[2019 Alberta general election|Alberta 2019]]
* {{#ifexist:Alberta general election, 2016|Alberta]]}} {{#ifexist:(Alberta Senate nominee election, 2016|Senate]])}} {{#ifexist:28th Saskatchewan general election|
+
* [[2020 British Columbia general election|British Columbia 2020]]
* [[28th Saskatchewan general election|Saskatchewan]]}}{{#ifexist:41st Manitoba general election|
+
* [[2019 Manitoba general election|Manitoba 2019]]
* [[41st Manitoba general election|Manitoba]]}}
+
* [[2020 New Brunswick general election|New Brunswick 2020]]
* [[41st Ontario general election|Ontario]]
+
* [[2019 Newfoundland and Labrador general election|Newfoundland and Labrador 2019]]
* [[40th Quebec general election|Quebec]]
+
* [[2019 Northwest Territories general election|Northwest Territories 2019]]
* [[38th New Brunswick general election|New&nbsp;Brunswick]]
+
* [[2017 Nova Scotia general election|Nova Scotia 2017]]
* [[Next Nova Scotia general election|Nova&nbsp;Scotia]]{{#ifexist:65th Prince Edward Island general election|
+
* [[2017 Nunavut general election|Nunavut 2017]]
* [[65th Prince Edward Island general election|Prince&nbsp;Edward&nbsp;Island]]}}
+
* [[2018 Ontario general election|Ontario 2018]]
* [[49th Newfoundland and Labrador general election|Newfoundland&nbsp;and&nbsp;Labrador]]{{#ifexist:38th Yukon general election|
+
* [[2019 Prince Edward Island general election|Prince Edward Island 2019]]
* [[38th Yukon general election|Yukon]]}}{{#ifexist:23rd Northwest Territories general election|
+
* [[2018 Quebec general election|Quebec 2018]]
* [[Northwest Territories general election, 2015|Northwest&nbsp;Territories]]}}{{#ifexist:4th Nunavut general election|
+
* [[2020 Saskatchewan general election|Saskatchewan 2020]]
* [[4th Nunavut general election|Nunavut]]}}
+
* [[2016 Yukon general election|Yukon 2016]]
 +
* [[Elections in Canada#Provincial and territorial|Provincial summary]]
  
|group3  = Lists
+
| group2 = Future elections
|list3  =  
+
| list2  =
* [[Timeline of Canadian elections|'''Amalgamated&nbsp;timeline''']]
+
* [[44th Canadian federal election|Federal]]
* [[List of Canadian federal general elections|Federal]] {{nowrap|([[List of federal by-elections in Canada|By-elections]])}}
+
* [[31st Alberta general election|Alberta]]
* [[List of British Columbia general elections|BC]] {{nowrap|([[List of British Columbia by-elections|By-elections]])}}
+
* [[Next British Columbia general election|British Columbia]]
 +
* [[43rd Manitoba general election|Manitoba]]
 +
* [[Next New Brunswick general election|New Brunswick]]
 +
* [[51st Newfoundland and Labrador general election|Newfoundland and Labrador]]
 +
* [[Next Northwest Territories general election|Northwest Territories]]
 +
* [[Next Nova Scotia general election|Nova Scotia]]
 +
* [[6th Nunavut general election|Nunavut]]
 +
* [[43rd Ontario general election|Ontario]]
 +
* [[67th Prince Edward Island general election|Prince Edward Island]]
 +
* [[43rd Quebec general election|Quebec]]
 +
* [[Next Saskatchewan general election|Saskatchewan]]
 +
* [[39th Yukon general election|Yukon]]
 +
 
 +
| group3 = Lists
 +
| list3  =
 +
* [[Timeline of Canadian elections|Amalgamated timeline]]
 +
* [[List of Canadian federal general elections|Federal]]
 +
**[[List of federal by-elections in Canada|By-elections]]
 
* [[List of Alberta general elections|AB]]
 
* [[List of Alberta general elections|AB]]
* [[List of Saskatchewan general elections|SK]]
+
**[[List of Alberta by-elections|By-elections]]
 +
**[[Alberta Senate nominee elections|Senate]]
 +
* [[List of British Columbia general elections|BC]]
 +
**[[List of British Columbia by-elections|By-elections]]
 
* [[List of Manitoba general elections|MB]]
 
* [[List of Manitoba general elections|MB]]
* [[List of Ontario general elections|ON]]
+
**[[List of Manitoba by-elections|By-elections]]
* [[List of Quebec general elections|QC]]
 
 
* [[List of post-confederation New Brunswick general elections|NB]]
 
* [[List of post-confederation New Brunswick general elections|NB]]
* [[List of post-confederation Nova Scotia general elections|NS]]
+
**[[List of New Brunswick by-elections|By-elections]]
* [[List of post-confederation Prince Edward Island general elections|PE]]
 
 
* [[List of Newfoundland and Labrador general elections|NL]]
 
* [[List of Newfoundland and Labrador general elections|NL]]
* [[List of Yukon general elections|YU]]
+
**[[List of Newfoundland and Labrador by-elections|By-elections]]
 
* [[List of Northwest Territories general elections|NT]]
 
* [[List of Northwest Territories general elections|NT]]
 +
* [[List of post-confederation Nova Scotia general elections|NS]]
 +
**[[List of Nova Scotia by-elections|By-elections]]
 
* [[List of Nunavut general elections|NU]]
 
* [[List of Nunavut general elections|NU]]
 +
* [[List of Ontario general elections|ON]]
 +
**[[List of Ontario by-elections|By-elections]]
 +
* [[List of post-confederation Prince Edward Island general elections|PE]]
 +
**[[List of Prince Edward Island by-elections|By-elections]]
 +
* [[List of Quebec general elections|QC]]
 +
**[[List of Quebec by-elections|By-elections]]
 +
* [[List of Saskatchewan general elections|SK]]
 +
**[[List of Saskatchewan by-elections|By-elections]]
 +
* [[List of Yukon general elections|YT]]
 +
**[[List of Yukon by-elections|By-elections]]
  
|group4 = Electoral districts
+
| group4 = Electoral districts
|list4  =  
+
| list4  =
*'''[[List of Canadian federal electoral districts|Federal]]'''
+
* [[List of Canadian federal electoral districts|Federal]]
* [[:Template:British Columbia provincial electoral districts 2009-|BC]]
 
 
* [[Alberta provincial electoral districts|AB]]
 
* [[Alberta provincial electoral districts|AB]]
* [[:Template:SK-ED|SK]]
+
* [[:Template:British Columbia provincial electoral districts 2017–present|BC]]
 
* [[:Template:MB-ED|MB]]
 
* [[:Template:MB-ED|MB]]
* [[:Template:ON-ED|ON]]
 
* [[:Template:QC-ED|QC]]
 
 
* [[:Template:NB-ED|NB]]
 
* [[:Template:NB-ED|NB]]
 +
* [[:Template:NL-ED|NL]]
 
* [[:Template:NS-ED|NS]]
 
* [[:Template:NS-ED|NS]]
* [[:Template:PEI-ED|PE]]
 
* [[:Template:NL-ED|NL]]
 
* [[:Template:YU-ED|YU]]
 
 
* [[:Template:NWT-ED|NT]]
 
* [[:Template:NWT-ED|NT]]
 
* [[List of Nunavut territorial electoral districts|NU]]
 
* [[List of Nunavut territorial electoral districts|NU]]
 +
* [[:Template:ON-ED|ON]]
 +
* [[:Template:PEI-ED|PE]]
 +
* [[:Template:QC-ED|QC]]
 +
* [[:Template:SK-ED|SK]]
 +
* [[:Template:YU-ED|YT]]
  
|belowstyle  = padding:0.35em 1.0em; line-height:1.1em;background:white;color:black;border: 1px solid #CC0000;
+
| below = {{portal-inline|size=tiny|Canada}} {{portal-inline|Politics}}
|below = {{icon|Portal}} '''[[Portal:Canadian politics|The Politics of Canada portal]]'''
 
 
}}<noinclude>
 
}}<noinclude>
 +
{{collapsible option}}
  
 
[[Category:Canada election year templates]]
 
[[Category:Canada election year templates]]
[[fr:Modèle:Palette Élections récentes au Canada]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 04:31, 12 November 2020

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.