Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Adding to an article  





1.2  Annual update  
















Template:NZ population data 2023 SA2






Simple English
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


This template is to supply uniform, up-to-date population data for second-level statistical areas (SA2s) 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 2023 revision (SSGA23). It replaces the previous template, {{NZ population data 2018 SA2}}, due to a large number of name and boundary changes.

Larger area units are included in {{NZ population data 2018}}.

Adding to an article

{{NZ population data 2023 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_2023_SA2"/>
  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

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 data from the Statistics website. As of October 2023, this can be found in NZ.Stat at Subnational population estimates (TA, SA2), by age and sex.
  2. In a new spreadsheet, collect the data from all tables to get two columns: area name and most recent year data. Use the flash fill (Microsoft Excel) or smart fill (Google Sheets) function to strip the leading numbers off the SA2 names.
  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

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:NZ_population_data_2023_SA2&oldid=1198741185"

Categories: 
New Zealand data templates
Template:Metadata Population
Templates that generate named references
Hidden category: 
Wikipedia semi-protected templates
 



This page was last edited on 24 January 2024, at 23:22 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki