<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AUS%24%2Fdoc</id>
	<title>Template:US$/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tiffa.net/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AUS%24%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:US$/doc&amp;action=history"/>
	<updated>2026-04-18T16:33:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.tiffa.net/w/index.php?title=Template:US$/doc&amp;diff=600&amp;oldid=prev</id>
		<title>imported&gt;Fire at 04:24, 17 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.tiffa.net/w/index.php?title=Template:US$/doc&amp;diff=600&amp;oldid=prev"/>
		<updated>2022-12-17T04:24:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{二次利用}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlxi|US$|number}}&lt;br /&gt;
&lt;br /&gt;
Additional text like &amp;quot;million&amp;quot; or &amp;quot;trillion&amp;quot; must be placed outside the template, typically preceded by a non-breaking space (see example below).&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
* {{tld|US$}} → {{US$}}&lt;br /&gt;
* {{tld|US$|123.45}} → {{US$|123.45}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{US$|123}}{{nbsp}}million&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{US$|123}}{{nbsp}}million&lt;br /&gt;
&lt;br /&gt;
==== Link ====&lt;br /&gt;
The parameter {{para|link|yes}} may be used to link US$ to the article [[Wikipedia:United States dollar|United States dollar]]. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
* {{tld|US$|123.45|3=link=yes}} → {{US$|123.45|link=yes}}&lt;br /&gt;
&lt;br /&gt;
==== Suppress &amp;quot;US&amp;quot; ====&lt;br /&gt;
By specifying {{para|long|no}}, display of &amp;quot;US&amp;quot; before the &amp;quot;$&amp;quot; sign may be suppressed when it is clear from context that the [[Wikipedia:United States dollar|United States dollar]] is meant, rather than one of the twenty or so other currencies going by the name of &amp;quot;[[Wikipedia:dollar|dollar]]&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* {{tld|US$|123.45|3=long=no}} → {{US$|123.45|long=no}}&lt;br /&gt;
* {{tld|US$|123.45|3=long=no|4=link=yes}} → {{US$|123.45|long=no|link=yes}}&lt;br /&gt;
&lt;br /&gt;
==== Inflation calculation ====&lt;br /&gt;
{{ombox |type= content |imageright= [[File:Emblem-money.svg|42px]] |text= This template is &amp;lt;strong&amp;gt;only capable&amp;lt;/strong&amp;gt; of inflating Consumer Price Index values: staples, workers&amp;#039; rent, small service bills (doctor&amp;#039;s costs, train tickets). This template is &amp;lt;strong&amp;gt;incapable&amp;lt;/strong&amp;gt; of inflating capital expenses, government expenses, or the personal wealth and expenditure of the rich. &amp;lt;strong&amp;gt;Incorrect use of this template would constitute original research. If you yourself do not have economic training, then please consult someone who does before using this template.&amp;lt;/strong&amp;gt;}}&lt;br /&gt;
{{ombox |type= content |imageright= [[File:Current event warning.svg|42px]] |text= &amp;lt;strong&amp;gt;Do not assume that using this template will mean that a calculated value is &amp;lt;em&amp;gt;&amp;quot;current&amp;quot;&amp;lt;/em&amp;gt;&amp;lt;/strong&amp;gt;, &amp;lt;em&amp;gt;&amp;quot;as of {{CURRENTYEAR}}&amp;quot;&amp;lt;/em&amp;gt;, &amp;lt;em&amp;gt;&amp;quot;as of {{#expr:{{CURRENTYEAR}}-1}}&amp;quot;&amp;lt;/em&amp;gt; or even necessarily &amp;lt;em&amp;gt;&amp;quot;recent&amp;quot;&amp;lt;/em&amp;gt;. Do not use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CURRENTYEAR}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to refer to calculated value, instead {{tlx|Inflation/year|US}} may be used. See also [[MOS:REALTIME]].}}&lt;br /&gt;
&lt;br /&gt;
The template supports inflation calculation, by way of {{tlx|Inflation}}. If the second parameter is used, to specify a year, and this year is within a certain range of available inflation data (specifically, {{nowrap|if {{Inflation/US/startyear}} ≤ &amp;lt;code&amp;gt;{{var|year}}&amp;lt;/code&amp;gt; &amp;lt; {{Inflation/year|US}}}}), the equivalent value represented in {{Inflation/year|US}} dollars will be calculated in parentheses. However, this function should only be used in appropriate situations.&lt;br /&gt;
&lt;br /&gt;
* {{tlxi|US$|value|year}}&lt;br /&gt;
* {{tlx|US$|{{var|value}}|{{var|year}}|4=round={{var|round}}|5=about=yes}}&lt;br /&gt;
&lt;br /&gt;
;Examples:&lt;br /&gt;
* {{tld|US$|100|{{#expr:{{Inflation/US/startyear}}-1}}}} → {{US$|100|{{#expr:{{Inflation/US/startyear}}-1}}}}&lt;br /&gt;
* {{tld|US$|100|{{Inflation/US/startyear}}}} → {{US$|100|{{Inflation/US/startyear}}}}&lt;br /&gt;
* {{tld|US$|100|1966}} → {{US$|100|1966}}&lt;br /&gt;
* {{tld|US$|100|1966|4=link=yes}} → {{US$|100|1966|link=yes}}&lt;br /&gt;
* {{tld|US$|100|{{#expr:{{Inflation/year|US}}-1}}}} → {{US$|100|{{#expr:{{Inflation/year|US}}-1}}}}&lt;br /&gt;
* {{tld|US$|100|{{Inflation/year|US}}}} → {{US$|100|{{Inflation/year|US}}}}&lt;br /&gt;
* {{tld|US$|100|{{CURRENTYEAR}}}} → {{US$|100|{{CURRENTYEAR}}}}&lt;br /&gt;
* {{tld|US$|100|{{#expr:{{CURRENTYEAR}}+1}}}} → {{US$|100|{{#expr:{{CURRENTYEAR}}+1}}}}&lt;br /&gt;
&lt;br /&gt;
Additional parameter {{para|about|yes}} will cause the template to calculate to the nearest dollar (instead of the nearest cent), and prefix the calculated value with &amp;quot;about&amp;quot;. The rounding can be fine-tuned further by using {{para|round|{{var|integer}}}}. These parameters may be combined.&lt;br /&gt;
&lt;br /&gt;
;Examples:&lt;br /&gt;
* {{tld|US$|10|1935}} → {{US$|10|1935}}&lt;br /&gt;
* {{tld|US$|10|1935|4=round=0}} → {{US$|10|1935|round=0}}&lt;br /&gt;
* {{tld|US$|10|1935|4=about=yes}} → {{US$|10|1935|about=yes}}&lt;br /&gt;
* {{tld|US$|1000|1935|4=round=2}} → {{US$|1000|1935|round=2}}&lt;br /&gt;
* {{tld|US$|1000|1935|4=round=-2}} → {{US$|1000|1935|round=-2}}&lt;br /&gt;
* {{tld|US$|1000|1935|4=round=-2|5=about=yes}} → {{US$|1000|1935|round=-2|about=yes}}&lt;br /&gt;
&lt;br /&gt;
;Caution&lt;br /&gt;
&lt;br /&gt;
The inflation-calculation code causes this template to approach the 40-deep &amp;#039;&amp;#039;&amp;#039;[[meta:Help:Expansion depth|expansion depth limit]]&amp;#039;&amp;#039;&amp;#039; in the software that makes Wikipedia work. Pages that exceed this limit are placed in [[:Category:Pages where expansion depth is exceeded]].  Using {{para|about|yes}} can reduce the impact somewhat.  If you call this template from within another template and use the inflation feature, consider adding a caution similar to this one to that template&amp;#039;s documention page.&lt;br /&gt;
&lt;br /&gt;
== Redirects here ==&lt;br /&gt;
* [[Template:USD]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Wikipedia:Manual of Style (dates and numbers)#Currencies]]&lt;br /&gt;
* [[Template:Currency]]&lt;br /&gt;
* [[Wikipedia:Wikiproject United States]]&lt;br /&gt;
* [[Template:AUD]]&lt;br /&gt;
* [[Template:BDT]]&lt;br /&gt;
* [[Template:CAD]]&lt;br /&gt;
* [[Template:CNY]]&lt;br /&gt;
* [[Template:GB£]]&lt;br /&gt;
* [[Template:INR]]&lt;br /&gt;
* [[Template:JPY]]&lt;br /&gt;
* [[Template:Philippine peso]]&lt;br /&gt;
* [[Template:PKR]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
{{DEFAULTSORT:USD}}&lt;br /&gt;
[[Category:United States economic templates]]&lt;br /&gt;
[[Category:Currency templates]]&lt;br /&gt;
[[Category:Currencies of the United States|τ]]&lt;br /&gt;
[[Category:Unit indicator templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt; &lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Amount&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Amount in US$&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Year&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Specify a year and, if this year is between 1800 and the current year minus 1, the inflation-adjusted value will be calculated in parentheses&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Link?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Link US$ to article&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;yes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;about&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;About?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If yes, calculate to the nearest dollar (instead of the nearest cent) and prefix the calculated value with \&amp;quot;about\&amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;yes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;round&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Decimal points&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Integer, where round to number of decimal points specified, use negative (for example, -2) for significant figures&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;2&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;long&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;US$?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If no, display of \&amp;quot;US\&amp;quot; before the \&amp;quot;$\&amp;quot; sign will be suppressed when it is clear from context that the United States dollar is meant, rather than one of the twenty or so other currencies going by the name of \&amp;quot;dollar\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This is a multifunction template. At its simplest, it adds the currency mark \&amp;quot;US$\&amp;quot;, as recommended by MOS:CURRENCY for many situations. The template can also link to the United States dollar article and can even calculate inflation.&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Fire</name></author>
	</entry>
</feed>