Difference between revisions of "Template:Census 2006 AUS"

From blackwiki
Jump to navigation Jump to search
imported>Little Mountain 5
m (make accessdate optional per edit request)
imported>AussieLegend
(merge in functionality from Template:Census 2006 AUS link, which is only used in 3 articles)
Line 1: Line 1:
<includeonly>{{#if: {{{quick|}}} | {{cite web|url=http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/quickstat/{{{id}}}|title={{{name}}}|work=2006 Census QuickStats|author=[[Australian Bureau of Statistics]]|date=25 October 2007|accessdate={{{accessdate|}}}}} | {{cite web|url=http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/communityprofile/{{{id}}}|title=Community Profile Series : {{{name}}}|work=2006 Census of Population and Housing|author=[[Australian Bureau of Statistics]]|date=25 October 2007|accessdate={{{accessdate|}}}}}}} {{#ifeq: {{{map|}}} | yes | [http://www.censusdata.abs.gov.au/ABSNavigation/ImageServer?id=map,Census,2006,{{{id}}} Map]}}</includeonly><noinclude>
+
<includeonly>{{ #switch: {{lc:{{{link|}}} }}
 +
| yes = [http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/quickstat/{{{id|0}}}]
 +
| {{#if: {{{quick|}}} | {{cite web|url=http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/quickstat/{{{id}}}|title={{{name}}}|work=2006 Census QuickStats|author=[[Australian Bureau of Statistics]]|date=25 October 2007|accessdate={{{accessdate|}}}}} | {{cite web|url=http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/communityprofile/{{{id}}}|title=Community Profile Series : {{{name}}}|work=2006 Census of Population and Housing|author=[[Australian Bureau of Statistics]]|date=25 October 2007|accessdate={{{accessdate|}}}}}}} {{#ifeq: {{{map|}}} | yes | [http://www.censusdata.abs.gov.au/ABSNavigation/ImageServer?id=map,Census,2006,{{{id}}} Map]}}}}</includeonly><noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 10:28, 6 July 2016


Template documentation[view] [edit] [history] [purge]

This template allows for the inclusion of direct web links to official 2006 census data into Australian geographical articles. Due to periodic changes/redesigns on the ABS website, these links may change: the advantage of using the template is therefore that all articles using this template will migrate with it.

Usage

General

{{ Census 2006 AUS
| id         = 
| name       = 
| accessdate = 
}}

Lists only

{{ Census 2006 AUS
| id         = 
| link       = yes
}}

Parameters

id
ABS ID for the region (note: may be different from 2001, so don't convert across without checking.)
name
ABS Name for the region: e.g. Caversham (State Suburb) or 5011202 (Census Collection District).
accessdate
Optional parameter to define date accessed in the form yyyy-mm-dd (e.g. 2007-06-27)
quick
This is an optional but widely used parameter. When added at the end, generally as |quick=on, it forces QuickStats instead of a link to the Excel-format BCP.
link
This is an optional parameter that causes a bare link to be generated instead of a citation if |link=yes and is for use in lists such as List of cities in Australia by population#50 largest urban centres by population. When this is the case, the only necessary parameter is id. Other parameters will not be used.

Examples

http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/communityprofile/SSC16159

  1. {{Census 2006 AUS|id=SSC16159|name=Narrandera (Urban Centre/Locality)}}
    Australian Bureau of Statistics (25 October 2007). "Community Profile Series : Narrandera (Urban Centre/Locality)". 2006 Census of Population and Housing.
  2. {{Census 2006 AUS|id=SSC16159|name=Narrandera (Urban Centre/Locality)|accessdate=5 January 2015}}
    Australian Bureau of Statistics (25 October 2007). "Community Profile Series : Narrandera (Urban Centre/Locality)". 2006 Census of Population and Housing. Retrieved 5 January 2015.

http://www.censusdata.abs.gov.au/census_services/getproduct/census/2006/quickstat/SSC16159

  1. {{Census 2006 AUS|id=SSC16159|name=Narrandera (Urban Centre/Locality)|quick=on}}
    Australian Bureau of Statistics (25 October 2007). "Narrandera (Urban Centre/Locality)". 2006 Census QuickStats.
  2. {{Census 2006 AUS|id=SSC16159|name=Narrandera (Urban Centre/Locality)|accessdate=5 January 2015|quick=on}}
    Australian Bureau of Statistics (25 October 2007). "Narrandera (Urban Centre/Locality)". 2006 Census QuickStats. Retrieved 5 January 2015.
  3. {{Census 2006 AUS|id=SSC16159|link=yes}}
    [1]
  4. {{Census 2006 AUS link|id=SSC16159}}
    [2]

See also

id:Templat:Census 2006 AUS