This is a documentation subpage for Template:English district population. It may contain usage information, categories and other content that is not part of the original template page. |
This is a group of templates that provide an easy method to link to population statistics for English districts. The templates are updated from time to time as the Office for National Statistics (ONS) releases new data, thus it should not be necessary to manually update the articles or their references. Districts are identified by passing a GSS code as a parameter. The Office for National Statistics began using the new GSS codes in preference to the old ONS codes in January 2011. The templates' support for the old 4-character ONS codes has now been discontinued (February 2017).
The templates are:
- {{English district total}} – gives the current total number of districts
- {{English district population}} – gives the population for a district
- {{English district rank}} – gives the district's position in a list ordered by population (greatest first)
- {{English district density}} – gives the district's population density (per square kilometre)
- {{English district density rank}} – gives the district's position in a list ordered by population density (greatest first)
- {{English district area}} – gives the district's area (square kilometres)
- {{English district area rank}} – gives the district's position in a list ordered by area (largest first).
The following also apply to Wales, Scotland and Northern Ireland:
- {{United Kingdom district population citation}} – gives a citation for the source of population data
- {{United Kingdom statistics year}} – gives the year to which the estimate applies (not the year it was generated)
- {{UK council control}} – gives the political control of the council
Usage
edit- {{English district total}}
- No parameters
- {{English district population|GSS= }}
- One required parameter: the GSS code for the district
- {{English district rank|GSS= }}
- One required parameter: the GSS code for the district
- {{English district density|GSS= }}
- One required parameter: the GSS code for the district
- {{English district area|GSS= }}
- One required parameter: the GSS code for the district
- {{English district area rank|GSS= }}
- One required parameter: the GSS code for the district
- {{United Kingdom district population citation}}
- Optional parameter |area
- Optional parameter |England, |NI, |Scotland or |Wales
- {{United Kingdom statistics year}}
- No parameters
- {{UK council control|GSS= }}
- One required parameter: the GSS code for the district
Examples
editE09000016 is the GSS code for the London Borough of Havering.
- {{English district total}}
- 296
- {{English district population|GSS=E09000016}}
- 264,703
- {{English district rank|GSS=E09000016}}
- 67th
- {{#invoke:String|sub|{{English district rank|GSS=E09000016}}|1|-3}}
- 67 - removes the "st", "nd", "rd or "th"
- {{English district density|GSS=E09000016}}
- 2,356
- {{English district density rank|GSS=E09000016}}
- 81st
- {{English district area|GSS=E09000016}}
- 112
- {{English district area rank|GSS=E09000016}}
- 184th
- {{United Kingdom district population citation|England}}
- "Mid-Year Population Estimates, UK, June 2022". Office for National Statistics. 26 March 2024. Retrieved 3 May 2024.
- {{United Kingdom district population citation|area}}
- "Mid-Year Population Estimates, UK, June 2022". Office for National Statistics. 26 March 2024. Retrieved 3 May 2024.
- {{United Kingdom statistics year}}
- 2022
- {{UK council control|GSS=E09000016}}
Putting it all together
editHavering has a population of {{English district population|GSS=E09000016}}({{United Kingdom statistics year}}). <ref name=popstats>{{United Kingdom district population citation|England}}</ref> The population density is {{convert|{{English district density|GSS=E09000016}}|/sqkm|/sqmi|0}}.
Havering has a population of 264,703 (2022).[1] The population density is 2,356 per square kilometre (6,102/sq mi).
- ^ "Mid-Year Population Estimates, UK, June 2022". Office for National Statistics. 26 March 2024. Retrieved 3 May 2024.