Template:Infobox item/Draft: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Undo
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 257: Line 257:
-->}}<!--
-->}}<!--
   Animal products
   Animal products
-->{{#if:{{#explode:{{{produced_by|}}}|;|0}}}}|<!--
-->{{#if:{{{produced_by|}}}|<!--
   -->{{#switch:{{#explode:{{{produced_by|}}}|;|0}}}}<!--
   -->{{#switch:{{{produced_by}}}<!--
       -->|Chicken|Duck|Peafowl|Quail = [[Category:{{{produced_by}}} products]][[Category:Coop products]]<!--
       -->|Chicken|Duck|Peafowl|Quail = [[Category:{{{produced_by}}} products]][[Category:Coop products]]<!--
       -->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{produced_by}}} products]][[Category:Barn products]]<!--
       -->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{produced_by}}} products]][[Category:Barn products]]<!--
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}]]}}}}<!--
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!--
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!--
Line 330: Line 330:
|energy      = 25
|energy      = 25
}}
}}
{{clr}}
 
==Example 4==
==Example 4==
{{Infobox item/Draft
{{Infobox item/Draft
|description    = Red and gooey.
|description    = Red and gooey.
|type          = Artisan product
|type          = Artisan product
|produced_by    = Mason jar
|source        = Mason jar
|item_group    = Jam
|item_group    = Jam


Line 358: Line 358:
|energy_gold    = 80
|energy_gold    = 80
|energy_osmium  = 105
|energy_osmium  = 105
}}
{{clr}}
==Example 5==
{{Infobox item/Draft
|description    = A golden egg. It's shiny.
|produced_by    = Chicken;winner
|diff_quality  = 1
|sell          = 150
|health        = 28
|energy        = 50
|item_group    = Eggs
}}
}}
}}</noinclude>
}}</noinclude>

Revision as of 03:53, 10 February 2024

225Asian Bookshelves.png
This is the template draft page for Template:Infobox item (diff).
Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Example 1

Example 2

Example 3


Example 4