變更

跳至導覽 跳至搜尋
增加 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
107,410

次編輯

導覽選單