“Template:Tprice”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(Localized)
第2行: 第2行:
 
| [[File:Gold.png|18px|link=]]{{formatnum:
 
| [[File:Gold.png|18px|link=]]{{formatnum:
 
   {{#ifeq:{{{1|}}}|furniture
 
   {{#ifeq:{{{1|}}}|furniture
    | 250 –2500
+
    | 250 金 ~ 2500
 
    | {{#ifeq:{{{math|true}}}|false
 
    | {{#ifeq:{{{math|true}}}|false
 
     | {{{1|}}}
 
     | {{{1|}}}
第19行: 第19行:
 
    }}
 
    }}
 
   }}金
 
   }}金
}}</includeonly><noinclude>{{Englishdoc}}</noinclude>
+
}}</includeonly><noinclude>'''Template:Tprice''' 用于输出[[旅行货车]]的浮动价格。这个模板会自动补全金币符号和单位。
 +
 
 +
==例子==
 +
<pre>{{Tprice|40}}</pre>
 +
 
 +
{{Tprice|40}}
 +
 
 +
<pre>{{Tprice|furniture}}</pre>
 +
 
 +
{{Tprice|furniture}}
 +
 
 +
<pre>{{Tprice|40–20000|math=false}}</pre>
 +
 
 +
{{Tprice|40–20000|math=false}}
 +
 
 +
{{Englishdoc}}</noinclude>

2023年4月7日 (五) 12:13的版本

Template:Tprice 用于输出旅行货车的浮动价格。这个模板会自动补全金币符号和单位。

例子

{{Tprice|40}}

Gold.png120金 ~ 1,000金

{{Tprice|furniture}}

Gold.png250金 ~ 2,500金

{{Tprice|40–20000|math=false}}

Gold.png40–20,000金

有关此模板的详细信息,请参阅英语语言文档页

用法

可以通过在相关页面上输入以下内容来使用此模板。

{{Tprice}}

结果是...