「Template:Recipes」修訂間的差異

出自Stardew Valley Wiki
跳至導覽 跳至搜尋
(“名称”和“治疗效果”不换行)
(Replace arrays + add parameter for crafting recipes)
 
(未顯示由 2 位使用者於中間所作的 7 次修訂)
行 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=
 
{{!}}-
 
{{!}}-
行 9: 行 5:
 
|head
 
|head
 
|header=
 
|header=
{{{!}} class="wikitable sortable" id="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=! 售价
+
}}</onlyinclude><noinclude>{{Englishdoc}}</noinclude>
   |#default=!{{ucfirst:@@@@}}
 
  }}
 
}}
 
}}</onlyinclude><noinclude>{{englishdoc}}</noinclude>
 

於 2023年9月17日 (日) 17:30 的最新修訂

有關此模板的詳細信息,請參閱英語語言文檔頁

用法

可以通過在相關頁面上輸入以下內容來使用此模板。

{{Recipes}}

結果是...