Template:Canada census/doc: Difference between revisions
Keep categories out of the sandbox |
m Moving Category:Canada people and person templates to Category:Canadian people and person templates per Wikipedia:Categories for discussion/Speedy |
||
(18 intermediate revisions by 8 users not shown) | |||
Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
||
{{Uses TemplateStyles|Template:Canada census/styles.css}} |
|||
This template is used to provide a summary of selected census figures released by Statistics Canada for the 2011, 2006, and optionally 2001 census years. This template has been designed to allow for future census years to be added without the need for changing existing template usages (except to add the new census data of course). |
|||
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 {{tl|Canada census/reference}}. |
|||
=== Usage === |
=== Usage === |
||
< |
<syntaxhighlight lang="wikitext">{{Canada census |
||
|location= |
|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_population= |2011_pop_delta= |2011_land_area= |2011_pop_density= |
||
|2011_median_age= |2011_median_age_m= |2011_median_age_f= |
|2011_median_age= |2011_median_age_m= |2011_median_age_f= |
||
|2011_total_pvt_dwell= |2011_mean_hh_income= |2011_access_date= |
|2011_total_pvt_dwell= |2011_occ_pvt_dwell= |2011_mean_hh_income= |2011_access_date= |
||
|2006_population= | 2006_pop_delta= | 2006_land_area= | 2006_pop_density= |
|||
|2006_median_age= | 2006_median_age_m= | 2006_median_age_f= |
|||
|2006_total_pvt_dwell= | 2006_mean_hh_income= | 2006_access_date= |
|||
|2001_population= | 2001_pop_delta= | 2001_land_area= | 2001_pop_density= |
|||
|2001_median_age= | 2001_median_age_m= | 2001_median_age_f= |
|||
|2001_total_pvt_dwell= |2001_mean_hh_income= | 2001_access_date= |
|||
|notes= |
|notes= |
||
}} |
}} |
||
<!-- This template creates named references cp2011, cp2006, and |
<!-- 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. --> |
||
</syntaxhighlight> |
|||
</pre> |
|||
{| class="wikitable" style="font-size:90%; margin:auto; width:auto;" |
{| class="wikitable" style="font-size:90%; margin:auto; width:auto;" |
||
Line 29: | Line 31: | ||
|'''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. |
|'''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. |
||
|- |
|- |
||
! colspan=2 style="background:yellow;" | ''' |
! colspan=2 style="background:yellow;" | '''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'''<br/>{{pad|1em}}'''2021_median_age_m'''<br/>{{pad|1em}}'''2021_median_age_f''' || Median age in 2021.<br/>{{pad|1em}}Median age of males in 2021.<br/>{{pad|1em}}Median age in females in 2021. |
|||
⚫ | |||
|- |
|- |
||
|'''2021_total_pvt_dwell'''<br/>{{pad|1em}}'''2021_occ_pvt_dwell''' || Total private dwellings in 2021.<br/>{{pad|1em}}Private dwellings occupied by usual residents in 2021. |
|||
|'''2011_median_age_m'''|| Median age of males in 2011. |
|||
|- |
|- |
||
|''' |
|'''2021_mean_hh_income''' || Median household income in 2020 as included in the 2021 census figures. |
||
|- |
|- |
||
|'''2021_geocode''' || Statistics Canada's [https://www150.statcan.gc.ca/n1/pub/92-195-x/2021001/other-autre/geograph/code-eng.htm Geographic Code] for the community. Used in reference when provided. |
|||
|'''2011_total_pvt_dwell''' || Total private dwellings in 2011. |
|||
|- |
|- |
||
⚫ | |||
⚫ | |''' |
||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
|''' |
|'''2016_pop_delta''' || Population delta percentage from 2011. Use +/- signs. |
||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
|''' |
|'''2016_pop_density'''|| Population density for 2016. Will be automatically converted to also show square miles. |
||
|- |
|- |
||
|'''2016_median_age'''<br/>{{pad|1em}}'''2016_median_age_m'''<br/>{{pad|1em}}'''2016_median_age_f''' || Median age in 2016.<br/>{{pad|1em}}Median age of males in 2016.<br/>{{pad|1em}}Median age in females in 2016. |
|||
⚫ | |||
|- |
|- |
||
|'''2016_total_pvt_dwell'''<br/>{{pad|1em}}'''2016_occ_pvt_dwell''' || Total private dwellings in 2016.<br/>{{pad|1em}}Private dwellings occupied by usual residents in 2016. |
|||
|'''2006_median_age''' || Median age in 2006. |
|||
|- |
|- |
||
⚫ | |'''2016_mean_hh_income''' || Median household income in 2015 as included in the 2016 census figures. <!-- (though mean, aka average, and median are both available from the 2016 National Household Survey, only median is available for 2006 and 2001 census for comparison purposes ''[parameter should be renamed accordingly]'') --> |
||
|'''2006_median_age_m'''|| Median age of males in 2006. |
|||
|- |
|- |
||
⚫ | |||
|'''2006_median_age_f'''|| Median age in females in 2006. |
|||
|- |
|- |
||
⚫ | |||
|'''2006_total_pvt_dwell''' || Total private dwellings in 2006. |
|||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
|'''2011_land_area''' || 2011 land area in square kilometres. Will be automatically converted to also show square miles. |
|||
⚫ | |||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
|'''2011_median_age'''<br/>{{pad|1em}}'''2011_median_age_m'''<br/>{{pad|1em}}'''2011_median_age_f''' || Median age in 2011.<br/>{{pad|1em}}Median age of males in 2011.<br/>{{pad|1em}}Median age in females in 2011. |
|||
|'''2001_pop_delta''' || Population delta percentage from 1996. Use +/- signs. |
|||
|- |
|- |
||
|'''2011_total_pvt_dwell'''<br/>{{pad|1em}}'''2011_occ_pvt_dwell''' || Total private dwellings in 2011.<br/>{{pad|1em}}Private dwellings occupied by usual residents in 2011. |
|||
⚫ | |||
|- |
|- |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
⚫ | |||
|'''2001_median_age''' || Median age in 2001. |
|||
|- |
|||
|'''2001_median_age_m'''|| Median age of males in 2001. |
|||
|- |
|||
|'''2001_median_age_f'''|| Median age in females in 2001. |
|||
|- |
|||
|'''2001_total_pvt_dwell''' || Total private dwellings in 2001. |
|||
|- |
|||
|'''2001_mean_hh_income''' || Median household income in 2000 as included in the 2001 census figures (only median is available in the 2001 census <small>''[parameter should be renamed accordingly]''</small>). |
|||
|- |
|||
⚫ | |||
|} |
|} |
||
All parameters are optional |
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. |
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. |
||
Line 102: | Line 94: | ||
== Census data == |
== Census data == |
||
Census data for populating the template can be found at the following links: |
Census data for populating the template can be found at the following links: |
||
* [ |
* [https://www12.statcan.gc.ca/census-recensement/2021/dp-pd/prof/index.cfm?Lang=E 2021 Census Profile - Statistics Canada] |
||
* [ |
* [https://www12.statcan.gc.ca/census-recensement/2016/dp-pd/prof/index.cfm?Lang=E 2016 Census Profile - Statistics Canada] |
||
* [http://www12.statcan.ca/census-recensement/ |
* [http://www12.statcan.gc.ca/census-recensement/2011/dp-pd/prof/index.cfm?Lang=E 2011 Census Profile - Statistics Canada] |
||
* [ |
<!-- * [https://www12.statcan.gc.ca/census-recensement/2006/dp-pd/prof/92-591/index.cfm?Lang=E 2006 Community Profiles - Statistics Canada] |
||
* [https://www12.statcan.gc.ca/english/profil01/CP01/Index.cfm?Lang=E 2001 Community Profiles - Statistics Canada] --> |
|||
<includeonly>{{Sandbox other|| |
|||
<!-- |
|||
=== See also === |
|||
*{{tl|Canada CP 2006}} - Old deprecated template for 2006 (has been deleted) |
|||
*{{tl|Canada CP 2001}} - Old deprecated template for 2001 (has been deleted) |
|||
--> |
|||
<includeonly> {{#ifeq:{{SUBPAGENAME}}|sandbox|| |
|||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
||
[[Category:Templates that generate named references]] |
[[Category:Templates that generate named references]] |
||
[[Category:Canadian people and person templates|Census]] |
|||
[[Category:Demography templates|Canada]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 07:29, 3 May 2024
![]() | This is a documentation subpage for Template:Canada census. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses TemplateStyles: |
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:
- 2021 Census Profile - Statistics Canada
- 2016 Census Profile - Statistics Canada
- 2011 Census Profile - Statistics Canada