打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Qualityprice

来自星露谷物语扩展百科
Sizau留言 | 贡献2023年3月6日 (一) 20:43的版本 (doc, untranslated)

模板:Englishdoc

待翻译

当前页面的部分内容尚未翻译。帮助我们完善翻译

编辑于 2023-03-06 20:43:01

描述

这个模板用于显示物品多种品质下的售出价格,并且能够根据使用的需要进行格式化。这个模板采用了物品的图标(带有星级标记),而非金币图标。图标的大小为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}}
250
312
375
500
{{Qualityprice|Parsnip|35|pm=1.1}}
38
47
57
77
{{Qualityprice|Ginger|60}}
60
{{Qualityprice|Goat Cheese|400|hide=normal,silver}}
600
800
{{Qualityprice|Large Goat Milk FR|345}}
345
431
517
690
{{Qualityprice|Juice|260}}
(The base sell price of 红叶卷心菜 is 260,
and the base sell price of 红叶卷心菜 果汁 is 585)
585
{{Qualityprice|Wine|750|pm=1.4}}
(The base sell price of 杨桃 is 750,
and the Artisan base sell price of 杨桃 果酒 is 3,150)
3,150
3,936
4,725
6,300
{{Qualityprice|Honey|30}}
(The base sell price of a 郁金香 is 30,
and the base sell price of 郁金香 蜂蜜 is 160)
160