更改

跳到导航 跳到搜索
添加9字节 、 2023年6月18日 (日) 19:34
update template to use module
第1行: 第1行:  
<includeonly>{{#if:{{{1|}}}
 
<includeonly>{{#if:{{{1|}}}
| [[File:Gold.png|24px|alt=Coin Icon|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}}
   }}
+
 
  }}g
+
{{Englishdoc}}</noinclude>
}}</includeonly><noinclude>{{englishdoc}}</noinclude>
 
界面管理员、patroller、结构式讨论监督员管理员、translators
107,325

个编辑

导航菜单