模板:ItemAmount
出自Meshal Lite
(以内容“<includeonly><div style="text-align:right; font-weight:normal; float:right;">{{#ifexpr: {{{amount|{{{1|}}}}}}>0|x{{{amount|{{{1|}}}}}}|}}</div></includeonly><noinclude>...”创建新页面) |
|||
第1行: | 第1行: | ||
− | <includeonly> | + | <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'的方式来表示其数量. | ||
+ | {{tbk}} | ||
+ | == 参数 == | ||
+ | ;1 / amount | ||
+ | :这个物品的数量 | ||
− | == | + | == 范例 == |
− | {{ | + | <source lang="text"> |
− | + | {{cardItemWeapon | |
− | | | + | |... |
− | + | |add={{item_amount|{{{amount|{{{1|}}}}}}}} | |
− | = | + | |... |
− | {{ | + | }} |
− | + | </source> | |
− | + | ||
− | + | ||
− | + | ||
</noinclude> | </noinclude> |