Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(Show color row only if landscapingtype is defined)
(Color can now be added to other items info boxes - will only show in info box as row for landscaping items, but will still add categories to bottom of page)
Line 165: Line 165:
           |#default={{{ingtype|}}}}}</span>
           |#default={{{ingtype|}}}}}</span>
}}
}}
{{#if: {{{landscapingtype|}}} |
{{#if: {{{color|}}} |
   {{#if: {{{color|}}} | <nowiki/>
  {{#arraydefine:a-color| {{{color|}}} }}
   {{#if: {{{landscapingtype|}}} | <nowiki/>
     {{!}}-
     {{!}}-
     {{!}} id="infobox-label" {{!}} Color:
     {{!}} id="infobox-label" {{!}} Color:
     {{!}} {{#arraydefine:a-color| {{{color|}}} }}{{#arrayprint:a-color|,&nbsp;|@@@@| {{color|@@@@}}}}
     {{!}} {{#arrayprint:a-color|,&nbsp;|@@@@| {{color|@@@@}}}} |
  {{#arrayprint:a-color|,&nbsp;|@@@@| [[Category:@@@@|@@@@]]}}
   |}}
   |}}
|}}
}}
{{#if:{{{seed|}}}|<nowiki/>
{{#if:{{{seed|}}}|<nowiki/>
   {{!}}-
   {{!}}-

Revision as of 22:20, 18 January 2023

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