Template:UK subdivision population/doc

This is a group of templates that provide an easy method to link to population statistics for the following UK subdivisions: Subdivisions are identified by passing a GSS code as a parameter.
 * 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

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.

General templates

 * UK subdivision population – gives the population for a subdivision
 * UK subdivision density – gives the subdivision's population density (per square kilometre)
 * UK subdivision area – gives the subdivision's area (square kilometres)

English district ranks

 * English district total – gives the current total number of English districts
 * English district population rank – gives the district's position in a list ordered by population (greatest first)
 * English district density rank – gives the district's position in a list ordered by population density (greatest first)
 * English district area rank – gives the district's position in a list ordered by area (largest first).

English admin county ranks

 * English admin county population rank – gives the county's position in a list ordered by population (greatest first)
 * English admin county area rank – gives the county's position in a list ordered by area (largest first).

Scottish council ranks

 * Scottish council population rank – gives the district's position in a list ordered by population (greatest first)
 * Scottish council density rank – gives the district's position in a list ordered by population density (greatest first)
 * Scottish council area rank – gives the district's position in a list ordered by area (largest first).

Welsh council ranks

 * Welsh council population rank – gives the district's position in a list ordered by population (greatest first)
 * Welsh council density rank – gives the district's position in a list ordered by population density (greatest first)
 * Welsh council area rank – gives the district's position in a list ordered by area (largest first).

Northern Ireland district ranks

 * NI district population rank – gives the district's position in a list ordered by population (greatest first)
 * NI district density rank – gives the district's position in a list ordered by population density (greatest first)
 * NI district area rank – gives the district's position in a list ordered by area (largest first).

Reference templates

 * UK subdivision population citation – gives a citation for the source of population data
 * UK statistics year – gives the year to which the estimate applies (not the year it was generated)

Usage

 * One required parameter: the GSS code for the subdivision
 * One required parameter: the GSS code for the subdivision


 * One required parameter: the GSS code for the subdivision
 * One required parameter: the GSS code for the subdivision


 * One required parameter: the GSS code for the subdivision
 * One required parameter: the GSS code for the subdivision


 * No parameters
 * No parameters


 * One required parameter: the GSS code for the district
 * One required parameter: the GSS code for the district


 * One required parameter: the GSS code for the district
 * One required parameter: the GSS code for the district


 * One required parameter: the GSS code for the district
 * One required parameter: the GSS code for the district


 * No parameters
 * No parameters


 * No parameters
 * No parameters

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












 * - removes the "st", "nd", "rd or "th"
 * - removes the "st", "nd", "rd or "th"









Putting it all together
Havering has a population of. The population density is undefined /sqkm.

Havering has a population of. The population density is undefined /sqkm.