Template:NZ population data 2018 SA2/doc

From Simple English Wikipedia, the free encyclopedia

Usage[change source]

This template is to supply uniform, up-to-date population data to New Zealand articles. It facilitates a mass update of all the population numbers in articles.

This template uses the Statistical Standard for Geographic Areas 2018 (SSGA18).

It includes SA2 areas. Larger area units are included in .

Adding to an article[change source]

{{NZ population data 2018 SA2|Example city|y|y|y}}

The template has seven parameters:

  1. area = Statistics NZ name of area for population. This parameter is mandatory if showpopulation is used.
  2. showpopulation = display the population figure
  3. showtitle = display the title (e.g. "June 2018")
  4. showref = display the reference, can subsequently be reused by adding: <ref name="NZ_population_data_2018"/>
  5. titlepre = free text before the title, for example to add parentheses
  6. titlepost = free text after the title

Leaving a show parameter empty results in that value being hidden.

The template data uses formatted text numbers, with the comma thousands separator, which is suitable for the majority of uses. For the numerical value, for example to use in {{Infobox Settlement}}, use the formula: {{formatnum:{{NZ population data 2018| ##Example city## |y}}|R}}

Annual update[change source]

The data on this template can be updated up to once per year. Statistics New Zealand releases the subnational population estimates around 20 October (see Stats NZ's release calendar for exact date).

  1. Download the latest spreadsheet from Statistics New Zealand
  2. In a new spreadsheet, collect the data from all tables to get two columns, area name and most recent year data
  3. create a new column with formula =" | "&A1&" = "&TEXT(B1,"#,##0") for first entry, copy down entire column. The TEXT function makes sure that commas are kept in the numbers.
  4. copy & paste results into template
  5. update the name "June XXXX"
  6. update the reference