ढाँचा:Historical populations/कागजात
यो ढाँचाले लुआ प्रयोग गर्दछ: |
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: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.
Complete template
सम्पादन गर्नुहोस्{{Historical populations |title = |type = |align = |direction = |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.
|
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 ).
Please think of more ideas for this feature. |
align | Optional. The alignment of the table on the page.
|
direction | Optional. How the box is arranged on the page.
|
clear | Optional. Use to clear any left or right floating elements nearby.
|
width | Optional. The width of the table (or of each block of columns). Can be any valid CSS width value.
|
state | Optional. The collapsed state of the table. Set it to collapsed to collapse the table by default.
|
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.
|
pop_name | Optional. The text in the column header of the population data.
|
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.
|
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 | १,०४६,९६४ | — |
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
सम्पादन गर्नुहोस्वर्ष | जन. | ±% प्र.व. ±% |
---|---|---|
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 }}
|
|
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
सम्पादन गर्नुहोस्- Template:US Census population
- Template:Demography – for horizontal tables