模板:Qualityprice
出自星露谷物語擴展百科
更多語言
更多操作
描述
這個模板用於顯示物品多種品質下的售出價格,並且能夠根據使用的需要進行格式化。這個模板採用了物品的圖標(帶有星級標記),而非金幣圖標。圖標的大小為24px。
(另註:該模板參數只接受物品的英文名稱。若給定的是物品的中文名稱,則物品圖標無法正常顯示,部分物品還可能因公式設定出現計算錯誤的情況。)
參數
| 參數 | 提示 |
|---|---|
| First (unnamed) parameter | Name of image (minus ".png") |
| Second (unnamed) parameter | Normal/base sell price of item (can be found in ObjectInformation.xnb) or Normal/base sell price of item used to make 工匠物品 (see examples below) Note: also accepts non-numbers such as "3x base fruit price" without throwing an error |
| quality | Single quality to display. Defaults to all qualities (normal, silver, gold, iridium) if omitted. Note: Instead of specifying 3 qualities to show, use the "hide" parameter with one quality instead. Items that exist in normal quality only do not have to specify quality=normal (i.e., 山洞蘿蔔, 姜, 綠茶, 蜂蜜, 果醬, 果汁, 油, 醃菜, 齊瓜, and 茶葉) Note: Other items may be added in the future. In the meantime, specifying quality=normal will work.
|
| hide | Qualities to hide (e.g., hide=silver,gold) |
| pm | Profession modifier Tiller gives a 10% bonus, so specify pm=1.1 Angler gives a 50% bonus, so specify pm=1.5 etc. |
| dsv | data-sort-value Set to false if the quality price(s) are displayed in a non-sortable structure (like an infobox) Default value is true (the entire parameter can be omitted if a data-sort-value is desired). |
舉例
| 代碼 | 顯示效果 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
{{Qualityprice|Melon|250}}
|
| ||||||||
{{Qualityprice|Parsnip|35|pm=1.1}}
|
| ||||||||
{{Qualityprice|Ginger|60}}
|
| ||||||||
{{Qualityprice|Goat Cheese|400|hide=normal,silver}}
|
| ||||||||
{{Qualityprice|Large Goat Milk FR|345}}
|
| ||||||||
{{Qualityprice|Juice|260}}(The base sell price of 紅葉捲心菜 is 260, and the base sell price of 紅葉捲心菜 果汁 is 585) |
| ||||||||
{{Qualityprice|Wine|750|pm=1.4}}(The base sell price of 楊桃 is 750, and the Artisan base sell price of 楊桃 果酒 is 3,150) |
| ||||||||
{{Qualityprice|Honey|30}}(The base sell price of a 鬱金香 is 30, and the base sell price of 鬱金香 蜂蜜 is 160) |
|
