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

来自Stardew Valley Wiki
跳到导航 跳到搜索
(Restored the original)
标签撤销
(Replace arrays + add parameter for crafting recipes)
 
第1行: 第1行:
<onlyinclude><!--
+
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
-->{{#arraydefine:values|image,name,description,ingredients,restores,buff,duration,recipe,sellprice|,}}<!--
 
-->{{#arraydefine:valuesToHide|{{{hide|}}}|,}}<!--
 
-->{{#arraydiff:valuesToShow|values|valuesToHide}}
 
{{#switch: {{lc:{{{1}}}}}
 
 
|foot|footer=
 
|foot|footer=
 
{{!}}-
 
{{!}}-
第10行: 第6行:
 
|header=
 
|header=
 
{{{!}} class="wikitable sortable roundedborder"
 
{{{!}} class="wikitable sortable roundedborder"
{{#arrayprint:valuesToShow|!|@@@@|
+
{{!}}-
  {{#switch:@@@@
+
!class="unsortable"{{!}}图片
   |image=!class="unsortable"{{!}}图片
+
!class="no-wrap"{{!}}名称<!--
   |name=!class="no-wrap"{{!}}名称
+
-->{{#if:{{#pos:{{{hide|}}}|description}}||!!描述}}<!--
   |description=!描述
+
-->{{#if:{{#pos:{{{hide|}}}|ingredients}}||!!所需原料}}<!--
   |ingredients=!所需原料
+
-->{{#if:{{#pos:{{{hide|}}}|restores}}||!!class="no-wrap"{{!}}能量 / 生命值}}<!--
   |restores=!class="no-wrap"{{!}}能量 / 生命值
+
-->{{#if:{{#pos:{{{hide|}}}|buff}}||!!增益效果}}<!--
   |buff=!增益效果
+
-->{{#if:{{#pos:{{{hide|}}}|duration}}||!!增益时长}}<!--
   |duration=!增益时长
+
-->{{#if:{{#pos:{{{hide|}}}|recipe}}||!!{{#ifeq:{{{crafting|}}}|true|配方来源| 食谱来源}}}}<!--
   |recipe=!食谱来源
+
-->{{#if:{{#pos:{{{hide|}}}|sellprice}}||!!售出价格}}
   |sellprice=! 售出价格
 
   |#default=!{{ucfirst:@@@@}}
 
  }}
 
}}
 
 
}}</onlyinclude><noinclude>{{Englishdoc}}</noinclude>
 
}}</onlyinclude><noinclude>{{Englishdoc}}</noinclude>

2023年9月17日 (日) 17:30的最新版本

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

用法

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

{{Recipes}}

结果是...