Template:Historical populations/testcases#Testing sandbox with different pop name
{{testcases notice}}
Test 1
{{testcase table
|type = USA
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Test 2: align = left
{{testcase table|_after = {{lorem ipsum}}
|align = left
|type = USA
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Test 3a: align = none
{{testcase table|_after = {{lorem ipsum}}
|align = none
|type = USA
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Test 3b: align = center
{{testcase table|_after = {{lorem ipsum}}
|align = center
|type = USA
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Test 4: different pop name and year name
{{testcase table
|title = Number of wikipedia articles on January 1st
|year_name = {{abbr|Yr.|Year}}
|pop_name = {{abbr|Art.|Number of articles}}
|2002 |19700
|2003 |96500
|2004 |188800
|2005 |438500
|2006 |895500
|2007 |1560000
|2008 |2153000
|2009 |2679000
|2010 |3144000
|2011 |3518000
|2012 |3835000
|2013 |4133000
}}
Test 5a: cols=2
{{testcase table
|type = USA
|cols = 2
|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
|footnote = Source: Census data
}}
Test 5b: percol=7
{{testcase table
|type = USA
|percol = 7
|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
|footnote = Source: Census data
}}
Test 6: Annual growth percentages
{{testcase table
|title = percentages=on
| 1970 |58579
| 1980 |110043
| 1981 |116976
| 1990 |180288
| 2000 |259728
| 2010 |337320
|2011 (est.)
|346693
}}
Test 7: Annual growth percentages
{{testcase table
|title = percentages=pagr
|percentages=pagr
| 1970 |58579
| 1980 |110043
| 1981 |116976
| 1990 |180288
| 2000 |259728
| 2010 |337320
|2011 (est.)
|346693
}}
Test 8: Shading off
{{testcase table
|shading=off
| 1970 |58579
| 1980 |110043
| 1981 |116976
| 1990 |180288
| 2000 |259728
| 2010 |337320
|2011 (est.)
|346693
}}
Test 9: Percentages off, width = 10em
{{testcase table
|width = 10em
|percentages = off
|1845|749
|1951|6717
|1960|6984
|1970|31752
|1980|34758
|1990|35888
|2000|39317
}}
Test 10: Negative pagr
{{testcase table
| 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
}}
Test 11: width=auto
{{testcase table
| title= Population census
| width=auto
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}
Test 12: width=auto, cols=2
{{testcase table
| title= Population census
| cols = 2
| width=auto
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
|footnote = Source: Census data
}}
Test 13: direction = horizontal
{{historical populations/sandbox
|type = USA
|direction = horizontal
|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
|footnote = Source: Census data
}}
Test 14a: direction = horizontal, perrow = 7
{{historical populations/sandbox
|type = USA
|direction = horizontal
|perrow = 7
|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
|footnote = Source: Census data
}}
Test 14b: direction = horizontal, rows = 2
{{historical populations/sandbox
|type = USA
|direction = horizontal
|rows = 2
|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
|footnote = Source: Census data
}}
Bad input
{{testcase table
| title= Population census
|AA | BB
| CC |DD
}}
Multiple columns
(was broken in mobile)
=Live multiple columns=
{{historical populations
|align = right
|direction = vertical
|cols = 3
|percentages = pagr
|footnote = Note: The municipal borders were changed in 1889, 1931, and 1950; causing a significant change in the population.
|source = Statistics Norway{{Cite web |last=Statistisk sentralbyrå |author-link=Statistics Norway |title=Table: 06913: Population 1 January and population changes during the calendar year (M) |url=https://www.ssb.no/en/statbank/table/06913/ |language=Norwegian}}{{Cite web |last=Statistisk sentralbyrå |author-link=Statistics Norway |title=Folketelling 1960 |url=https://www.ssb.no/a/folketellinger/kommunehefter/1960/kh_1960_0706.pdf |language=Norwegian |format=PDF}} and Norwegian Historical Data Centre{{Cite web |last=Universitetet i Tromsø – Norges arktiske universitet |author-link=University of Tromsø |title=Censuses in the Norwegian Historical Data Archive (NHDC) |url=https://rhd.uit.no/folketellinger/reg_komm_e.html}}
|1845|794
|1855|1165
|1865|1797
|1875|2452
|1891|4238
|1900|4869
|1910|5183
|1920|5651
|1930|5930
|1946|6302
|1951|6717
|1960|6984
|1970|31752
|1980|34758
|1990|35888
|2000|39317
|2010|43126
|2020|63764
|2023|65574
}}
{{lorem ipsum|2}}
=Sandbox multiple columns=
{{historical populations/sandbox
|align = right
|direction = vertical
|cols = 3
|percentages = pagr
|footnote = Note: The municipal borders were changed in 1889, 1931, and 1950; causing a significant change in the population.
|source = Statistics Norway{{Cite web |last=Statistisk sentralbyrå |author-link=Statistics Norway |title=Table: 06913: Population 1 January and population changes during the calendar year (M) |url=https://www.ssb.no/en/statbank/table/06913/ |language=Norwegian}}{{Cite web |last=Statistisk sentralbyrå |author-link=Statistics Norway |title=Folketelling 1960 |url=https://www.ssb.no/a/folketellinger/kommunehefter/1960/kh_1960_0706.pdf |language=Norwegian |format=PDF}} and Norwegian Historical Data Centre{{Cite web |last=Universitetet i Tromsø – Norges arktiske universitet |author-link=University of Tromsø |title=Censuses in the Norwegian Historical Data Archive (NHDC) |url=https://rhd.uit.no/folketellinger/reg_komm_e.html}}
|1845|794
|1855|1165
|1865|1797
|1875|2452
|1891|4238
|1900|4869
|1910|5183
|1920|5651
|1930|5930
|1946|6302
|1951|6717
|1960|6984
|1970|31752
|1980|34758
|1990|35888
|2000|39317
|2010|43126
|2020|63764
|2023|65574
}}
{{lorem ipsum|2}}
{{reflist-talk}}
Missing data
{{testcase table
| title= Population census
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1976 |
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}
{{testcase table
| title= Population census
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| |
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
}}
Linked years
Formatted input
{{testcase table
| title= Population census
| 1903 |219,928
| 1960 |1,138,611
| 1970 |1,330,788
| 1975 |1,479,116
| 1980 |1,630,485
| 1990 |1,601,234
| 1995 |1,654,761
| 2000 |1,581,082
| 2007 |1,660,714
| 2010 |1,652,171
}}
Fractional years
{{testcase table
| percentages = pagr
| title= Population census
| 600 |40,000
| 1903.1 |219,928
| 1960.7 |1,138,611
| 1970.2 |1,330,788
| 1975.8 |1,479,116
| 1980.3 |1,630,485
| 1990.6 |1,601,234
| 1995.96 |1,654,761
| 2000.451 |1,581,082
| 2007.5234 |1,660,714
| 2010.98674 |1,652,171
}}
Census links with non-census years
{{Historical populations
|type = USA
|footnote = Source: Foo
|1780 |10101
|1790 |101010
|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
|3000 |9999999
|Today|9999999
}}
- Check Special:WhatLinksHere/1780 United States Census (should not link here)
- Check Special:WhatLinksHere/3000 United States Census (should not link here)
Graph bottom with 1 column
{{testcase table
|type = USA
|graph-pos = bottom
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Graph bottom with 2 columns
{{testcase table
|type = USA
|cols = 2
|graph-pos = bottom
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Graph bottom with 3 columns
{{testcase table
|type = USA
|cols = 3
|graph-pos = bottom
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
Graph right with 2 horizontal rows
{{testcase rows
|type = USA
|direction = horizontal
|rows = 2
|graph-pos = right
|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
|footnote = Source: Census data
}}
Sandbox in text
=Test 1 from above=
{{Historical populations/sandbox
|type = USA
|footnote = Source: {{cite web|url=http://factfinder.census.gov|publisher=United States Census Bureau|title=American FactFinder}}
|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
}}
{{lorem ipsum|3}}
=Test 10 from above=
{{Historical populations/sandbox
| 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
}}
{{lorem ipsum|3}}
=Test 12 from above=
{{Historical populations/sandbox
| title= Population census
| cols = 2
| width=auto
| 1903 |219928
| 1960 |1138611
| 1970 |1330788
| 1975 |1479116
| 1980 |1630485
| 1990 |1601234
| 1995 |1654761
| 2000 |1581082
| 2007 |1660714
| 2010 |1652171
|footnote = Source: Census data
}}
{{lorem ipsum|3}}