更改

添加14字节 、 2023年6月18日 (日) 19:34
update template to use module
第1行: 第1行:  
<includeonly>{{#if:{{{1|}}}
 
<includeonly>{{#if:{{{1|}}}
| [[File:Gold.png|18px|link=]]{{formatnum:
+
|<span style="display: none;">data-sort-value="{{{1|}}}"</span><!--
  {{#ifeq:{{{1|}}}|furniture
+
-->{{#invoke:Tcartprice|tprice
   | 250–2500
+
|price = {{{1|}}}
   | {{#ifeq:{{{math|true}}}|false
+
|separator = ~
    | {{{1|}}}
+
|gold = 金
    | {{#expr:
+
|spacearoundseparator = true
      {{#ifexpr:100>{{{1|}}}*3
+
}}
      | 100
+
|}}</includeonly><noinclude>'''Template:Tprice''' 用于输出[[旅行货车]]的浮动价格。这个模板会自动补全金币符号和单位。
      | {{{1|}}}*3
+
 
      }}
+
==例子==
     }}金 ~ {{#expr:
+
<pre>{{Tprice|40}}</pre>
      {{#ifexpr:1000>{{{1|}}}*5
+
 
      | 1000
+
{{Tprice|40}}
      | {{{1|}}}*5
+
 
      }}
+
<pre>{{Tprice|furniture}}</pre>
     }}
+
 
    }}
+
{{Tprice|furniture}}
   }}
+
 
  }}金
+
{{Englishdoc}}</noinclude>
}}</includeonly><noinclude>{{Englishdoc}}</noinclude>
 
界面管理员、patroller、结构式讨论监督员管理员、translators
106,436

个编辑