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

模板:Infobox seed/doc:修订间差异

来自星露谷物语扩展百科
删除的内容 添加的内容
SummerFleur留言 | 贡献
SummerFleur留言 | 贡献
无编辑摘要
 
(未显示2个用户的5个中间版本)
第1行: 第1行:
{{documentation header}}
{{Documentation header}}
{{Infobox/doc|head|各种种子}}
== 简介 ==
此模板(<code><nowiki>{{Infobox seed}}</nowiki></code>)是用于展示游戏中水果类物品的信息框,其基本用法为:

<pre>
<pre>
{{Infobox seed
{{Infobox seed
|name = 杨桃种子 <!--中文名称-->
|name = 中文名称
|eng = Starfruit Seeds <!--英文名称-->
|eng = 英文名称
|crop = {{Name|Starfruit}} <!--生长出的作物-->
|crop = 生长出的作物
|growth = 13 天 <!--生长时间-->
|growth = 生长时间
|season = {{Season|Summer}} <!--生长季节-->
|season = 生长季节
|xp = {{Xp|43|farm}} <!--收获获得的经验值-->
|xp = 收获获得的经验值
|sellprice = 200 <!--基础售价-->
|sellprice = 基础售价
|gPrice = <!--皮埃尔杂货店的出售价格-->
|gPrice = 皮埃尔杂货店的出售价格
|jPrice = <!--Joja 超市的出售价格-->
|jPrice = Joja 超市的出售价格
|oPrice = {{Price|400}} <!--绿洲商店的出售价格-->
|oPrice = 绿洲商店的出售价格
|tPrice = {{tprice|200}} <!--猪车的出售价格-->
|tPrice = 猪车的出售价格
|iPrice = <!--姜岛商店的出售价格-->
|iPrice = 姜岛商店的出售价格
|nmday = <!--夜市魔法商船的出售日期-->
|nmday = 夜市魔法商船的出售日期
|raccoon = <!--浣熊商店的出售价格-->
|raccoon = 浣熊商店的出售价格
|otherprice = <!--其他地方的出售价格-->
|otherprice = 其他地方的出售价格
|artisan = <!--是否可制成工匠物品,仅适用于向日葵种子和咖啡豆-->
|artisan = 是否可制成工匠物品,仅适用于向日葵种子和咖啡豆
|source = <!--其他来源,一般是打造-->
|source = 其他来源,一般是打造
|recipe = <!--配方来源-->
|recipe = 配方来源
|ingredients = <!--制作原料-->
|ingredients = 制作原料
|produces = <!--每次打造获得的数量,若只获得 1 个则留空-->
|produces = 每次打造获得的数量,若只获得 1 个则留空
|displayname = <!--不会被本模板引用,但是被其它模板使用,详见下文介绍-->
|displayname = 不会被本模板引用,但是被其它模板使用,详见下文介绍
}}
}}
</pre>
</pre>


==displayname 参数的使用==
==示例==
目前 displayname 仅在模板 {{tl|CraftRow}} 中使用,代替中文名称显示,以确保其与游戏内打造配方名称一致。
===商店购买的种子===
{{Infobox seed
|name = 甜瓜种子
|eng = Melon Seeds
|crop = {{Name|Melon}}
|growth = 12 天
|season = {{Season|Summer}}
|xp = {{Xp|27|farm}}
|sellprice = 40
|gPrice = {{Price|80}}
|jPrice = {{Price|100}}
|tPrice = {{tprice|40}}
|nmday = 16
}}


此处以夏季种子为例:夏季种子内填写了 <code>displayname = 野生种子(夏季)</code>,效果如下所示:
<pre>
{{Infobox seed
|name = 甜瓜种子
|eng = Melon Seeds
|crop = {{Name|Melon}}
|growth = 12 天
|season = {{Season|Summer}}
|xp = {{Xp|27|farm}}
|sellprice = 40
|gPrice = {{Price|80}}
|jPrice = {{Price|100}}
|tPrice = {{tprice|40}}
|nmday = 16
}}
</pre>


{{模板|示例|<nowiki>
{{clear}}

===打造获得的种子===
{{Infobox seed
|name = 夏季种子
|displayname = 野生种子(夏季)
|eng = Summer Seeds
|crop = <nowiki/>
*{{Name|Spice Berry|class=inline}}&nbsp;{{Name|Grape|class=inline}}
*{{Name|Sweet Pea|class=inline}}
|growth = 7 天
|season = {{Season|Summer}}
|xp = {{Xp|3|采集}}与<br/>{{Xp|2|耕种}}
|sellprice = 55
|tPrice = {{tprice|55}}
|source = [[打造]]
|recipe = {{Skill level|forage|4}}
|ingredients = {{Name|Spice Berry|1}}{{Name|Grape|1}}{{Name|Sweet Pea|1}}
|produces = 10
}}

<pre>
{{Infobox seed
|name = 夏季种子
|displayname = 野生种子(夏季)
|eng = Summer Seeds
|crop = <nowiki/>
*{{Name|Spice Berry|class=inline}}&nbsp;{{Name|Grape|class=inline}}
*{{Name|Sweet Pea|class=inline}}
|growth = 7 天
|season = {{Season|Summer}}
|xp = {{Xp|3|采集}}与<br/>{{Xp|2|耕种}}
|sellprice = 55
|tPrice = {{tprice|55}}
|source = [[打造]]
|recipe = {{Skill level|forage|4}}
|ingredients = {{Name|Spice Berry|1}}{{Name|Grape|1}}{{Name|Sweet Pea|1}}
|produces = 10
}}
</pre>

此处的 displayname 会被模板 {{tl|CraftRow}} 引入,在名称一栏显示该值,效果如下所示:

{{clear}}
{{模板|示例|
<nowiki>
{{Crafts|Header}}
{{Crafts|Header}}
{{:夏季种子|CraftRow}} <!-- 可以看到上面的“名称”一栏中使用了 displayname -->
{{:夏季种子|CraftRow}} <!-- 可以看到上面的“名称”一栏中使用了“野生种子(夏季)”-->
{{Crafts|Footer}}
{{Crafts|Footer}}
</nowiki>
</nowiki>
}}
}}

===咖啡豆===
{{Infobox seed
|name = 咖啡豆
|eng = Coffee Bean
|crop = [[File:Coffee Bean.png|24px|link=]] 咖啡豆
|growth = 10 天
|season = {{Season|Spring}} • {{Season|Summer}}
|xp = {{Xp|4|farm}}
|sellprice = 15
|gPrice =
|jPrice =
|tPrice = <nowiki/>
*{{price|2500}}(25%,秋季和冬季)
*{{tprice|15}}(1.26% 的概率,不限季节)
|artisan = y
|quality = true
}}

<pre>
{{Infobox seed
|name = 咖啡豆
|eng = Coffee Bean
|crop = [[File:Coffee Bean.png|24px|link=]] 咖啡豆
|growth = 10 天
|season = {{Season|Spring}} • {{Season|Summer}}
|xp = {{Xp|4|farm}}
|sellprice = 15
|gPrice =
|jPrice =
|tPrice = <nowiki/>
*{{price|2500}}(25%,秋季和冬季)
*{{tprice|15}}(1.26% 的概率,不限季节)
|artisan = y
|quality = true
}}
</pre>

{{clear}}


==另见==
==另见==
{{Infobox see also}}
{{Infobox see also}}


<includeonly>
<includeonly>[[分类:文档页面]]</includeonly>
<!-- 页面分类 -->
[[分类:文档页面]]
</includeonly>
<noinclude>
</noinclude>

2026年1月28日 (三) 18:01的最新版本

[ 刷新 ]
当前页面是文档页面,会被模板:Infobox seed引入。查看模板:Documentation获取更多信息。

简介

此模板({{Infobox seed}})是用于展示游戏中各种种子的信息框,其基本用法为:

{{Infobox seed
|name           = 中文名称
|eng            = 英文名称
|crop           = 生长出的作物
|growth         = 生长时间
|season         = 生长季节
|xp             = 收获获得的经验值
|sellprice      = 基础售价
|gPrice         = 皮埃尔杂货店的出售价格
|jPrice         = Joja 超市的出售价格
|oPrice         = 绿洲商店的出售价格
|tPrice         = 猪车的出售价格
|iPrice         = 姜岛商店的出售价格
|nmday          = 夜市魔法商船的出售日期
|raccoon        = 浣熊商店的出售价格
|otherprice     = 其他地方的出售价格
|artisan        = 是否可制成工匠物品,仅适用于向日葵种子和咖啡豆
|source         = 其他来源,一般是打造
|recipe         = 配方来源
|ingredients    = 制作原料
|produces       = 每次打造获得的数量,若只获得 1 个则留空
|displayname    = 不会被本模板引用,但是被其它模板使用,详见下文介绍
}}

displayname 参数的使用

目前 displayname 仅在模板 {{CraftRow}} 中使用,代替中文名称显示,以确保其与游戏内打造配方名称一致。

此处以夏季种子为例:夏季种子内填写了 displayname = 野生种子(夏季),效果如下所示:

模板:模板

另见

普通

特殊