Jump to content

Template:UK subdivision population/doc

From Wikipedia, the free encyclopedia

This is a group of templates that provide an easy method to link to population, land area and density statistics for the following UK subdivisions:

Subdivisions are identified by passing a GSS code as a parameter.

This template does not work for English ceremonial counties, Welsh preserved counties or Scottish lieutenancy areas, which do not have GSS codes. For English ceremonial counties use Template:English cerem counties.

Templates

[edit]

General templates

[edit]

Reference templates

[edit]

Rank templates

[edit]

English district ranks

[edit]

English admin county ranks

[edit]

Scottish council ranks

[edit]

Welsh council ranks

[edit]

Northern Ireland district ranks

[edit]

Usage

[edit]
  • {{UK subdivision population|GSS= }}
One required parameter: the GSS code for the subdivision
  • {{UK subdivision density|GSS= }}
One required parameter: the GSS code for the subdivision
  • {{UK subdivision area|GSS= }}
One required parameter: the GSS code for the subdivision
Optionally, a second parameter, 'RND=2', may be provided to generate an area figure to two decimal places. This is useful when adding multiple area figures together in order to get an accurate total. The total figure can then itself be rounded. Note that '2' is the only figure which 'RND' will accept, otherwise it will default to a rounded figure.
  • {{UK subdivision statistics year}}
No parameters
  • {{UK subdivision statistics citation}}
No parameters
  • {{English district total}}
No parameters
  • {{English district population rank|GSS= }}
One required parameter: the GSS code for the district
  • {{English district density rank|GSS= }}
One required parameter: the GSS code for the district
  • {{English district area rank|GSS= }}
One required parameter: the GSS code for the district

Examples

[edit]

E09000016 is the GSS code for the London Borough of Havering.

  • {{UK subdivision population|GSS=E09000016}}
264,703
  • {{UK subdivision density|GSS=E09000016}}
2,356
  • {{UK subdivision area|GSS=E09000016}}
112
  • {{UK subdivision area|GSS=E09000016|RND=2}}
112.34
  • {{UK subdivision statistics year}}
2022
  • {{UK subdivision statistics citation}}
"Mid-Year Population Estimates, UK, June 2022". Office for National Statistics. 26 March 2024. Retrieved 3 May 2024.
  • {{English district total}}
296
  • {{English district population rank|GSS=E09000016}}
67th
  • {{#invoke:String|sub|{{English district population rank|GSS=E09000016}}|1|-3}}
67 - removes the "st", "nd", "rd" or "th"
  • {{English district density rank|GSS=E09000016}}
81st
  • {{English district area rank|GSS=E09000016}}
184th

Putting it all together

[edit]

Havering has a population of {{UK subdivision population|GSS=E09000016}} ({{UK subdivision statistics year}}).<ref>{{UK subdivision statistics citation}}</ref> It has a land area of {{convert|{{UK subdivision area|GSS=E09000016}}|km2|sqmi}} and a population density of {{convert|{{UK subdivision density|GSS=E09000016}}|/sqkm|/sqmi|0}}. It is the {{English district population rank|GSS=E09000016}} largest district in England by population.

Havering has a population of 264,703 (2022).[1] It has a land area of 112 square kilometres (43 sq mi) and a population density of 2,356 per square kilometre (6,102/sq mi). It is the 67th largest district in England by population.

See also

[edit]

References

[edit]