Template:USDCY/doc

Template page

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 ($234.00 in 2022).

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 any weird crap 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 $100.00
2021 $108.00
2020 $113.00
2019 $114.00
2018 $117.00
2017 $119.00
2016 $122.00
2015 $123.00
2014 $124.00
2013 $126.00
2012 $127.00
2011 $130.00
2010 $134.00
2009 $136.00
2008 $136.00
2007 $141.00
2006 $145.00
2005 $150.00
2004 $155.00
2003 $159.00
2002 $163.00
2001 $165.00
2000 $170.00
1999 $176.00
1998 $180.00
1997 $182.00
1996 $187.00
1995 $192.00
1994 $197.00
1993 $203.00
1992 $209.00
1991 $215.00
1990 $224.00
1989 $236.00
1988 $247.00
1987 $258.00
1986 $267.00
1985 $272.00
1984 $282.00
1983 $294.00
1982 $303.00
1981 $322.00
1980 $355.00
1979 $403.00
1978 $449.00
1977 $483.00
1976 $514.00
1975 $544.00
1974 $593.00
1973 $659.00
1972 $700.00
1971 $723.00
1970 $754.00
1969 $798.00
1968 $842.00
1967 $878.00
1966 $902.00
1965 $929.00
1964 $944.00
1963 $956.00
1962 $967.00
1961 $979.00
1960 $989.00
1959 $1,004
1958 $1,014
1957 $1,042
1956 $1,076
1955 $1,092
1954 $1,090
1953 $1,094
1952 $1,102
1951 $1,127
1950 $1,216
1949 $1,230
1948 $1,218
1947 $1,311
1946 $1,501
1945 $1,626
1944 $1,662
1943 $1,691
1942 $1,791
1941 $1,990
1940 $2,089
1939 $2,104
1938 $2,079
1937 $2,036
1936 $2,109
1935 $2,134
1934 $2,188
1933 $2,261
1932 $2,145
1931 $1,924
1930 $1,752
1929 $1,704
1928 $1,704
1927 $1,685
1926 $1,653
1925 $1,669
1924 $1,708
1923 $1,718
1922 $1,748
1921 $1,641
1920 $1,461
1919 $1,688
1918 $1,946
1917 $2,284
1916 $2,689
1915 $2,893
1914 $2,922
1913 $2,961
1912 $3,032
1911 $3,141
1910 $3,141
1909 $3,257
1908 $3,257
1907 $3,141
1906 $3,257
1905 $3,257
1904 $3,257
1903 $3,257
1902 $3,382
1901 $3,518
1900 $3,518
1899 $3,518
1898 $3,518
1897 $3,518
1896 $3,518
1895 $3,518
1894 $3,382
1893 $3,257
1892 $3,257
1891 $3,257
1890 $3,257
1889 $3,257
1888 $3,257
1887 $3,257
1886 $3,257
1885 $3,257
1884 $3,257
1883 $3,141
1882 $3,032
1881 $3,032
1880 $3,032
1879 $3,141
1878 $3,032
1877 $2,748
1876 $2,748
1875 $2,665
1874 $2,586
1873 $2,443
1872 $2,443
1871 $2,443
1870 $2,314
1869 $2,199
1868 $2,199
1867 $2,094
1866 $1,999
1865 $1,912
1864 $1,871
1863 $2,377
1862 $2,931
1861 $3,257
1860 $3,257
1859 $3,257
1858 $3,382
1857 $3,141
1856 $3,257
1855 $3,141
1854 $3,257
1853 $3,518
1852 $3,518
1851 $3,518
1850 $3,518
1849 $3,518
1848 $3,382
1847 $3,141
1846 $3,257
1845 $3,141
1844 $3,141
1843 $3,141
1842 $3,032
1841 $2,837
1840 $2,931
1839 $2,748
1838 $2,748
1837 $2,586
1836 $2,665
1835 $2,837
1834 $2,931
1833 $3,032
1832 $2,931
1831 $2,748
1830 $2,748
1829 $2,748
1828 $2,665
1827 $2,586
1826 $2,586
1825 $2,586
1824 $2,665
1823 $2,443
1822 $2,199
1821 $2,199
1820 $2,094
1819 $1,912
1818 $1,912
1817 $1,832
1816 $1,724
1815 $1,599
1814 $1,396
1813 $1,516
1812 $1,724
1811 $1,759
1810 $1,871
1809 $1,871
1808 $1,832
1807 $1,999
1806 $1,871
1805 $1,954
1804 $1,954
1803 $1,954
1802 $2,045
1801 $1,759
1800 $1,724
1799 $1,759
1798 $1,759
1797 $1,702
1796 $1,638
1795 $1,724
1794 $1,973
1793 $2,188
1792 $2,264
1791 $2,304
1790 $2,367
1789 $2,456
1788 $2,433
1787 $2,325
1786 $2,284
1785 $2,225
1784 $2,117
1783 $2,034
1782 $1,783
1781 $1,958
1780 $1,578
1779 $1,771
1778 $1,569
1777 $2,034
1776 $2,480
1775 $2,830
1774 $2,684
1773 $2,578
1772 $2,389
1771 $2,712
1770 $2,604
1769 $2,800
1768 $2,893
1767 $2,741
1766 $2,657
1765 $2,926
1764 $2,959
1763 $2,741
1762 $2,741
1761 $2,893
1760 $2,712
1759 $2,630
1758 $2,993
1757 $3,214
1756 $3,381
1755 $3,296
1754 $3,214
1753 $3,100
1752 $2,993
1751 $3,063
1750 $3,100
1749 $3,100
1748 $3,175
1747 $3,667
1746 $4,006
1745 $4,068
1744 $3,945
1743 $3,667
1742 $3,214
1741 $2,861
1740 $3,945
1739 $4,133
1738 $3,667
1737 $3,945
1736 $4,006
1735 $3,829
1734 $3,886
1733 $3,945
1732 $3,886
1731 $3,667
1730 $3,255
1729 $3,255
1728 $3,214
1727 $3,028
1726 $2,830
1725 $2,741
1724 $3,255
1723 $3,426
1722 $3,472
1721 $3,667
1720 $3,426
1719 $2,830
1718 $2,959
1717 $3,426
1716 $3,616
1715 $2,959
1714 $2,034
1713 $2,034
1712 $2,188
1711 $2,480
1710 $2,604
1709 $2,245
1708 $2,066
1707 $2,188
1706 $2,346
1705 $2,504
1704 $2,411
1703 $2,207
1702 $1,914
1701 $1,847
1700 $2,003