This template is used to provide a summary of selected census figures released by Statistics Canada for the 2021, 2016, and optionally 2011 census years. Because the tables got too wide, this template is no longer designed to allow for future census years to be added without the need for changing existing template usages. The template maintains the table for the last three years. Older named references for the years back to 2001 (currently 2006 and 2001) must be maintained since these references are also used in the table text as well as the template. As years are removed, add the references to the "earlier" list at the bottom of the table. Add the reference for the new census and the access date to {{Canada census/reference}}.

Usage

edit
{{Canada census
 |location=
 |2021_population= |2021_pop_delta= |2021_land_area= |2021_pop_density=
 |2021_median_age= |2021_median_age_m= |2021_median_age_f=
 |2021_total_pvt_dwell= |2021_occ_pvt_dwell= |2021_mean_hh_income= |2021_geocode= |2021_access_date=
 |2016_population= |2016_pop_delta= |2016_land_area= |2016_pop_density=
 |2016_median_age= |2016_median_age_m= |2016_median_age_f=
 |2016_total_pvt_dwell= |2016_occ_pvt_dwell= |2016_mean_hh_income= |2016_access_date=
 |2011_population= |2011_pop_delta= |2011_land_area= |2011_pop_density=
 |2011_median_age= |2011_median_age_m= |2011_median_age_f= 
 |2011_total_pvt_dwell= |2011_occ_pvt_dwell= |2011_mean_hh_income= |2011_access_date=
 |notes=
}}
<!-- This template creates named references cp2021, cp2016, cp2011, cp2006, and cp2001 for use in articles. Each is a reference to the Statistics Canada Community Profile search page for the corresponding census year. -->
Field Description
location Optional field to specify location or census area. If left blank, the page name appears here.
notes Optional notes for census info, such as corrections and updates. Avoid excessive long notes, because demographic explanations or further info should be added in paragraph format to the actual article.
2021
2021_population Population in 2021
2021_pop_delta Population delta percentage from 2016. Use +/- signs.
2021_land_area 2021 land area in square kilometres. Will be automatically converted to also show square miles.
2021_pop_density Population density for 2021. Will be automatically converted to also show square miles.
2021_median_age
 2021_median_age_m
 2021_median_age_f
Median age in 2021.
 Median age of males in 2021.
 Median age in females in 2021.
2021_total_pvt_dwell
 2021_occ_pvt_dwell
Total private dwellings in 2021.
 Private dwellings occupied by usual residents in 2021.
2021_mean_hh_income Median household income in 2020 as included in the 2021 census figures.
2021_geocode Statistics Canada's Geographic Code for the community. Used in reference when provided.
2021_access_date= Date when 2021 census data was first accessed for use in this template. Use the MDY format. If not specified, no access date will be displayed.
2016
2016_population Population in 2016
2016_pop_delta Population delta percentage from 2011. Use +/- signs.
2016_land_area 2016 land area in square kilometres. Will be automatically converted to also show square miles.
2016_pop_density Population density for 2016. Will be automatically converted to also show square miles.
2016_median_age
 2016_median_age_m
 2016_median_age_f
Median age in 2016.
 Median age of males in 2016.
 Median age in females in 2016.
2016_total_pvt_dwell
 2016_occ_pvt_dwell
Total private dwellings in 2016.
 Private dwellings occupied by usual residents in 2016.
2016_mean_hh_income Median household income in 2015 as included in the 2016 census figures.
2016_access_date= Date when 2016 census data was first accessed for use in this template. Use the MDY format. If not specified, no access date will be displayed.
2011
2011_population Population in 2011
2011_pop_delta Population delta percentage from 2006. Use +/- signs.
2011_land_area 2011 land area in square kilometres. Will be automatically converted to also show square miles.
2011_pop_density Population density for 2011. Will be automatically converted to also show square miles.
2011_median_age
 2011_median_age_m
 2011_median_age_f
Median age in 2011.
 Median age of males in 2011.
 Median age in females in 2011.
2011_total_pvt_dwell
 2011_occ_pvt_dwell
Total private dwellings in 2011.
 Private dwellings occupied by usual residents in 2011.
2011_mean_hh_income Median household income in 2010 as included in the 2011 census figures.
2011_access_date= Date when 2011 census data was first accessed for use in this template. Use the MDY format. If not specified, no access date will be displayed.

All parameters are optional. If the 2011_population is not set or is empty, the 2011 column will not appear.

By default, the box will be located at the left margin of the article. The location can be overridden by specifying the margin parameter which overrides the CSS margin property.

Census data

edit

Census data for populating the template can be found at the following links: