మూస:Historical populations

వికీపీడియా నుండి
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Lua error in మాడ్యూల్:Lua_banner at line 103: attempt to index field 'edit' (a nil value).

Template:Historical populations is used as an information box on pages, showing each census year with a population, and a percent gain/loss comparison. It is intended to combine the functionalities of two existing templates, Template:USCensusPop and Template:Histpop, the former of which is specialized for the United States, and the latter of which lacks many features of the former.

Usage[మార్చు]

This template takes a series of parameters in the form |date |population. This template does not require any more than that. This template will take between 0 and 50 entries; any more will be ignored.

Complete template[మార్చు]

{{Historical populations
|title       = 
|type        = 
|align       = 
|width       = 
|state       = 
|shading     = 
|pop_name    =
|percentages = 
|footnote    = 
|source      = 
|date |population
|date |population
|date |population
|date |population
|date |population
|date |population
|date |population
}}

Parameters[మార్చు]

Parameter Description
daten Ideally, a four-digit year, but can be anything. Usually a multiple of 10, but does not have to be.
populationn The population of row n. Must be a plain number with no formatting (commas, etc.).
title Optional. The title of the table.
  • Historical population (Default)
type Optional. This is designed to add functionality specific to different regions or types of information. Currently the only value that does anything is US (or the obsolescent USA).
  • none (Default)
  • US Will link each year to the relevant United States Census entry. Years that do not have entries will be left alone.

Please think of more ideas for this feature.

align Optional. The alignment of the table on the page.
  • right (Default)
  • left
  • none
width Optional. The width of the table. Can be any valid CSS width value.
  • 15em (Default)
state Optional. The collapsation state of the table. Set it to collapsed to collapse the table by default.
  • none (Default)
  • collapsed
shading Optional. Whether to mark off every five entries with a line, to facilitate reading. This works best with large, linear lists (such as the US Census, which has been taken every 10 years for over 200 years), but should probably be turned off for small or irregular lists (e.g., less than 10 entries), where it could be confusing.
  • on (Default)
  • off
pop_name Optional. The text in the column header of the population data.
  • {{abbr|Pop.|Population}} (Default, displays as Pop.)
percentages Optional. Whether to include an automatically generated column of percent differences. This works best with linear lists (1900, 1910, 1920, etc.). Alternately, you can specify "pagr" to display annual growth rates (per annum growth rate) using the formula from Population growth.
  • on (Default)
  • pagr
  • off
cols Optional. Total number of columns of data (default is 1). This is useful for very long tables, or when |align=none.
source Optional. Displayed as a footnote under the table with the text "Source:" inserted automatically. Every table should indicate the source of the data.
footnote Optional. Free-form footnote. Can be used as a variant to, or in addition to, the source parameter.

Examples[మార్చు]

United States[మార్చు]

జనాభా వివరాలు
సంవత్సరము జనాభా   ±%  
1890 10,46,964 —    
1900 12,93,697 +23.6%
1910 15,49,008 +19.7%
1920 18,23,779 +17.7%
1930 19,50,961 +7.0%
1940 19,31,334 −1.0%
1950 20,71,605 +7.3%
1960 20,02,512 −3.3%
1970 19,48,609 −2.7%
1980 16,88,210 −13.4%
1990 15,85,577 −6.1%
2000 15,17,550 −4.3%
2006 (est.) 14,48,394 −4.6%
Source: "American FactFinder". United States Census Bureau. Cite web requires |website= (help)

The following code will yield the table on the right.

{{Historical populations
|type = US
|source = {{subst:Historical populations/USCensusRef}}
|1890 |1046964
|1900 |1293697
|1910 |1549008
|1920 |1823779
|1930 |1950961
|1940 |1931334
|1950 |2071605
|1960 |2002512
|1970 |1948609
|1980 |1688210
|1990 |1585577
|2000 |1517550
|2006 (est.)
      |1448394
}}

Smaller areas[మార్చు]

జనాభా వివరాలు
సంవత్సరము జనాభా  
1845 749
1951 6,717
1960 6,984
1970 31,752
1980 34,758
1990 35,888
2000 39,317
Note: Sandefjord and Sandar were merged in 1970.
Source: SSB

The following code will yield the table on the right.

{{Historical populations
|width = 10em
|shading = off
|percentages = off
|1845 |749
|1951 |6717
|1960 |6984
|1970 |31752
|1980 |34758
|1990 |35888
|2000 |39317
|footnote=Note: Sandefjord and [[Sandar]] were merged in 1970.
|source = [http://www.ssb.no SSB]
}}

Non-regular date ranges[మార్చు]

Population census
సంవత్సరము జనాభా   ±% p.a.  
1903 2,19,928 —    
1960 11,38,611 Formatting error: invalid input when rounding%
1970 13,30,788 Formatting error: invalid input when rounding%
1975 14,79,116 Formatting error: invalid input when rounding%
1980 16,30,485 Formatting error: invalid input when rounding%
1990 16,01,234 Formatting error: invalid input when rounding%
1995 16,54,761 Formatting error: invalid input when rounding%
2000 15,81,082 Formatting error: invalid input when rounding%
2007 16,60,714 Formatting error: invalid input when rounding%
2010 16,52,171 Formatting error: invalid input when rounding%

For non-regular date ranges, use percentages=pagr to show annual growth rate percentages.

{{Historical populations
| title= Population census
| percentages = pagr
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}

Two columns[మార్చు]

Population census
సంవత్సరము జనాభా   ±% p.a.  
1903 2,19,928 —    
1960 11,38,611 Formatting error: invalid input when rounding%
1970 13,30,788 Formatting error: invalid input when rounding%
1975 14,79,116 Formatting error: invalid input when rounding%
1980 16,30,485 Formatting error: invalid input when rounding%
1990 16,01,234 Formatting error: invalid input when rounding%
1995 16,54,761 Formatting error: invalid input when rounding%
2000 15,81,082 Formatting error: invalid input when rounding%
2007 16,60,714 Formatting error: invalid input when rounding%
2010 16,52,171 Formatting error: invalid input when rounding%

For a multicolumn non-floating table use align=none and cols=2

{{Historical populations
| title= Population census
| percentages = pagr
| align = none
| cols = 2
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}

See also[మార్చు]