الگو:جمعیت تاریخی
ظاهر
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 = |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
[ویرایش]جمعیت تاریخی | ||
---|---|---|
سال | جمعیت | ±% |
۱۸۹۰ | ۱٬۰۴۶٬۹۶۴ | — |
۱۹۰۰ | ۱٬۲۹۳٬۶۹۷ | ۲۳٫۶٪+ |
۱۹۱۰ | ۱٬۵۴۹٬۰۰۸ | ۱۹٫۷٪+ |
۱۹۲۰ | ۱٬۸۲۳٬۷۷۹ | ۱۷٫۷٪+ |
۱۹۳۰ | ۱٬۹۵۰٬۹۶۱ | ۷٪+ |
۱۹۴۰ | ۱٬۹۳۱٬۳۳۴ | ۱٪− |
۱۹۵۰ | ۲٬۰۷۱٬۶۰۵ | ۷٫۳٪+ |
۱۹۶۰ | ۲٬۰۰۲٬۵۱۲ | ۳٫۳٪− |
۱۹۷۰ | ۱٬۹۴۸٬۶۰۹ | ۲٫۷٪− |
۱۹۸۰ | ۱٬۶۸۸٬۲۱۰ | ۱۳٫۴٪− |
۱۹۹۰ | ۱٬۵۸۵٬۵۷۷ | ۶٫۱٪− |
۲۰۰۰ | ۱٬۵۱۷٬۵۵۰ | ۴٫۳٪− |
۲۰۰۶ (Est.) | ۱٬۴۴۸٬۳۹۴ | ۴٫۶٪− |
Source: "American FactFinder". اداره آمار آمریکا. |
The following code will yield the table on the right.
{{Historical populations |type = USA |footnote = Source: {{subst:Historical populations/USCensusRef}} |۱۸۹۰ |۱۰۴۶۹۶۴ |۱۹۰۰ |۱۲۹۳۶۹۷ |۱۹۱۰ |۱۵۴۹۰۰۸ |۱۹۲۰ |۱۸۲۳۷۷۹ |۱۹۳۰ |۱۹۵۰۹۶۱ |۱۹۴۰ |۱۹۳۱۳۳۴ |۱۹۵۰ |۲۰۷۱۶۰۵ |۱۹۶۰ |۲۰۰۲۵۱۲ |۱۹۷۰ |۱۹۴۸۶۰۹ |۱۹۸۰ |۱۶۸۸۲۱۰ |۱۹۹۰ |۱۵۸۵۵۷۷ |۲۰۰۰ |۱۵۱۷۵۵۰ |۲۰۰۶ (Est.) |۱۴۴۸۳۹۴ }}
Smaller areas
[ویرایش]جمعیت تاریخی | |
---|---|
سال | جمعیت |
۱۸۴۵ | ۷۴۹ |
۱۹۵۱ | ۶٬۷۱۷ |
۱۹۶۰ | ۶٬۹۸۴ |
۱۹۷۰ | ۳۱٬۷۵۲ |
۱۹۸۰ | ۳۴٬۷۵۸ |
۱۹۹۰ | ۳۵٬۸۸۸ |
۲۰۰۰ | ۳۹٬۳۱۷ |
Note: Sandefjord and Sandar were merged in 1970.
Source: SSB |
{{Historical populations |width = 10em |shading = off |percentages = off |۱۸۴۵ |۷۴۹ |۱۹۵۱ |۶۷۱۷ |۱۹۶۰ |۶۹۸۴ |۱۹۷۰ |۳۱۷۵۲ |۱۹۸۰ |۳۴۷۵۸ |۱۹۹۰ |۳۵۸۸۸ |۲۰۰۰ |۳۹۳۱۷ |footnote=Note: Sandefjord and [[Sandar]] were merged in 1970. <br />Source: [http://www.ssb.no/ SSB] }}