Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 99: Line 99:
       <data source="enchanting">
       <data source="enchanting">
         <label>[[Enchanting]] value</label>
         <label>[[Enchanting]] value</label>
      </data>
      <data source="animal">
        <label>Animal</label>
        <format>{{Icon|{{{animal|}}}}}</format>
       </data>
       </data>
       <data source="source">
       <data source="source">
Line 207: Line 211:
         -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
         -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
       -->}}}}<!--
       -->}}}}<!--
   -->|Cooked dish<!-- food
   -->|Cooked dish=<!-- food
       -->= [[Category:{{{type}}}es]]<!--
       --> [[Category:{{{type}}}es]]<!--
  -->|Scavengeable|Mushroom=<!-- foraging
      -->[[Category:Forageables]]<!--
      -->[[Category:{{{type}}}s]]<!--
      -->{{#if:{{{season|}}}|{{#ifeq:{{{season|}}}|Any<!--
        -->|[[Category:Any season scavengeables}}]]<!--
        -->|{{Array|{{{season}}}|;|[[Category:{item} scavengeables]]}}<!--
      -->}}}}<!--
   -->|Bomb|Decoy<!-- combat
   -->|Bomb|Decoy<!-- combat
   -->|Resource equipment|Artisan equipment<!-- crafting
   -->|Resource equipment|Artisan equipment<!-- crafting
   -->|Animal product<!-- ranching
   -->|Animal product<!-- ranching
  -->|Scavengeable|Mushroom<!-- foraging
   -->|Bug<!-- land catcheables
   -->|Bug<!-- land catcheables
   -->|Ocean critter<!-- ocean catcheables
   -->|Ocean critter<!-- ocean catcheables
Line 243: Line 253:
         -->|true3=[[Category:Seed crops]]<!--
         -->|true3=[[Category:Seed crops]]<!--
     -->}}<!--
     -->}}<!--
-->}}<!--
  Animal products
-->{{#if:{{{animal|}}}|<!--
  -->{{#switch:{{{animal}}}<!--
      -->|Chicken|Duck|Peafowl|Quail = [[Category:{{{animal}}} products]][[Category:Coop products]]<!--
      -->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{animal}}} products]][[Category:Barn products]]<!--
  -->}}<!--
-->}}<!--
-->}}<!--
   Categories<!--
   Categories<!--

Revision as of 06:06, 5 February 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
}}