साँचा:Historical populations/doc
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
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 30 entries; any more will be ignored.
Complete template
{{Historical populations |title = |type = |align = |width = |state = |shading = |percentages = |footnote = |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 USA .
Please think of more ideas for this feature. |
align | Optional. The alignment of the table on the page.
|
width | Optional. The width of the table. Can be any valid CSS width value.
|
state | Optional. The collapsation 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.
|
percentages | Optional. Whether to include an automatically generated column of percent differences. This works best with linear lists (1900, 1910, 1920, etc.) and should probably be turned off for irregular lists with missing data.
|
footnote | Optional. A footnote that will be displayed under the table. Every table should have a footnote indicating the source of the data. |
Examples
United States
ऐतिहासिक जनसंख्याएं | ||
---|---|---|
वर्ष | जन. | %± |
1890 | १०,४६,९६४ | एक्स्प्रेशन त्रुटि: < का घटक नहीं मिला |
1900 | १२,९३,६९७ | 23.6% |
1910 | १५,४९,००८ | 19.7% |
1920 | १८,२३,७७९ | 17.7% |
1930 | १९,५०,९६१ | 7.0% |
1940 | १९,३१,३३४ | −1.0% |
1950 | २०,७१,६०५ | 7.3% |
1960 | २०,०२,५१२ | −3.3% |
1970 | १९,४८,६०९ | −2.7% |
1980 | १६,८८,२१० | −13.4% |
1990 | १५,८५,५७७ | −6.1% |
2000 | १५,१७,५५० | −4.3% |
2006 (Est.) | १४,४८,३९४ | −4.6% |
Source: साँचा:cite web |
The following code will yield the table on the right.
{{Historical populations |type = USA |footnote = 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.
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. <br />Source: [http://www.ssb.no/ SSB] }}
See also