This is the template sandbox page for Template:Infobox Canada electoral district (diff). See also the companion subpage for test cases. |
This template is used on approximately 2,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
This template is used to provide an infobox for all electoral districts in Canada, including federal, provincial or territorial, and those with multiple jurisdictions.
[[File:Flag of {{{province}}}.svg|23x15px|border |alt=|link=]] {{{province}}} electoral district | |
---|---|
{{{imagemap}}} | |
Coordinates: | {{{coordinates}}} {{{coordinates_caption}}} (as of 22 November 2024[update]) |
Federal electoral district | |
Legislature | House of Commons |
District created | {{{fed-created}}} |
District abolished | {{{fed-abolished}}} |
First contested | {{{fed-election-first}}} |
Last contested | {{{fed-election-last}}} |
District webpage | profile, map |
Provincial electoral district | |
Legislature | Warning: province is mis-specified. |
District created | {{{prov-created}}} |
District abolished | {{{prov-abolished}}} |
District re-created | {{{prov-created2}}} |
District re-abolished | {{{prov-abolished2}}} |
First contested | {{{prov-election-first}}} |
Last contested | {{{prov-election-last}}} |
Demographics | |
Population ({{{demo-census-date}}}){{{demo-pop-ref}}} | {{{demo-pop}}} |
Electors ({{{demo-electors-date}}}){{{demo-electors-ref}}} | {{{demo-electors}}} |
Area (km²){{{demo-area-ref}}} | {{{demo-area}}} |
Census division(s) | {{{demo-cd}}} |
Census subdivision(s) | {{{demo-csd}}} |
This template contains complex conditional operations that allow for flexible definitions. Not all districts require all fields. A complete specification is:
{{Infobox Canada electoral district
|name =
|province =
|image =
|imagemap =
|caption =
|coordinates =
|coordinates_caption =
|coordinates_date =
<!-- Federal riding-->
|fed-status =
|fed-district-number =
|fed-created =
|fed-abolished =
|fed-election-first =
|fed-election-last =
|fed-rep =
|fed-rep-party =
<!--Provincial riding-->
|prov-status =
|prov-created =
|prov-abolished =
|prov-election-first =
|prov-election-last =
|prov-rep =
|prov-rep-party =
<!--Demographics-->
|demo-census-date =
|demo-pop =
|demo-pop-ref =
|demo-electors =
|demo-electors-date =
|demo-electors-ref =
|demo-area =
|demo-area-ref =
|region =
|communities =
|communities-name =
}}
The only required field is province. Despite its name, it also handles territories. At least one of fed-status or prov-status must be present. These indicate that either a federal electoral district (using fed-status), or provincial or territorial electoral district (using prov-status) is being defined, and further the current status of that district in that jurisdiction.
Additionally, although both federal and provincial parameters are optional, at least one of the federal or provincial sections must be specified.
These parameters provide additional information or flexibility to the infobox.
{{coord|latitude|N|longitude|W|region:CA-XX_type:landmark_dim:YYkm|display=inline,title}}
, where: latitude and longitude are decimal values, degrees & minutes, etc.; "region:CA-XX_type:landmark_dim:YYkm" are coordinate parameters; "CA-XX" is a Canadian ISO 3166 region code with XX the province / territory portion; and "dim:YYkm" is the diameter in kilometres of a circle centred on the coordinates encompassing the electoral district — choose an appropriate value for YY. For a listing of Canadian region codes, see the article ISO 3166-2:CA. Other coord parameters are possible; see the article Template:Coord#Coordinate parameters.These parameters are required to define a federal electoral district. All must be present for active districts except fed-abolished.
These parameters are required to define a provincial or territorial electoral district. All must be present for active districts except prov-abolished. For territorial districts in Nunavut or the Northwest Territories, the prov-rep-party field should not be defined.
Demographic information about the electoral district.
If both demo-pop and demo-area are properly defined, the template will automatically include a population density field, rounded to one decimal place. Only demo-cd, demo-csd and demo-area will be displayed for defunct ridings.
The following would be used for the article on the electoral district of Oak Ridges—Markham, which is both a federal and provincial district. (Data are accurate as of August 2010.)
{{Infobox Canada electoral district
|province = Ontario
|image = Oak Ridges-Markham.png
|coordinates = {{coord|43|55|45|N|79|31|37|W|region:CA-ON_type:landmark_dim:50km|display=inline,title}}
|coordinates_caption = Location of the federal district constituency office in [[King City, Ontario|King City]]
|coordinates_date = 2010-08-26
|fed-status = active
|fed-created = 2003
|fed-election-first = 2004
|fed-election-last = 2008
|fed-rep = Paul Calandra
|fed-rep-party = Conservative
|prov-status = active
|prov-created = 2006
|prov-election-first = 2007
|prov-rep = Helena Jaczek
|prov-rep-party = Liberal
|demo-census-date = 2006
|demo-pop = 169642
|demo-electors = 123138
|demo-electors-date = 2007
|demo-area = 718
|region = [[York Regional Municipality, Ontario|York]]
|communities = [[Markham, Ontario|Markham]], [[Richmond Hill, Ontario|Richmond Hill]], [[Whitchurch-Stouffville, Ontario|Whitchurch-Stouffville]], [[King, Ontario|King]]
}}
For an electoral district in just one jurisdiction, some fields may be omitted. For example, in the defunct district of Neepawa, the infobox would be:
{{Infobox Canada electoral district
|name = Neepawa
|province = Manitoba
|fed-status = defunct
|fed-created = 1914
|fed-abolished = 1947
|fed-election-first = 1917
|fed-election-last = 1945
}}
For a territorial electoral district in Nunavut or the Northwest Territories, which operate under a consensus government, party affiliation (prov-rep-party) information is ignored, and should not be included. For example, for the district of Kugluktuk, we would have the following template:
{{Infobox Canada electoral district
|name = Kugluktuk
|province = Nunavut
|image =
|prov-status = active
|prov-created = 1999
|prov-election-first = 1999
|prov-election-last = 2004
|prov-rep = Joe Allen Evyagotailak
|demo-census-date = 2006
|demo-pop = 1302
|demo-electors =
|demo-area =
|region = [[Kitikmeot Region, Nunavut|Kitikmeot Region]]
|communities = [[Kugluktuk, Nunavut|Kugluktuk]]
}}
For a pre-Confederation electoral district in the Province of Canada, a typical entry may appear as follows:
{{Infobox Canada electoral district
| name = Champlain
| province = Province of Canada
| prov-status = defunct
| prov-created = 1841
| prov-abolished = 1867
| prov-election-first = 1841
| prov-election-last = 1867
}}