Template:Infobox crop/Draft: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <default>{{PAGENAME}}.png</default> <caption source="description" /> </image> <group> <header>Information</header> <data source="type"> <label>Type</label> <format><!-- -->{{#switch:{{{type}}}<!-- -->|Vegetable|Fruit|Flower|Herb|Grain|Resource = [[{{{type}}}]]<!-- -->|#default = {{{type}}}<!-...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
   <image source="image">
   <image source="image">
     <default>{{PAGENAME}}.png</default>
     <default>{{PAGENAME}}.png</default>
    <caption source="description" />
   </image>
   </image>
  <group>
<header>Description</header>
<data source="description" />
  </group>
   <group>
   <group>
     <header>Information</header>
     <header>Information</header>
Line 17: Line 20:
         -->}}
         -->}}
       </format>
       </format>
    </data>
    <data source="item_group">
    <label>Item group</label>
    <format>{{{item_group|}}}</format>
     </data>
     </data>
     <data source="season">
     <data source="season">
Line 29: Line 36:
     <data source="seed">
     <data source="seed">
       <label>Seed</label>
       <label>Seed</label>
       <format>{{i|{{{seed|}}}|{{#if:{{{seed_price|}}}|{{{seed_price|}}} {{g}}}}}}</format>
       <format>{{icon|{{{seed|}}}|size=20|note={{#if:{{{seed_price|}}}|{{g|{{{seed_price|}}}}}}}}}</format>
     </data>
     </data>
     <data source="growth">
     <data source="growth">
Line 43: Line 50:
     </data>
     </data>
     <data source="wild_seed">
     <data source="wild_seed">
       <label>[[Wild seed]]</label>
       <label>[[Wild seeds]]</label>
    </data>
    <data>
      <label>Max harvest</label>
      <default>{{#vardefine:max_harvest|{{#if:{{{regrowth|}}}|{{#expr: floor{{#expr:(27*({{#count:{{{season|}}}|;}}+1))-{{{growth|}}}}}/{{{regrowth|}}}+1}}|1}}}}{{#var:max_harvest}}</default>
    </data>
    <data>
      <label>Profit per day</label>
      <default>{{#if:{{{regrowth|}}}<!--
      -->|{{#expr:({{{sell|}}}*{{#var:max_harvest|}}-{{{seed_price|}}})/{{#expr:27*{{#count:{{{season|}}}|;}}+27}} round 2}}<!--
      -->|{{#expr:({{{sell|}}}-{{{seed_price|}}})/{{{growth|}}} round 2}}<!--
      -->}}</default>
     </data>
     </data>
     <data source="rank">
     <data source="rank">
Line 90: Line 86:
     <data source="health">
     <data source="health">
       <label>Base</label>
       <label>Base</label>
       <format>{{icon|health|12|}} {{{health}}}<br />{{icon|energy|12|}} {{{energy}}}</format>
       <format>{{Health|{{{health}}}}}{{Energy|{{{energy}}}}}</format>
     </data>
     </data>
     <data source="health_bronze">
     <data source="health_bronze">
Line 100: Line 96:
       -->}}
       -->}}
       </default>
       </default>
       <format>{{icon|health|12|}}{{{health_bronze}}}<br />{{icon|energy|12|}}{{{energy_bronze}}}</format>
       <format>{{Health|{{{health_bronze}}}}}{{Energy|{{{energy_bronze}}}}}</format>
     </data>
     </data>
     <data source="health_silver">
     <data source="health_silver">
Line 110: Line 106:
       -->}}
       -->}}
       </default>
       </default>
       <format>{{icon|health|12|}}{{{health_silver}}}<br />{{icon|energy|12|}}{{{energy_silver}}}</format>
       <format>{{Health|{{{health_silver}}}}}{{Energy|{{{energy_silver}}}}}</format>
     </data>
     </data>
     <data source="health_gold">
     <data source="health_gold">
Line 120: Line 116:
       -->}}
       -->}}
       </default>
       </default>
       <format>{{icon|health|12|}}{{{health_gold}}}<br />{{icon|energy|12|}}{{{energy_gold}}}</format>
       <format>{{Health|{{{health_gold}}}}}{{Energy|{{{energy_gold}}}}}</format>
     </data>
     </data>
     <data source="health_osmium">
     <data source="health_osmium">
Line 130: Line 126:
       -->}}
       -->}}
       </default>
       </default>
       <format>{{icon|health|12|}}{{{health_osmium}}}<br />{{icon|energy|12|}}{{{energy_osmium}}}</format>
       <format>{{Health|{{{health_osmium}}}}}{{Energy|{{{energy_osmium}}}}}</format>
     </data>
     </data>
   </group>
   </group>
</infobox>
</infobox>
{{Namespace|main=<!--
{{Namespace|main=<!--
-->{{#ifeq:{{NAMESPACE}}||{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}|noreplace}}}}<!--
-->[[Category:Crops]]<!--
-->[[Category:Crops]]<!--
   Type
   Type
Line 146: Line 143:
     -->|[[Category:Any season crops]]<!--
     -->|[[Category:Any season crops]]<!--
     -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
     -->|{{Array|{{{season}}}|;|[[Category:{item} crops]]}}<!--
-->}}<!--
  Seed type
-->{{#if:{{{seed|}}}|<!--
    -->{{If match|{{{seed|}}}<!--
        -->|seedlings?$<!--
        -->|saplings?$<!--
        -->|seeds?$<!--
        -->|true1=[[Category:Seedling crops]]<!--
        -->|true2=[[Category:Sapling crops]]<!--
        -->|true3=[[Category:Seed crops]]<!--
    -->}}<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!--
Line 151: Line 159:
-->{{#if:{{{year|}}}|[[Category:Year {{{year}}}]]}}<!--
-->{{#if:{{{year|}}}|[[Category:Year {{{year}}}]]}}<!--
-->{{#if:{{{giant_crop|}}}|[[Category:Giant crops]]}}<!--
-->{{#if:{{{giant_crop|}}}|[[Category:Giant crops]]}}<!--
-->{{#if:{{{wild_seed|}}}|[[Category:Crops from wild seeds]]}}
-->{{#if:{{{wild_seed|}}}|[[Category:Crops from wild seeds]]}}<!--
}}</includeonly><noinclude>
-->{{#if:{{{health|}}}|[[Category:Consumables]][[Category:Edible ingredients]]}}
{{Documentation}}[[Category:Infobox templates|crop]]
}}</includeonly><noinclude>{{Documentation|content=
{{Infobox crop/Draft
{{Infobox crop/Draft
|seed_price = 25
|image      = Carrot.png
|growth = 9
|type        = Vegetable
|regrowth = 3
|seed        = Carrot seeds
|sell = 34
|seed_price = 35
|health = 45
|rank        = F
|energy = 40
|growth     = 7
|season = Spring
|sell        = 78
}}</noinclude>
|description = A brightly colored root vegetable. Very crunchy when raw.
|season      = Spring
|health     = 31
|energy     = 33
}}
}}</noinclude>

Latest revision as of 09:09, 16 January 2024

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