Template:Infobox census/sandbox

From blackwiki
< Template:Infobox census
Revision as of 09:22, 7 November 2020 by imported>ItsPugle (Syncing with main template page, as seemingly not in use)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This infobox is for use on any census pages. You can list up to ten different census topics, specific the type of subdivision (state/territory etc) that the results are given in, link to the previous and next census, and change the scope of the census.

If |region= is not blank, it will use a "Region" label for the scope of the census, otherwise it will default to a "Country" label. By scope, we're referring to the geographical area completing the census.

A |date= is needed for the succession panel to display correctly. The data can be as broad as needed (for example, it could be just a year), but it needs to not be blank.

Usage

Template:Parameter names example

{{Infobox census
| name = 
| logo = 
| logo_size = 
| logo_caption = 
| image = 
| image_size = 
| image_caption = 
| previous_year = 
| previous_census = 
| date =
| next_year = 
| next_census = 
| region = 
| region_type = 
| country = 
| topic1 = 
| topic2 = 
| topic3 = 
...
| topic10 = 
| authority = 
| website = 
| participation = 
| population = 
| percent_change = 
| most_populous = 
| least_populous = 
| additional_label1 = 
| additional_data1 =
| additional_label2 = 
| additional_data2 = 
... 
| additional_label5
| additional_data5
}}

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 Infobox census

Infobox to be used for pages for censuses.
ParameterDescriptionTypeStatus
Name of the censusname
The name of the census, although not necessarily the page name. For example, the 2021 United Kingdom census is called "Census 2021"
Example
Census 2021
Stringrequired
Logo sizelogo_sizeStringoptional
Logo captionlogo_captionStringoptional
ImageimageFileoptional
Image sizeimage_sizeStringoptional
Image captionimage_captionStringoptional
Previous census pageprevious_census
Page name for the previous census.
Example
2016 Australian census
Pageoptional
Previous census yearprevious_year
Year of the previous census.
Example
2016
Numberoptional
Next census pagenext_census
Page name for the next census.
Example
2025 Australian census
Pageoptional
Next census yearnext_year
Year of the next census.
Example
2025
Numberoptional
Countrycountry
Please only use this parameter if the census covers an entire country. If not, use region.
Example
Australia
Stringsuggested
Census datedateDaterequired
Population recordedpopulation
Population value recorded in the census.
Numberoptional
Population percentage point changepercent_change
Change in percentage points versus the last census.
Stringoptional
Region typeregion_type
This is for setting the type of region that most and least populous data is provided in (could be state etc, could be city etc). Generally, go for the highest-level, such as state, over something like suburb or city.
Example
province
Stringoptional
Most populous regionmost_populousPageoptional
Least populous regionleast_populousPageoptional
Census authorityauthority
Operating authority for the census.
Example
Office of National Statistics
Stringoptional
Census websitewebsite
Please use the URL template.
URLoptional
Trial census datetrial_census
Data of a trial census, if run.
Dateoptional
Census participationparticipationStringoptional
First topictopic1
You can add up to 10 different topics to be investigated in the census, such as "housing", "employment", "education" etc
Stringoptional
Second topictopic2
Requires topic1 to not be empty to display.
Stringoptional
Third topictopic3
Requires topic1 to not be empty to display.
Stringoptional
Fourth topictopic4
Requires topic1 to not be empty to display.
Stringoptional
Fifth topictopic5
Requires topic1 to not be empty to display.
Stringoptional
Sixth topictopic6
Requires topic1 to not be empty to display.
Stringoptional
Seventh topictopic7
Requires topic1 to not be empty to display.
Stringoptional
Eighth topictopic8
Requires topic1 to not be empty to display.
Stringoptional
Ninth topictopic9
Requires topic1 to not be empty to display.
Stringoptional
Tenth topictopic10
Requires topic1 to not be empty to display.
Stringoptional
Region for the censusregion
This parameter is used when the census doesn't span an entire country, for example, only a state or territory.
Example
Queensland
Stringoptional
Additional data label 1additional_label1
Use this, paired with additional_data1, to add any additional results from the census
Stringoptional
Additional data 1additional_data1
Use this, paired with additional_label1, to add any additional results from the census
Stringoptional
Additional data label 2additional_label2
Use this, paired with additional_data2, to add any additional results from the census
Stringoptional
Additional data 2additional_data2
Use this, paired with additional_label2, to add any additional results from the census
Stringoptional
Additional data label 3additional_label3
Use this, paired with additional_data3, to add any additional results from the census
Stringoptional
Additional data 3additional_data3
Use this, paired with additional_label3, to add any additional results from the census
Stringoptional
Additional data label 4additional_label4
Use this, paired with additional_data4, to add any additional results from the census
Stringoptional
Additional data 4additional_data4
Use this, paired with additional_label4, to add any additional results from the census
Stringoptional
Additional data label 5additional_label5
Use this, paired with additional_data5, to add any additional results from the census
Stringoptional
Additional data 5additional_data5
Use this, paired with additional_label5, to add any additional results from the census
Stringoptional
annual_percent_changeannual_percent_changeUnknowndeprecated
Please use percent_change

Format: block

Test of raw TemplateData output:

Infobox to be used for pages for censuses.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Name of the censusname

The name of the census, although not necessarily the page name. For example, the 2021 United Kingdom census is called "Census 2021"

Example
Census 2021
Stringrequired
Previous census yearprevious_year

Year of the previous census.

Example
2016
Numberoptional
Previous census pageprevious_census

Page name for the previous census.

Example
2016 Australian census
Pageoptional
Census datedate

no description

Daterequired
Next census yearnext_year

Year of the next census.

Example
2025
Numberoptional
Next census pagenext_census

Page name for the next census.

Example
2025 Australian census
Pageoptional
Logologo

no description

Filesuggested
Logo sizelogo_size

no description

Stringoptional
Imageimage

no description

Fileoptional
Image sizeimage_size

no description

Stringoptional
Logo captionlogo_caption

no description

Stringoptional
Image captionimage_caption

no description

Stringoptional
Region for the censusregion

This parameter is used when the census doesn't span an entire country, for example, only a state or territory.

Example
Queensland
Stringoptional
Countrycountry

Please only use this parameter if the census covers an entire country. If not, use region.

Example
Australia
Stringsuggested
First topictopic1

You can add up to 10 different topics to be investigated in the census, such as "housing", "employment", "education" etc

Stringoptional
Second topictopic2

Requires topic1 to not be empty to display.

Stringoptional
Third topictopic3

Requires topic1 to not be empty to display.

Stringoptional
Fourth topictopic4

Requires topic1 to not be empty to display.

Stringoptional
Fifth topictopic5

Requires topic1 to not be empty to display.

Stringoptional
Sixth topictopic6

Requires topic1 to not be empty to display.

Stringoptional
Seventh topictopic7

Requires topic1 to not be empty to display.

Stringoptional
Eighth topictopic8

Requires topic1 to not be empty to display.

Stringoptional
Ninth topictopic9

Requires topic1 to not be empty to display.

Stringoptional
Tenth topictopic10

Requires topic1 to not be empty to display.

Stringoptional
Trial census datetrial_census

Data of a trial census, if run.

Dateoptional
Census authorityauthority

Operating authority for the census.

Example
Office of National Statistics
Stringoptional
Census websitewebsite

Please use the URL template.

URLoptional
Census participationparticipation

no description

Stringoptional
Population recordedpopulation

Population value recorded in the census.

Numberoptional
Population percentage point changepercent_change

Change in percentage points versus the last census.

Stringoptional
Region typeregion_type

This is for setting the type of region that most and least populous data is provided in (could be state etc, could be city etc). Generally, go for the highest-level, such as state, over something like suburb or city.

Example
province
Stringoptional
Most populous regionmost_populous

no description

Pageoptional
Least populous regionleast_populous

no description

Pageoptional
Additional data label 1additional_label1

Use this, paired with additional_data1, to add any additional results from the census

Stringoptional
Additional data 1additional_data1

Use this, paired with additional_label1, to add any additional results from the census

Stringoptional
Additional data label 2additional_label2

Use this, paired with additional_data2, to add any additional results from the census

Stringoptional
Additional data 2additional_data2

Use this, paired with additional_label2, to add any additional results from the census

Stringoptional
Additional data label 3additional_label3

Use this, paired with additional_data3, to add any additional results from the census

Stringoptional
Additional data 3additional_data3

Use this, paired with additional_label3, to add any additional results from the census

Stringoptional
Additional data label 4additional_label4

Use this, paired with additional_data4, to add any additional results from the census

Stringoptional
Additional data 4additional_data4

Use this, paired with additional_label4, to add any additional results from the census

Stringoptional
Additional data label 5additional_label5

Use this, paired with additional_data5, to add any additional results from the census

Stringoptional
Additional data 5additional_data5

Use this, paired with additional_label5, to add any additional results from the census

Stringoptional
Annual_percent_changeannual_percent_change

no description

Unknowndeprecated