Template:Census 2021 AUS/doc
| icon | This is a documentation subpage for Template:Census 2021 AUS. It may contain usage information, categories and other content that is not part of the original template page. |
| Warning | This template is used on approximately 6,000 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. |
| This template uses Lua: |
This template allows for the inclusion of direct web links to official 2021 census data into Australian geographical articles. Due to periodic changes/redesigns on the ABS website, these links may change: the advantage of using the template is therefore that all articles using this template will migrate with it.
It is possible that this template has been made obsolete in some instances by Module:PopulationFromWikidata/doc. Further investigation is needed before a blanket recommendation for that module instead of this template. If the article only includes population data, it might be better to use only the module, and not this template. If the article includes population data and other demographic information, the module and the template should both be used. The only minor issue that remains is that this causes duplicate citations ([1] and [2] instead of the preferred 1 "a" and "b").
Usage
[edit source]General
[edit source]{{Census 2021 AUS|id= |name= |access-date= |quick=on}}
Lists only
[edit source]{{Census 2021 AUS|id= |link=yes}}
Parameters
[edit source]id- ABS ID for the region (note: may be different from 2011, so don't convert across without checking.)
name- ABS Name for the region: e.g. Raymond Terrace.
access-date- Optional parameter to record date accessed in the form dd mmmm yyyy (e.g. 29 April 2026).
quick- This is an optional but widely used parameter. When added at the end, generally as
|quick=on, it forces QuickStats instead of a link to the "Census Community Profiles" page. link- This is an optional parameter that causes a bare link to be generated instead of a citation if
|link=yesand is for use in lists such as List of cities in Australia by population#50 largest urban centres by population. When this is the case, the only necessary parameter isid. Other parameters will not be used. This functionality is similar to that provided by {{Census 2006 AUS link}}.
Examples
[edit source]As a citation (QuickStats)
[edit source]- {{Census 2021 AUS|id=SAL13340|name=Raymond Terrace|access-date=29 April 2026|quick=on}} produces:
- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
As a citation (Census Community Profiles)
[edit source]- {{Census 2021 AUS|id=SAL13340|name=Raymond Terrace|access-date=29 April 2026}} produces:
- Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
As a bare link
[edit source]- {{Census 2021 AUS|id=SAL13340|link=yes}} produces [1]Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Tracking categories
[edit source]- Category:Australian Statistical Geography Standard 2021 ID not in Wikidata (188)
- Category:Australian Statistical Geography Standard 2021 ID different from Wikidata (160)
- Category:Australian Statistical Geography Standard 2021 ID same as Wikidata (5,662)
See also
[edit source]- {{Census 2001 AUS}}
- {{Census 2006 AUS}}
- {{Census 2011 AUS}}
- {{Census 2016 AUS}}
- {{CensusAU}}
TemplateData
[edit source]TemplateData for Census 2021 AUS
Creates a citation to the Australian Bureau of Statistics for the 2021 Census
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ABS ID | id | ABS ID for the region (called code on the page), please double-check as many have changed since 2011
| String | required |
| ABS Name | name | ABS Name for the region
| String | suggested |
| Access date | access-date | Date the information was retrieved from the ABS
| Date | suggested |
| Quick stats? | quick | use on for Quick stats, omit for Community Profile
| String | suggested |
| Bare URL? | link | yes causes a bare URL to be generated instead of a citation if link=yes and is for use in lists
| String | deprecated |