<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3AUS%24%2Fdoc</id>
	<title>Template:US$/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3AUS%24%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:US$/doc&amp;action=history"/>
	<updated>2026-07-20T01:38:52Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:US$/doc&amp;diff=2823833&amp;oldid=prev</id>
		<title>imported&gt;Tjmj：​/* 參數及使用方法 */</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:US$/doc&amp;diff=2823833&amp;oldid=prev"/>
		<updated>2020-11-26T18:20:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;參數及使用方法&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- 在這裡加入模板的保護標識 --&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation subpage}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- 在本行下編輯模板說明 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 概要 ==&lt;br /&gt;
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;lt;em&amp;gt;See warnings below.&amp;lt;/em&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 參數及使用方法 ==&lt;br /&gt;
{{tlxi|US$|數目}}&lt;br /&gt;
&lt;br /&gt;
範例：&lt;br /&gt;
* {{tld|US$}} → {{US$}}&lt;br /&gt;
* {{tld|US$|1234.56}} → {{US$|1234.56}}&lt;br /&gt;
* {{tld|US$|1.23千萬}} → {{US$|1.23千萬}}&lt;br /&gt;
&lt;br /&gt;
==== 連結 ====&lt;br /&gt;
The parameter {{para|link|yes}} may be used to link US$ to the article [[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;
範例：&lt;br /&gt;
* {{tld|US$|123.45|}} → {{US$|123.45}}&lt;br /&gt;
* {{tld|US$|123.45|3=link=yes}} → {{US$|123.45|link=yes}}&lt;br /&gt;
&lt;br /&gt;
==== 計算通脹 ====&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;
&amp;lt;!--&lt;br /&gt;
== 範例 ==&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 重定向 ==&lt;br /&gt;
* [[Template:USD]]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== 注意事项 ==&lt;br /&gt;
--&amp;gt;&lt;br /&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;數目&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;美元數目&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;年份&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;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;year&amp;quot;&lt;br /&gt;
			]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;link&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;加入連結?&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;
	},&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;br /&gt;
&lt;br /&gt;
== 參見 ==&lt;br /&gt;
* [[Template:Currency]]&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;!-- 本行下加入模板的分類，跨維基連結加入Wikidata（參見[[Wikipedia:Wikidata]]） --&amp;gt;&lt;br /&gt;
[[Category:美国经济模板]]&lt;br /&gt;
[[Category:货币模板]]&lt;br /&gt;
[[Category:美国货币]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Tjmj</name></author>
	</entry>
</feed>