Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(Add defaultprimarycolor, defaultsecondarycolor for Face Paint)
(Add "No Tags" category and hide Tags row if tags=none - found at least one item (Green Light Terrazzo Flooring) with no tags assigned)
Line 70: Line 70:
   {{!}} id="infobox-label" {{!}} Size:
   {{!}} id="infobox-label" {{!}} Size:
   {{!}} style="letter-spacing: 5px; font-weight: bold;" {{!}} {{{size|}}}
   {{!}} style="letter-spacing: 5px; font-weight: bold;" {{!}} {{{size|}}}
}}{{#if:{{{tags|}}}|<nowiki/>
}}{{#if:{{{tags|}}}|{{#ifeq: {{{tags|}}}|none|[[Category:No Tags|No Tags]]|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag||@@@@|{{tag|@@@@}}}}
   {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag||@@@@|{{tag|@@@@}}}}
}}{{#if:{{{crop|}}}|<nowiki/>
}}}}{{#if:{{{crop|}}}|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Grows into:
   {{!}} id="infobox-label" {{!}} Grows into:

Revision as of 16:28, 2 February 2023

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