“Template:Qualityprice”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(+qi fruit normal quality only)
(doc, untranslated)
第71行: 第71行:
 
</td>
 
</td>
 
</tr>
 
</tr>
}} }} }}</table></includeonly><noinclude>{{Englishdoc}}</noinclude>
+
}} }} }}</table></includeonly><noinclude>{{Englishdoc}}{{翻译}}
 +
==描述==
 +
这个模板用于显示物品多种品质下的售出价格,并且能够根据使用的需要进行格式化。这个模板采用了物品的图标(带有星级标记),而非金币图标。图标的大小为24px。
 +
 
 +
'''(另注:该模板参数只接受物品的英文名称。若给定的是物品的中文名称,则物品图标无法正常显示,部分物品还可能因公式设定出现计算错误的情况。)'''
 +
 
 +
==参数==
 +
{|class="wikitable sortable"
 +
|-
 +
!参数
 +
!提示
 +
|-
 +
|First (unnamed) parameter
 +
|Name of image (minus ".png")
 +
|-
 +
|Second (unnamed) parameter
 +
|Normal/base sell price of item (can be found in <samp>ObjectInformation.xnb</samp>)<br />''or''<br />Normal/base sell price of item used to make [[工匠物品]] (see examples below)<br />Note: also accepts non-numbers such as "3x base fruit price" without throwing an error
 +
|-
 +
|quality
 +
|Single quality to display.<br />Defaults to all qualities (normal, silver, gold, iridium) if omitted.<br />'''Note:''' Instead of specifying 3 qualities to show, use the "hide" parameter with one quality instead.<br />Items that exist in normal quality only do not have to specify <samp>quality=normal</samp> (''i.e.,'' [[山洞萝卜]], [[姜]], [[绿茶]], [[蜂蜜]], [[果酱和腌菜|果酱]], [[果汁]], [[油]], [[果酱和腌菜|腌菜]], [[齐瓜]], and [[茶叶]])<div style="font-size: smaller;">''Note: Other items may be added in the future. In the meantime, specifying <samp>quality=normal</samp> will work.''</div>
 +
|-
 +
|hide
 +
|Qualities to hide<br />(''e.g.,'' <samp>hide=silver,gold</samp>)
 +
|-
 +
|pm
 +
|Profession modifier<br />[[技能#耕种|Tiller]] gives a 10% bonus, so specify <samp>pm=1.1</samp><br />[[技能#钓鱼|Angler]] gives a 50% bonus, so specify <samp>pm=1.5</samp><br />etc.
 +
|-
 +
|dsv
 +
|data-sort-value<br />Set to <samp>false</samp> if the quality price(s) are displayed in a non-sortable structure (like an infobox)<br />Default value is true (the entire parameter can be omitted if a data-sort-value is desired).
 +
|-
 +
|}
 +
 
 +
==举例==
 +
{|class="wikitable sortable"
 +
|-
 +
!代码
 +
!显示效果
 +
|-
 +
|<code><nowiki>{{Qualityprice|Melon|250}}</nowiki></code>
 +
|{{Qualityprice|Melon|250}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Parsnip|35|pm=1.1}}</nowiki></code>
 +
|{{Qualityprice|Parsnip|35|pm=1.1}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Ginger|60}}</nowiki></code>
 +
|{{Qualityprice|Ginger|60}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Goat Cheese|400|hide=normal,silver}}</nowiki></code>
 +
|{{Qualityprice|Goat Cheese|400|hide=normal,silver}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Large Goat Milk FR|345}}</nowiki></code>
 +
|{{Qualityprice|Large Goat Milk FR|345}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Juice|260}}</nowiki></code><br />(The base sell price of [[红叶卷心菜]] is 260,<br />and the base sell price of 红叶卷心菜 果汁 is 585)
 +
|{{Qualityprice|Juice|260}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Wine|750|pm=1.4}}</nowiki></code><br />(The base sell price of [[杨桃]] is 750,<br />and the Artisan base sell price of 杨桃 果酒 is 3,150)
 +
|{{Qualityprice|Wine|750|pm=1.4}}
 +
|-
 +
|<code><nowiki>{{Qualityprice|Honey|30}}</nowiki></code><br />(The base sell price of a [[郁金香]] is 30,<br />and the base sell price of 郁金香 蜂蜜 is 160)
 +
|{{Qualityprice|Honey|30}}
 +
|-
 +
|}
 +
</noinclude>

2023年3月6日 (一) 12:43的版本

有关此模板的详细信息,请参阅英语语言文档页

用法

可以通过在相关页面上输入以下内容来使用此模板。

{{Qualityprice}}

结果是...

data-sort-value="0"

Blank icon.png
0
Blank icon.png
Silver Quality Icon.png
0
Blank icon.png
Gold Quality Icon.png
0
Blank icon.png
Iridium Quality Icon.png
0
Robin building.png
“我这里还有很多事情需要处理。”
— 罗宾

不完整的翻译

本文或部分尚未完全翻译成中文。 欢迎您通过编辑帮助其建设。
最后编辑Sizau于2023-03-06 12: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}} data-sort-value="250"
Melon.png
250金
Melon.png
Silver Quality Icon.png
312金
Melon.png
Gold Quality Icon.png
375金
Melon.png
Iridium Quality Icon.png
500金
{{Qualityprice|Parsnip|35|pm=1.1}} data-sort-value="38"
Parsnip.png
38金
Parsnip.png
Silver Quality Icon.png
47金
Parsnip.png
Gold Quality Icon.png
57金
Parsnip.png
Iridium Quality Icon.png
77金
{{Qualityprice|Ginger|60}} data-sort-value="60"
Ginger.png
60金
{{Qualityprice|Goat Cheese|400|hide=normal,silver}} data-sort-value="400"
Goat Cheese.png
Gold Quality Icon.png
600金
Goat Cheese.png
Iridium Quality Icon.png
800金
{{Qualityprice|Large Goat Milk FR|345}} data-sort-value="345"
Large Goat Milk FR.png
345金
Large Goat Milk FR.png
Silver Quality Icon.png
431金
Large Goat Milk FR.png
Gold Quality Icon.png
517金
Large Goat Milk FR.png
Iridium Quality Icon.png
690金
{{Qualityprice|Juice|260}}
(The base sell price of 红叶卷心菜 is 260,
and the base sell price of 红叶卷心菜 果汁 is 585)
data-sort-value="585"
Juice.png
585金
{{Qualityprice|Wine|750|pm=1.4}}
(The base sell price of 杨桃 is 750,
and the Artisan base sell price of 杨桃 果酒 is 3,150)
data-sort-value="3150"
Wine.png
3,150金
Wine.png
Silver Quality Icon.png
3,936金
Wine.png
Gold Quality Icon.png
4,725金
Wine.png
Iridium Quality Icon.png
6,300金
{{Qualityprice|Honey|30}}
(The base sell price of a 郁金香 is 30,
and the base sell price of 郁金香 蜂蜜 is 160)
data-sort-value="160"
Honey.png
160金