模板:ItemAmount
出自Meshal Lite
小 (模板:Item amount移动到模板:ItemAmount) |
|||
第1行: | 第1行: | ||
<includeonly>{{#ifeq: {{{amount|{{{1|}}}}}}|||{{#ifexpr: {{{amount|{{{1|}}}}}}>0|<font style="font-weight:normal; padding-left: 0.5em;">x{{{amount|{{{1|}}}}}}</font>|}} }}</includeonly><noinclude>[[category:模板]] | <includeonly>{{#ifeq: {{{amount|{{{1|}}}}}}|||{{#ifexpr: {{{amount|{{{1|}}}}}}>0|<font style="font-weight:normal; padding-left: 0.5em;">x{{{amount|{{{1|}}}}}}</font>|}} }}</includeonly><noinclude>[[category:模板]] | ||
− | |||
== 说明 == | == 说明 == | ||
− | |||
用于物品的数量说明, 当这个物品被调用的时候, 你可以输入'amount=n'的方式来表示其数量. | 用于物品的数量说明, 当这个物品被调用的时候, 你可以输入'amount=n'的方式来表示其数量. | ||
− | + | == 参数 == | |
− | + | ;1 / amount | |
− | + | :这个物品的数量 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |} | + | == 范例 == |
+ | <source lang="text"> | ||
+ | {{cardItemWeapon | ||
+ | |... | ||
+ | |add={{item_amount|{{{amount|{{{1|}}}}}}}} | ||
+ | |... | ||
+ | }} | ||
+ | </source> | ||
</noinclude> | </noinclude> |