Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(renamed colorArray to a-color and arrayItem to @@@@ after realizing conventions used earlier in document -- no functional changes)
(Show color row only if landscapingtype is defined)
Line 164: Line 164:
           |Fish=[[File:Fish.png|22px|links=:Category:Fish]] [[:Category:Fish|Fish]][[Category:Fish]]
           |Fish=[[File:Fish.png|22px|links=:Category:Fish]] [[:Category:Fish|Fish]][[Category:Fish]]
           |#default={{{ingtype|}}}}}</span>
           |#default={{{ingtype|}}}}}</span>
}}{{#if:{{{color|}}}|<nowiki/>
}}
  {{!}}-
{{#if: {{{landscapingtype|}}} |
  {{!}} id="infobox-label" {{!}} Color:
  {{#if: {{{color|}}} | <nowiki/>
  {{!}} {{#arraydefine:a-color| {{{color|}}} }}{{#arrayprint:a-color|,&nbsp;|@@@@|{{color|@@@@}}}}
    {{!}}-
}}{{#if:{{{seed|}}}|<nowiki/>
    {{!}} id="infobox-label" {{!}} Color:
    {{!}} {{#arraydefine:a-color| {{{color|}}} }}{{#arrayprint:a-color|,&nbsp;|@@@@| {{color|@@@@}}}}
  |}}
|}}
{{#if:{{{seed|}}}|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Seed:
   {{!}} id="infobox-label" {{!}} Seed:

Revision as of 22:06, 18 January 2023

Infobox
[[File:{{{image}}}|center]]
Information