Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
mNo edit summary
(put back seeds)
Line 187: Line 187:
         -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
         -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
       -->}}}}<!--
       -->}}}}<!--
      <!--commenting off this section to check whether there's impact on seeds having their own page
  -->|Seed|Seedling=<!-- seeds
  |Seed|Seedling=<!-- seeds
       -->{{#ifeq:{{{type}}}|Seed|[[Category:Seeds]]|[[Category:Seedlings]]}}<!--
       {{#ifeq:{{{type}}}|Seed|[[Category:Seeds]]|[[Category:Seedlings]]}}<!--
       -->{{#if:{{{season|}}}|{{#ifeq:{{{season|}}}|Any<!--
       {{#if:{{{season|}}}|{{#ifeq:{{{season|}}}|Any<!--
        -->|[[Category:Any season {{lc:{{{type}}}s}}]]<!--
      |[[Category:Any season {{lc:{{{type}}}s}}]]<!--
        -->|{{Array|{{{season}}}|;|[[Category:{item} {{lc:{{{type}}}s}}]]}}<!--
      |{{Array|{{{season}}}|;|[[Category:{item} {{lc:{{{type}}}s}}]]}}<!--
       -->}}}}<!--
       }}}}<!--
   -->|Cooked dish<!-- food
   -->|Cooked dish<!-- food
       -->= [[Category:{{{type}}}es]]<!--
       -->= [[Category:{{{type}}}es]]<!--
Line 218: Line 217:
   -->|Decor<!-- farm decor
   -->|Decor<!-- farm decor
       -->= [[Category:{{{type}}}]]<!--
       -->= [[Category:{{{type}}}]]<!--
-->}}<!--
  Seed type
-->{{#if:{{{seed|}}}|<!--
    -->{{If match|{{{seed|}}}<!--
        -->|seedlings?$<!--
        -->|saplings?$<!--
        -->|seeds?$<!--
        -->|true1=[[Category:Seedling crops]]<!--
        -->|true2=[[Category:Sapling crops]]<!--
        -->|true3=[[Category:Seed crops]]<!--
    -->}}<!--
-->}}<!--
-->}}<!--
   Categories<!--
   Categories<!--

Revision as of 16:58, 16 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
}}