Changes

16 bytes removed ,  01:55, 17 September 2023
Replace arrays
Line 1: Line 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=
 
{{!}}-
 
{{!}}-
Line 10: Line 6:  
|header=
 
|header=
 
{{{!}} class="wikitable sortable roundedborder"
 
{{{!}} class="wikitable sortable roundedborder"
{{#arrayprint:valuesToShow|!|@@@@|
+
{{!}}-
  {{#switch:@@@@
+
!class="unsortable"{{!}}Image
    |image=!class="unsortable"{{!}}Image
+
!Name<!--
    |restores=!Energy&nbsp;/ Health
+
-->{{#if:{{#pos:{{{hide|}}}|description}}||!!Description}}<!--
    |buff=!Buff(s)
+
-->{{#if:{{#pos:{{{hide|}}}|ingredients}}||!!Ingredients}}<!--
    |duration=!Buff Duration
+
-->{{#if:{{#pos:{{{hide|}}}|restores}}||!!Energy&nbsp;/ Health}}<!--
    |recipe=!Recipe Source(s)
+
-->{{#if:{{#pos:{{{hide|}}}|buff}}||!!Buff(s)}}<!--
    |sellprice=!Sell Price
+
-->{{#if:{{#pos:{{{hide|}}}|duration}}||!!Buff Duration}}<!--
    |#default=!{{ucfirst:@@@@}}
+
-->{{#if:{{#pos:{{{hide|}}}|recipe}}||!!Recipe Source(s)}}<!--
  }}
+
-->{{#if:{{#pos:{{{hide|}}}|sellprice}}||!!Sell Price}}
}}
   
}}</onlyinclude><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
}}</onlyinclude><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
106,244

edits