Difference between revisions of "Template:CensusAU/doc"

From blackwiki
Jump to navigation Jump to search
imported>AussieLegend
(→‎Purpose: updated number of articles)
imported>Kerry Raymond
(→‎TemplateData: update to have the year)
Line 17: Line 17:
 
"params": {
 
"params": {
 
"1": {
 
"1": {
"label": "1",
+
"label": "year",
 
"description": "Census year",
 
"description": "Census year",
 
"example": "2011",
 
"example": "2011",
Line 24: Line 24:
 
}
 
}
 
},
 
},
"description": "An Australian Census year"
+
"description": "Link to an Australian Census year in the article [[Census in Australia]]"
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 13:32, 24 September 2018

Purpose

This template provides a quick and easy method of directly linking to specific sections in Census in Australia, which is linked to from more than 7,600 predominantly Australian articles. In particular, the pop_year parameter of {{Infobox Australian place}} links to sections in Census in Australia dealing with specific census years.

Usage

{{CensusAU|section title}}

Examples

{{CensusAU|2011}} produces [[Census in Australia#2011|2011 census]]

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for CensusAU

Link to an Australian Census year in the article [[Census in Australia]]

Template parameters

ParameterDescriptionTypeStatus
year1

Census year

Example
2011
Stringrequired