Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(add others)
No edit summary
Line 111: Line 111:
         <format>{{#switch:{{lc:{{{sell|}}}}}
         <format>{{#switch:{{lc:{{{sell|}}}}}
         | 0 = ''Unsellable''
         | 0 = ''Unsellable''
         | #default= {{#if:{{{diff_quality|}}}|{{formatnum:{{{sell|}}}}}|{{g|{{{sell|}}}}}}}
         | #default= {{#if:{{{diff_quality|}}}|{{formatnum:{{{sell|}}}}}|{{c|{{{sell|}}}}}}}
         }}</format>
         }}</format>
       </data>
       </data>

Revision as of 13:32, 28 January 2024

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

Example 1

{{Infobox item
|mastery      = Diving;7
|type         = Animal product
|item_group   = Milk; Eggs
|journal      = Produce
|season       = Winter; Spring
|seed         = Apple sapling
|seed_price   = 20
|growth       = 9
|regrowth     = 3
|giant_crop   = yes
|wild_seed    = yes
|rank         = B
|year         = 2
|building     = Coop;2
|sell         = 100
|health       = 40
|energy       = 20
|effect       = Drunk
|source       = Foraging;Diving;Farming
}}

Example 2

{{Infobox item
|type         = Animal product
|item_group   = Milk; Eggs
|journal      = Produce
|season       = Winter; Spring
|seed         = Apple sapling
|seed_price   = 20
|growth       = 9
|regrowth     = 3
|giant_crop   = yes
|wild_seed    = yes
|rank         = B
|year         = 2
|building     = Coop;2
|sell         = 100
|health       = 40
|energy       = 20
|effect       = Drunk
|diff_quality = 1
}}