模板:Value
跳至導覽
跳至搜尋
Template for showing prices. Correctly fits inside a sentence or bullet lists.
Usage
{{value | platinum coin amount | gold coin amount | silver coin amount | copper coin amount | link = yes: optional, provides link(s) to the coin page, default is no. It is recommended to use links for the first use of the template in a page, but not afterwards. | text = yes: optional, name of coin will be displayed instead of icon, default is no. | small = yes: optional, coin images will be reduced to 11px, default is no. (coins have a default image size ranging from 12px to 16px) }}
{{value|platinum|gold|silver|copper|link=|text=|small=}}
Notes
- Values of "0", "" or null are not displayed.
- The values can also be a range.
- The template is inside a nowrap.
This | Gives |
---|---|
{{Value|1}} | 1 |
{{Value|0|1}} | 1 |
{{Value|0|0|1|}} | 1 |
{{Value|0|0|0|1}} | 1 |
{{Value|1|2|0|4}} | 1 2 4 |
{{Value|0|1|1|link=yes}} | 1 1 |
{{Value|0|1|1|text=yes}} | 1 金 1 銀 |
{{Value|0|1|1|link=yes|text=yes}} | 1 金 1 銀 |
{{Value|1|2|3|4|small=yes}} | 1 2 3 4 |
Inside a sentence:
- The Mining Helmet can be bought from a merchant for 4 .
- 1 is worth 100 .
- Meteor Heads drop 1-4 50-70