Template talk:USCensusPop
From Wikipedia, the free encyclopedia
The accessibility of this article or template is in question. For specifics, please see the relevant discussion on the talk page. Information on making articles more accessible can be found at Wikiproject Accessibility. |
Contents |
[edit] Documentation
Historical populations | |||
---|---|---|---|
Census | Pop. | %± | |
1790 | 340,120 |
|
|
1800 | 589,051 | 73.2% | |
1810 | 959,049 | 62.8% | |
1820 | 1,372,851 | 43.1% | |
1830 | 1,918,608 | 39.8% | |
1840 | 2,428,921 | 26.6% | |
1850 | 3,097,394 | 27.5% | |
1860 | 3,880,735 | 25.3% | |
1870 | 4,382,759 | 12.9% | |
1880 | 5,082,871 | 16% | |
1890 | 5,997,853 | 18% | |
1900 | 7,268,894 | 21.2% | |
1910 | 9,113,614 | 25.4% | |
1920 | 10,385,227 | 14% | |
1930 | 12,588,066 | 21.2% | |
1940 | 13,479,142 | 7.1% | |
1950 | 14,830,192 | 10% | |
1960 | 16,782,304 | 13.2% | |
1970 | 18,236,967 | 8.7% | |
1980 | 17,558,072 | * | −3.7% |
1990 | 17,990,455 | 2.5% | |
2000 | 18,976,457 | 5.5% | |
Est. 2005 | 19,254,630 | [1] | 1.5% |
*Footnote text. |
Example:
{{USCensusPop | 1790=340120 | 1800=589051 | 1810=959049 | 1820=1372851 | 1830=1918608 | 1840=2428921 | 1850=3097394 | 1860=3880735 | 1870=4382759 | 1880=5082871 | 1890=5997853 | 1900=7268894 | 1910=9113614 | 1920=10385227 | 1930=12588066 | 1940=13479142 | 1950=14830192 | 1960=16782304 | 1970=18236967 | 1980=17558072 | 1980n=* | 1990=17990455 | 2000=18976457 | estimate=19254630 | estyear=2005 | estref=<ref>{{cite web |url=http://quickfacts.census.gov/qfd/states/36000.html |title=QuickFacts: New York |publisher=[[U.S. Census Bureau]] |accessdate=2007-02-28}}</ref> | footnote=*Footnote text. }}
[edit] References
- ^ QuickFacts: New York. U.S. Census Bureau. Retrieved on 2007-02-28.
[edit] Discussion
[edit] This template is awesome.
Moverton (t c), thanks for making this. I didn't know MediaWiki allowed templates to do math now. Good stuff. I've added an optional set of paramteers for a census estimate. Hope it is useful. --ChrisRuvolo (t) 19:35, 28 February 2007 (UTC)
[edit] It's done!!
There are no longer any U.S. articles that use {{Histpop}}! All articles have been switched to {{USCensusPop}}. /Timneu22 01:33, 2 March 2007 (UTC)
[edit] Data tables
Hi, I've noticed that this template presents some accessibility problems. Please see Wikipedia:Accessibility#Data tables and don't hesitate to ask if you have any doubt about this issue. Thanks! —surueña 09:56, 18 October 2007 (UTC)
[edit] Incorrect minus sign
Can someone who understands this template please correct it so that negative percent changes show correctly? They are currently displaying the negative as a hyphen rather than a minus sign (see the difference between hyphens, endashes, emdashes and minus signs at WP:DASH) SandyGeorgia (Talk) 00:12, 1 November 2007 (UTC)
- This template does math using the wikimedia engine. Nothing can be changed here, the engine needs to be changed. --ChrisRuvolo (t) 12:36, 1 November 2007 (UTC)
-
- Fixed. I added Template:Val to all the percentages, so negative percentages should show with the correct minus sign now. Feel free to yell at me if I screwed something up. —Werson (talk) 05:13, 12 June 2008 (UTC)
[edit] Similar template?
Hi, I was wondering if there was a similar template to this, but that does not link to the US Census Data. For instance, I was looking at the South Africa article, and they use this template, which looks fine, but then each year links to articles for the United States Census for that year. It doesn't make any sense in the South Africa article to have links back to the US Census articles. I looked at the code, and it seems that if you use a Census year as the year, it automatically puts the links in there. It would be good to have the same exact template, minus the links to the US Census articles, so non-US articles could use the template and have it make sense. I don't really know how to make a new template, or else I'd try this myself. Thanks so much...the USCensusPop template is really cool. AstroZombieDC (talk) 23:57, 8 December 2007 (UTC)
- Because I don't know of any others, I created {{HistoricalPopulations}} to be a more generic version that accepts up to 25 years of data. I added it to the article you referenced, and you can see its proper usage there. —Mike 10:17, 9 December 2007 (UTC)
-
- A template for that purpose already exists, its called {{histpop}}, and is linked above. --ChrisRuvolo (t) 13:42, 2 May 2008 (UTC)
[edit] Merge
This template has similar functionality to Template:Histpop, and it's lacking in a few features that the other template has (and vice-versa). I'm proposing replacing both with a supertemplate, Template:Historical populations. I tried to make it work for all cases. It'll still link to US census entries where appropriate, but will also allow arbitrary odd years, and use for other countries, without the need for two separate templates. It also adopts the row-shading feature of Template:Histpop, but in a slightly more attractive fashion, and with the option to turn it off. Let me know what you think. —Werson (talk) 01:53, 13 June 2008 (UTC)