Template:USDCY/doc
Appearance
This template will automatically show current-year US dollar figures for any historical value you put in, using {{inflation}}.
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 | $100 then is | $100 now was |
---|---|---|
2022 | $104.00 | $96.154 |
2021 | $112.00 | $89.286 |
2020 | $118.00 | $84.746 |
2019 | $119.00 | $84.034 |
2018 | $121.00 | $82.645 |
2017 | $124.00 | $80.645 |
2016 | $127.00 | $78.740 |
2015 | $129.00 | $77.519 |
2014 | $129.00 | $77.519 |
2013 | $131.00 | $76.336 |
2012 | $133.00 | $75.188 |
2011 | $135.00 | $74.074 |
2010 | $140.00 | $71.429 |
2009 | $142.00 | $70.423 |
2008 | $142.00 | $70.423 |
2007 | $147.00 | $68.027 |
2006 | $151.00 | $66.225 |
2005 | $156.00 | $64.103 |
2004 | $161.00 | $62.112 |
2003 | $166.00 | $60.241 |
2002 | $169.00 | $59.172 |
2001 | $172.00 | $58.140 |
2000 | $177.00 | $56.497 |
1999 | $183.00 | $54.645 |
1998 | $187.00 | $53.476 |
1997 | $190.00 | $52.632 |
1996 | $194.00 | $51.546 |
1995 | $200.00 | $50.000 |
1994 | $206.00 | $48.544 |
1993 | $211.00 | $47.393 |
1992 | $217.00 | $46.083 |
1991 | $224.00 | $44.643 |
1990 | $233.00 | $42.918 |
1989 | $246.00 | $40.650 |
1988 | $258.00 | $38.760 |
1987 | $268.00 | $37.313 |
1986 | $278.00 | $35.971 |
1985 | $283.00 | $35.336 |
1984 | $293.00 | $34.130 |
1983 | $306.00 | $32.680 |
1982 | $316.00 | $31.646 |
1981 | $335.00 | $29.851 |
1980 | $370.00 | $27.027 |
1979 | $420.00 | $23.810 |
1978 | $467.00 | $21.413 |
1977 | $503.00 | $19.881 |
1976 | $535.00 | $18.692 |
1975 | $566.00 | $17.668 |
1974 | $618.00 | $16.181 |
1973 | $686.00 | $14.577 |
1972 | $728.00 | $13.736 |
1971 | $752.00 | $13.298 |
1970 | $785.00 | $12.739 |
1969 | $831.00 | $12.034 |
1968 | $876.00 | $11.416 |
1967 | $914.00 | $10.941 |
1966 | $939.00 | $10.650 |
1965 | $967.00 | $10.341 |
1964 | $982.00 | $10.183 |
1963 | $995.00 | $10.050 |
1962 | $1,007 | $9.930 |
1961 | $1,020 | $9.804 |
1960 | $1,030 | $9.709 |
1959 | $1,045 | $9.569 |
1958 | $1,056 | $9.470 |
1957 | $1,085 | $9.217 |
1956 | $1,121 | $8.921 |
1955 | $1,137 | $8.795 |
1954 | $1,135 | $8.811 |
1953 | $1,139 | $8.780 |
1952 | $1,147 | $8.718 |
1951 | $1,174 | $8.518 |
1950 | $1,266 | $7.899 |
1949 | $1,281 | $7.806 |
1948 | $1,268 | $7.886 |
1947 | $1,365 | $7.326 |
1946 | $1,562 | $6.402 |
1945 | $1,692 | $5.910 |
1944 | $1,731 | $5.777 |
1943 | $1,761 | $5.679 |
1942 | $1,865 | $5.362 |
1941 | $2,071 | $4.829 |
1940 | $2,175 | $4.598 |
1939 | $2,190 | $4.566 |
1938 | $2,165 | $4.619 |
1937 | $2,119 | $4.719 |
1936 | $2,196 | $4.554 |
1935 | $2,222 | $4.500 |
1934 | $2,278 | $4.390 |
1933 | $2,354 | $4.248 |
1932 | $2,233 | $4.478 |
1931 | $2,004 | $4.990 |
1930 | $1,824 | $5.482 |
1929 | $1,774 | $5.637 |
1928 | $1,774 | $5.637 |
1927 | $1,754 | $5.701 |
1926 | $1,721 | $5.811 |
1925 | $1,737 | $5.757 |
1924 | $1,778 | $5.624 |
1923 | $1,788 | $5.593 |
1922 | $1,820 | $5.495 |
1921 | $1,708 | $5.855 |
1920 | $1,521 | $6.575 |
1919 | $1,757 | $5.692 |
1918 | $2,026 | $4.936 |
1917 | $2,378 | $4.205 |
1916 | $2,800 | $3.571 |
1915 | $3,012 | $3.320 |
1914 | $3,042 | $3.287 |
1913 | $3,083 | $3.244 |
1912 | $3,157 | $3.168 |
1911 | $3,270 | $3.058 |
1910 | $3,270 | $3.058 |
1909 | $3,391 | $2.949 |
1908 | $3,391 | $2.949 |
1907 | $3,270 | $3.058 |
1906 | $3,391 | $2.949 |
1905 | $3,391 | $2.949 |
1904 | $3,391 | $2.949 |
1903 | $3,391 | $2.949 |
1902 | $3,522 | $2.839 |
1901 | $3,662 | $2.731 |
1900 | $3,662 | $2.731 |
1899 | $3,662 | $2.731 |
1898 | $3,662 | $2.731 |
1897 | $3,662 | $2.731 |
1896 | $3,662 | $2.731 |
1895 | $3,662 | $2.731 |
1894 | $3,522 | $2.839 |
1893 | $3,391 | $2.949 |
1892 | $3,391 | $2.949 |
1891 | $3,391 | $2.949 |
1890 | $3,391 | $2.949 |
1889 | $3,391 | $2.949 |
1888 | $3,391 | $2.949 |
1887 | $3,391 | $2.949 |
1886 | $3,391 | $2.949 |
1885 | $3,391 | $2.949 |
1884 | $3,391 | $2.949 |
1883 | $3,270 | $3.058 |
1882 | $3,157 | $3.168 |
1881 | $3,157 | $3.168 |
1880 | $3,157 | $3.168 |
1879 | $3,270 | $3.058 |
1878 | $3,157 | $3.168 |
1877 | $2,861 | $3.495 |
1876 | $2,861 | $3.495 |
1875 | $2,775 | $3.604 |
1874 | $2,693 | $3.713 |
1873 | $2,543 | $3.932 |
1872 | $2,543 | $3.932 |
1871 | $2,543 | $3.932 |
1870 | $2,409 | $4.151 |
1869 | $2,289 | $4.369 |
1868 | $2,289 | $4.369 |
1867 | $2,180 | $4.587 |
1866 | $2,081 | $4.805 |
1865 | $1,990 | $5.025 |
1864 | $1,948 | $5.133 |
1863 | $2,475 | $4.040 |
1862 | $3,052 | $3.277 |
1861 | $3,391 | $2.949 |
1860 | $3,391 | $2.949 |
1859 | $3,391 | $2.949 |
1858 | $3,522 | $2.839 |
1857 | $3,270 | $3.058 |
1856 | $3,391 | $2.949 |
1855 | $3,270 | $3.058 |
1854 | $3,391 | $2.949 |
1853 | $3,662 | $2.731 |
1852 | $3,662 | $2.731 |
1851 | $3,662 | $2.731 |
1850 | $3,662 | $2.731 |
1849 | $3,662 | $2.731 |
1848 | $3,522 | $2.839 |
1847 | $3,270 | $3.058 |
1846 | $3,391 | $2.949 |
1845 | $3,270 | $3.058 |
1844 | $3,270 | $3.058 |
1843 | $3,270 | $3.058 |
1842 | $3,157 | $3.168 |
1841 | $2,954 | $3.385 |
1840 | $3,052 | $3.277 |
1839 | $2,861 | $3.495 |
1838 | $2,861 | $3.495 |
1837 | $2,693 | $3.713 |
1836 | $2,775 | $3.604 |
1835 | $2,954 | $3.385 |
1834 | $3,052 | $3.277 |
1833 | $3,157 | $3.168 |
1832 | $3,052 | $3.277 |
1831 | $2,861 | $3.495 |
1830 | $2,861 | $3.495 |
1829 | $2,861 | $3.495 |
1828 | $2,775 | $3.604 |
1827 | $2,693 | $3.713 |
1826 | $2,693 | $3.713 |
1825 | $2,693 | $3.713 |
1824 | $2,775 | $3.604 |
1823 | $2,543 | $3.932 |
1822 | $2,289 | $4.369 |
1821 | $2,289 | $4.369 |
1820 | $2,180 | $4.587 |
1819 | $1,990 | $5.025 |
1818 | $1,990 | $5.025 |
1817 | $1,908 | $5.241 |
1816 | $1,795 | $5.571 |
1815 | $1,665 | $6.006 |
1814 | $1,453 | $6.882 |
1813 | $1,579 | $6.333 |
1812 | $1,795 | $5.571 |
1811 | $1,831 | $5.461 |
1810 | $1,948 | $5.133 |
1809 | $1,948 | $5.133 |
1808 | $1,908 | $5.241 |
1807 | $2,081 | $4.805 |
1806 | $1,948 | $5.133 |
1805 | $2,035 | $4.914 |
1804 | $2,035 | $4.914 |
1803 | $2,035 | $4.914 |
1802 | $2,129 | $4.697 |
1801 | $1,831 | $5.461 |
1800 | $1,795 | $5.571 |
1799 | $1,832 | $5.459 |
1798 | $1,832 | $5.459 |
1797 | $1,772 | $5.643 |
1796 | $1,705 | $5.865 |
1795 | $1,795 | $5.571 |
1794 | $2,054 | $4.869 |
1793 | $2,278 | $4.390 |
1792 | $2,357 | $4.243 |
1791 | $2,399 | $4.168 |
1790 | $2,464 | $4.058 |
1789 | $2,557 | $3.911 |
1788 | $2,534 | $3.946 |
1787 | $2,420 | $4.132 |
1786 | $2,378 | $4.205 |
1785 | $2,317 | $4.316 |
1784 | $2,204 | $4.537 |
1783 | $2,118 | $4.721 |
1782 | $1,857 | $5.385 |
1781 | $2,038 | $4.907 |
1780 | $1,643 | $6.086 |
1779 | $1,844 | $5.423 |
1778 | $1,633 | $6.124 |
1777 | $2,118 | $4.721 |
1776 | $2,582 | $3.873 |
1775 | $2,947 | $3.393 |
1774 | $2,795 | $3.578 |
1773 | $2,684 | $3.726 |
1772 | $2,487 | $4.021 |
1771 | $2,824 | $3.541 |
1770 | $2,711 | $3.689 |
1769 | $2,915 | $3.431 |
1768 | $3,012 | $3.320 |
1767 | $2,854 | $3.504 |
1766 | $2,766 | $3.615 |
1765 | $3,046 | $3.283 |
1764 | $3,081 | $3.246 |
1763 | $2,854 | $3.504 |
1762 | $2,854 | $3.504 |
1761 | $3,012 | $3.320 |
1760 | $2,824 | $3.541 |
1759 | $2,738 | $3.652 |
1758 | $3,116 | $3.209 |
1757 | $3,347 | $2.988 |
1756 | $3,521 | $2.840 |
1755 | $3,432 | $2.914 |
1754 | $3,347 | $2.988 |
1753 | $3,227 | $3.099 |
1752 | $3,116 | $3.209 |
1751 | $3,189 | $3.136 |
1750 | $3,227 | $3.099 |
1749 | $3,227 | $3.099 |
1748 | $3,306 | $3.025 |
1747 | $3,818 | $2.619 |
1746 | $4,171 | $2.398 |
1745 | $4,236 | $2.361 |
1744 | $4,107 | $2.435 |
1743 | $3,818 | $2.619 |
1742 | $3,347 | $2.988 |
1741 | $2,979 | $3.357 |
1740 | $4,107 | $2.435 |
1739 | $4,303 | $2.324 |
1738 | $3,818 | $2.619 |
1737 | $4,107 | $2.435 |
1736 | $4,171 | $2.398 |
1735 | $3,987 | $2.508 |
1734 | $4,046 | $2.472 |
1733 | $4,107 | $2.435 |
1732 | $4,046 | $2.472 |
1731 | $3,818 | $2.619 |
1730 | $3,389 | $2.951 |
1729 | $3,389 | $2.951 |
1728 | $3,347 | $2.988 |
1727 | $3,152 | $3.173 |
1726 | $2,947 | $3.393 |
1725 | $2,854 | $3.504 |
1724 | $3,389 | $2.951 |
1723 | $3,567 | $2.803 |
1722 | $3,615 | $2.766 |
1721 | $3,818 | $2.619 |
1720 | $3,567 | $2.803 |
1719 | $2,947 | $3.393 |
1718 | $3,081 | $3.246 |
1717 | $3,567 | $2.803 |
1716 | $3,765 | $2.656 |
1715 | $3,081 | $3.246 |
1714 | $2,118 | $4.721 |
1713 | $2,118 | $4.721 |
1712 | $2,278 | $4.390 |
1711 | $2,582 | $3.873 |
1710 | $2,711 | $3.689 |
1709 | $2,337 | $4.279 |
1708 | $2,152 | $4.647 |
1707 | $2,278 | $4.390 |
1706 | $2,442 | $4.095 |
1705 | $2,607 | $3.836 |
1704 | $2,510 | $3.984 |
1703 | $2,297 | $4.354 |
1702 | $1,993 | $5.018 |
1701 | $1,923 | $5.200 |
1700 | $2,085 | $4.796 |