Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
m (Undo revision 22136 by Salty Nori (talk))
Line 103: Line 103:
       <data source="produced_by">
       <data source="produced_by">
         <label>Produced by</label>
         <label>Produced by</label>
         <format>{{#if:{{{produced_by|}}}|{{icon|{{#explode:{{{produced_by|}}}|;|0}}}}{{#if:{{#explode:{{{produced_by|}}}|;|1}}|&nbsp;({{#explode:{{{produced_by|}}}|;|1}})}}}}</format>
         <format>{{Icon|{{{produced_by|}}}}}</format>
       </data>
       </data>
       <data source="source">
       <data source="source">
Line 266: Line 266:
   Categories<!--
   Categories<!--
-->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!--
-->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!--
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}]]}}}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!--
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!--

Revision as of 03:54, 10 February 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Example 1

Example 2

Example 3