Jump to content

Template:USDCY/doc

From Wikipedia, the free encyclopedia

This template will automatically show current-year US dollar figures for any historical value you put in.


Usage: A bottle of Dr. Shart's Fundament Cleanser cost $6.66 in 1899 {{USDCY|6.66|1899}}.

Displays as: A bottle of Dr. Shart's Fundament Cleanser cost $6.66 in 1899 ($244.00 in 2023).

The full code of the template is this:

{{#ifexpr:{{{1}}} > 1.01
 |(${{formatprice|{{inflation|US|{{{1}}}|{{{2}}}|r=0}}}} in {{inflation/year|US}})
 |(${{formatprice|{{inflation|US|{{{1}}}|{{{2}}}|r=2}}}} in {{inflation/year|US}})
 }}

(What this means is that, if the input amount is a buck or less, it uses {{formatprice}} with two decimal places, not one).

There are some limitations:

  • This only works for years that the inflation template has figures for.
  • This usually doesn't go up to the current year (for example, if you add the template in 2023, it might give figures for 2020 or something). This is not a bug; see Template:Inflation/year. It takes some amount of time for inflation figures to be calculated and made public. It will try to give the current year, but in practice, it will usually just get as close as possible.
  • This template is just a quick way to do a common task with other templates; if you need more specialized behavior, just take the bones out of this template and modify it to be appropriate.
    • {{USDCY}} will always be formatted the same way, as "($1234 in 2022)".
    • {{USDCY}} doesn't support doing anything weird with decimals, significant figures, or other input into the inflation templates (unless you can just pass it through with the two parameters in {{USDCY}}).


Year then$100
2022 $104.00
2021 $112.00
2020 $118.00
2019 $119.00
2018 $121.00
2017 $124.00
2016 $127.00
2015 $129.00
2014 $129.00
2013 $131.00
2012 $133.00
2011 $135.00
2010 $140.00
2009 $142.00
2008 $142.00
2007 $147.00
2006 $151.00
2005 $156.00
2004 $161.00
2003 $166.00
2002 $169.00
2001 $172.00
2000 $177.00
1999 $183.00
1998 $187.00
1997 $190.00
1996 $194.00
1995 $200.00
1994 $206.00
1993 $211.00
1992 $217.00
1991 $224.00
1990 $233.00
1989 $246.00
1988 $258.00
1987 $268.00
1986 $278.00
1985 $283.00
1984 $293.00
1983 $306.00
1982 $316.00
1981 $335.00
1980 $370.00
1979 $420.00
1978 $467.00
1977 $503.00
1976 $535.00
1975 $566.00
1974 $618.00
1973 $686.00
1972 $728.00
1971 $752.00
1970 $785.00
1969 $831.00
1968 $876.00
1967 $914.00
1966 $939.00
1965 $967.00
1964 $982.00
1963 $995.00
1962 $1,007
1961 $1,020
1960 $1,030
1959 $1,045
1958 $1,056
1957 $1,085
1956 $1,121
1955 $1,137
1954 $1,135
1953 $1,139
1952 $1,147
1951 $1,174
1950 $1,266
1949 $1,281
1948 $1,268
1947 $1,365
1946 $1,562
1945 $1,692
1944 $1,731
1943 $1,761
1942 $1,865
1941 $2,071
1940 $2,175
1939 $2,190
1938 $2,165
1937 $2,119
1936 $2,196
1935 $2,222
1934 $2,278
1933 $2,354
1932 $2,233
1931 $2,004
1930 $1,824
1929 $1,774
1928 $1,774
1927 $1,754
1926 $1,721
1925 $1,737
1924 $1,778
1923 $1,788
1922 $1,820
1921 $1,708
1920 $1,521
1919 $1,757
1918 $2,026
1917 $2,378
1916 $2,800
1915 $3,012
1914 $3,042
1913 $3,083
1912 $3,157
1911 $3,270
1910 $3,270
1909 $3,391
1908 $3,391
1907 $3,270
1906 $3,391
1905 $3,391
1904 $3,391
1903 $3,391
1902 $3,522
1901 $3,662
1900 $3,662
1899 $3,662
1898 $3,662
1897 $3,662
1896 $3,662
1895 $3,662
1894 $3,522
1893 $3,391
1892 $3,391
1891 $3,391
1890 $3,391
1889 $3,391
1888 $3,391
1887 $3,391
1886 $3,391
1885 $3,391
1884 $3,391
1883 $3,270
1882 $3,157
1881 $3,157
1880 $3,157
1879 $3,270
1878 $3,157
1877 $2,861
1876 $2,861
1875 $2,775
1874 $2,693
1873 $2,543
1872 $2,543
1871 $2,543
1870 $2,409
1869 $2,289
1868 $2,289
1867 $2,180
1866 $2,081
1865 $1,990
1864 $1,948
1863 $2,475
1862 $3,052
1861 $3,391
1860 $3,391
1859 $3,391
1858 $3,522
1857 $3,270
1856 $3,391
1855 $3,270
1854 $3,391
1853 $3,662
1852 $3,662
1851 $3,662
1850 $3,662
1849 $3,662
1848 $3,522
1847 $3,270
1846 $3,391
1845 $3,270
1844 $3,270
1843 $3,270
1842 $3,157
1841 $2,954
1840 $3,052
1839 $2,861
1838 $2,861
1837 $2,693
1836 $2,775
1835 $2,954
1834 $3,052
1833 $3,157
1832 $3,052
1831 $2,861
1830 $2,861
1829 $2,861
1828 $2,775
1827 $2,693
1826 $2,693
1825 $2,693
1824 $2,775
1823 $2,543
1822 $2,289
1821 $2,289
1820 $2,180
1819 $1,990
1818 $1,990
1817 $1,908
1816 $1,795
1815 $1,665
1814 $1,453
1813 $1,579
1812 $1,795
1811 $1,831
1810 $1,948
1809 $1,948
1808 $1,908
1807 $2,081
1806 $1,948
1805 $2,035
1804 $2,035
1803 $2,035
1802 $2,129
1801 $1,831
1800 $1,795
1799 $1,832
1798 $1,832
1797 $1,772
1796 $1,705
1795 $1,795
1794 $2,054
1793 $2,278
1792 $2,357
1791 $2,399
1790 $2,464
1789 $2,557
1788 $2,534
1787 $2,420
1786 $2,378
1785 $2,317
1784 $2,204
1783 $2,118
1782 $1,857
1781 $2,038
1780 $1,643
1779 $1,844
1778 $1,633
1777 $2,118
1776 $2,582
1775 $2,947
1774 $2,795
1773 $2,684
1772 $2,487
1771 $2,824
1770 $2,711
1769 $2,915
1768 $3,012
1767 $2,854
1766 $2,766
1765 $3,046
1764 $3,081
1763 $2,854
1762 $2,854
1761 $3,012
1760 $2,824
1759 $2,738
1758 $3,116
1757 $3,347
1756 $3,521
1755 $3,432
1754 $3,347
1753 $3,227
1752 $3,116
1751 $3,189
1750 $3,227
1749 $3,227
1748 $3,306
1747 $3,818
1746 $4,171
1745 $4,236
1744 $4,107
1743 $3,818
1742 $3,347
1741 $2,979
1740 $4,107
1739 $4,303
1738 $3,818
1737 $4,107
1736 $4,171
1735 $3,987
1734 $4,046
1733 $4,107
1732 $4,046
1731 $3,818
1730 $3,389
1729 $3,389
1728 $3,347
1727 $3,152
1726 $2,947
1725 $2,854
1724 $3,389
1723 $3,567
1722 $3,615
1721 $3,818
1720 $3,567
1719 $2,947
1718 $3,081
1717 $3,567
1716 $3,765
1715 $3,081
1714 $2,118
1713 $2,118
1712 $2,278
1711 $2,582
1710 $2,711
1709 $2,337
1708 $2,152
1707 $2,278
1706 $2,442
1705 $2,607
1704 $2,510
1703 $2,297
1702 $1,993
1701 $1,923
1700 $2,085