টেমপ্লেট:Historical population

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

{{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:US Census population 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.

Full syntax[সম্পাদনা]

{{Historical populations
|title        = 
|align        =
|clear        =
|direction    =
|percentages  = 
|state        = 
|type         = 
|shading      = 
|width        = 
|subbox       =
|pop_name     =
|year_name    =
|percent_name =
|footnote     = 
|source       = 
|graph-pos    =
|graph-width  =
|graph-height =
|percol       =
|cols         =
|perrow       =
|rows         =
|date |population
|date |population
|date |population
|date |population
|date |population
|date |population
|date |population
}}

Parameters[সম্পাদনা]

Template parameters for Template:Historical populations
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)
align Optional. The alignment of the table on the page.
  • right (Default)
  • left
  • center
  • none
clear Optional. Use to clear any left or right floating elements nearby.
  • right (Default if align = right)
  • left (Default if align = left)
  • none (Default if align = none)
  • both
direction Optional. How the box is arranged on the page.
  • vertical (Default)
  • horizontal
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
state Optional. The collapsed state of the table. Set it to collapsed to collapse the table by default.
  • none (Default)
  • collapsed
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.

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
width Optional. The width of the table (or of each block of columns). Can be any valid CSS width value.
  • 15em (Default)
pop_name Optional. The text in the column header of the population data.
  • {{abbr|Pop.|Population}} (Default, displays as Pop.)
footnote Optional. Free-form footnote. Can be used as a variant to, or in addition to, the source parameter.
source Optional. Displayed as a footnote under the table with the text "Source:" inserted automatically. Every table should indicate the source of the data.
graph-pos Optional. Adds an automatically generated graph at the top (with |graph-pos=top) or bottom (with |graph-pos=bottom)
graph-width Optional. Overrides the default width of the graph. Should not be necessary in most cases.
graph-height Optional. Overrides the default height of the graph. Should not be necessary in most cases.
cols Optional. Total number of columns of data (default is 1). This is useful for very long tables, or when |align=none.

Examples[সম্পাদনা]

United States[সম্পাদনা]

ঐতিহাসিক জনসংখ্যা
বছরজন.±%
1890 ১০,৪৬,৯৬৪—    
1900 ১২,৯৩,৬৯৭+২৩.৬%
1910 ১৫,৪৯,০০৮+১৯.৭%
1920 ১৮,২৩,৭৭৯+১৭.৭%
1930 ১৯,৫০,৯৬১+৭%
1940 ১৯,৩১,৩৩৪−১%
1950 ২০,৭১,৬০৫+৭.৩%
1960 ২০,০২,৫১২−৩.৩%
1970 ১৯,৪৮,৬০৯−২.৭%
1980 ১৬,৮৮,২১০−১৩.৪%
1990 ১৫,৮৫,৫৭৭−৬.১%
2000 ১৫,১৭,৫৫০−৪.৩%
2006 (est.) ১৪,৪৮,৩৯৪−৪.৬%
উৎস: "American FactFinder"United States Census Bureau 

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৭৪৯
1951৬,৭১৭
1960৬,৯৮৪
1970৩১,৭৫২
1980৩৪,৭৫৮
1990৩৫,৮৮৮
2000৩৯,৩১৭
Note: Sandefjord and Sandar were merged in 1970.
উৎস: 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, Norway|Sandar]] were merged in 1970.
|source = [http://www.ssb.no SSB]
}}

Non-regular date ranges[সম্পাদনা]

Population census
বছরজন.ব.প্র. ±%
1903 ২,১৯,৯২৮—    
1960 ১১,৩৮,৬১১+২.৯৩%
1970 ১৩,৩০,৭৮৮+১.৫৭%
1975 ১৪,৭৯,১১৬+২.১৪%
1980 ১৬,৩০,৪৮৫+১.৯৭%
1990 ১৬,০১,২৩৪−০.১৮%
1995 ১৬,৫৪,৭৬১+০.৬৬%
2000 ১৫,৮১,০৮২−০.৯১%
2007 ১৬,৬০,৭১৪+০.৭%
2010 ১৬,৫২,১৭১−০.১৭%

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[সম্পাদনা]

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
}}
Population census
বছরজন.ব.প্র. ±%
1903 ২,১৯,৯২৮—    
1960 ১১,৩৮,৬১১+২.৯৩%
1970 ১৩,৩০,৭৮৮+১.৫৭%
1975 ১৪,৭৯,১১৬+২.১৪%
1980 ১৬,৩০,৪৮৫+১.৯৭%
বছরজন.ব.প্র. ±%
1990 ১৬,০১,২৩৪−০.১৮%
1995 ১৬,৫৪,৭৬১+০.৬৬%
2000 ১৫,৮১,০৮২−০.৯১%
2007 ১৬,৬০,৭১৪+০.৭%
2010 ১৬,৫২,১৭১−০.১৭%

Two columns with graph[সম্পাদনা]

For a multicolumn non-floating table with a bottom graph, use align=none and cols=2 and graph-pos=bottom

{{Historical populations
| title= Population census
| percentages = pagr
| align = none
| cols = 2
| graph-pos = bottom
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}
Population census
বছরজন.ব.প্র. ±%
1903 ২,১৯,৯২৮—    
1960 ১১,৩৮,৬১১+২.৯৩%
1970 ১৩,৩০,৭৮৮+১.৫৭%
1975 ১৪,৭৯,১১৬+২.১৪%
1980 ১৬,৩০,৪৮৫+১.৯৭%
বছরজন.ব.প্র. ±%
1990 ১৬,০১,২৩৪−০.১৮%
1995 ১৬,৫৪,৭৬১+০.৬৬%
2000 ১৫,৮১,০৮২−০.৯১%
2007 ১৬,৬০,৭১৪+০.৭%
2010 ১৬,৫২,১৭১−০.১৭%

Horizontal direction[সম্পাদনা]

For a horizontally arranged table, use direction=horizontal

{{Historical populations
| title= Population census
| align = none
| direction = horizontal
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}
Population census
বছর 1903 1960 1970 1975 1980 1990 1995 2000 2007 2010
জন.২,১৯,৯২৮১১,৩৮,৬১১১৩,৩০,৭৮৮১৪,৭৯,১১৬১৬,৩০,৪৮৫১৬,০১,২৩৪১৬,৫৪,৭৬১১৫,৮১,০৮২১৬,৬০,৭১৪১৬,৫২,১৭১
±%—    +৪১৭.৭%+১৬.৯%+১১.১%+১০.২%−১.৮%+৩.৩%−৪.৫%+৫%−০.৫%

See also[সম্পাদনা]