Template:UK subdivision population/doc
Script error: No such module "Message box". 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:
- UK nations and regions
- English districts (including unitary authorities, non-metropolitan districts, metropolitan districts and sui generis councils)
- English non-metropolitan and metropolitan counties
- Scottish council areas
- Welsh unitary authorities
- Northern Ireland districts
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
General templates
- Template:Tl – gives the population for a subdivision
- Template:Tl – gives the subdivision's population density (per square kilometre)
- Template:Tl – gives the subdivision's land area (square kilometres)
Reference templates
- Template:Tl – gives the year to which the estimate applies (not the year it was generated)
- Template:Tl – gives a citation for the source of population data
Rank templates
English district ranks
- Template:Tl – gives the current total number of English districts
- Template:Tl – gives the district's position in a list ordered by population (greatest first)
- Template:Tl – gives the district's position in a list ordered by population density (greatest first)
- Template:Tl – gives the district's position in a list ordered by land area (largest first).
English admin county ranks
- Template:Tl – gives the county's position in a list ordered by population (greatest first)
- Template:Tl – gives the county's position in a list ordered by land area (largest first).
Scottish council ranks
- Template:Tl – gives the district's position in a list ordered by population (greatest first)
- Template:Tl – gives the district's position in a list ordered by land area (largest first).
Welsh council ranks
- Template:Tl – gives the district's position in a list ordered by population (greatest first)
- Template:Tl – gives the district's position in a list ordered by land area (largest first).
Northern Ireland district ranks
- Template:Tl – gives the district's position in a list ordered by population (greatest first)
- Template:Tl – gives the district's position in a list ordered by land area (largest first).
Usage
- {{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
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}}
- {{UK subdivision area|GSS=E09000016|RND=2}}
- {{UK subdivision statistics year}}
- 2022
- {{UK subdivision statistics citation}}
- Script error: No such module "citation/CS1".
- {{English district total}}
- {{English district population rank|GSS=E09000016}}
- 67th
- {{#invoke:String|sub|{{English district population rank|GSS=E09000016}}|1|-3}}
- Script error: No such module "String". - removes the "st", "nd", "rd" or "th"
- {{English district density rank|GSS=E09000016}}
- {{English district area rank|GSS=E09000016}}
Putting it all together
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 Script error: No such module "convert". and a population density of Script error: No such module "convert".. It is the 67th largest district in England by population.
See also
References
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".