Template:Infobox census: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "<includeonly> {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|}}} | caption = {{{caption|}}} | label1 = Official Name | data1 = {{{official_name|}}} | label2 = Country | data2 = {{{country|}}} | label3 = Census Date | data3 = {{{date|}}} | label4 = Total Population | data4 = {{{population|}}} | label5 = Previous Census Population | data5 = {{{previ...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:
| data6          = {{{next_census|N/A}}}
| data6          = {{{next_census|N/A}}}
| label7        = Population Change (%)
| label7        = Population Change (%)
| data7          = {{#expr: ({{{population|0}}} - {{{previous_census|0}}}) / {{{previous_census|1}}} * 100 round 2}}%
| data7          = {{#expr: ({{#replace:{{{population|0}}}|,|}} - {{#replace:{{{previous_census|0}}}|,|}}) / {{#replace:{{{previous_census|1}}}|,|}} * 100 round 2}}%
| label8        = Region Covered
| label8        = Region Covered
| data8          = {{{region_covered|}}}
| data8          = {{{region_covered|}}}
Line 31: Line 31:
== Documentation ==
== Documentation ==
{{Documentation}}
{{Documentation}}
[[Category:Infobox templates]]
[[Category:Censuses]]
</noinclude>
</noinclude>

Latest revision as of 23:03, 5 February 2024


Documentation

[edit] [purge] Template documentation
2024 National Census
ExampleCensusImage.jpg
Population distribution map from the 2024 Census
Official Name The 2024 Census of Population and Housing
Country Imaginaria
Census Date April 1, 2024
Total Population 12000000
Previous Census Population 11000000
Next Census Population (Pending)
Population Change (%) 9.09%
Region Covered Nationwide
Conducting Authority Imaginaria National Statistics Office
Official Website [1]



This template is used to create an infobox for a specific census.

Parameters

  • name - Name of the Census. If not specified, the page name will be used.
  • image - Image related to the Census (optional).
  • caption - Caption for the image (optional).
  • official_name - Official name of the Census.
  • country - Country in which the census was conducted.
  • date - Date when the census was conducted.
  • population - Total population count from this census, raw number figure with no commas or separators.
  • previous_census - Population count from the previous census, raw number figure with no commas or separators.
  • next_census - Population count from the next census, if available (optional).
  • population_change - Calculated population change percentage. This field is automatically calculated.
  • region_covered - The region covered by the census.
  • authority - The authority responsible for conducting the census.
  • website - Official website for the census (optional).

Example

{{Infobox census
| name             = 2024 National Census
| image            = ExampleCensusImage.jpg
| caption          = Population distribution map from the 2024 Census
| official_name    = The 2024 Census of Population and Housing
| country          = Imaginaria
| date             = April 1, 2024
| population       = 12,000,000
| previous_census  = 11,000,000
| next_census      = (Pending)
| region_covered   = Nationwide
| authority        = Imaginaria National Statistics Office
| website          = [http://www.imaginariacensus2024.gov]
}}