Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
(remove sell prices with group)
Line 157: Line 157:
       </data>
       </data>
     </group>
     </group>
    <group layout="horizontal">
      <header>Sell prices with {{Skill|{{{income|}}}}}</header>
      <data source="income">
        <label>Base</label>
        <format><!--
        -->{{#if:{{{diff_quality|}}}|{{Sell prices|D|{{{sell|}}}|type={{{income|}}}}}|{{g|{{Sell prices|D|{{{sell|}}}|type={{{income|}}}}}}}}}<!--
        --></format>
      </data>
      <data source="bronze">
        <label>{{q|1}}</label>
        <default>{{#if:{{{diff_quality|}}}|{{Sell prices|B|{{{sell|}}}|type={{{income|}}}}}}}</default>
      </data>
      <data source="silver">
        <label>{{q|2}}</label>
        <default>{{#if:{{{diff_quality|}}}|{{Sell prices|S|{{{sell|}}}|type={{{income|}}}}}}}</default>
      </data>
      <data source="gold">
        <label>{{q|3}}</label>
        <default>{{#if:{{{diff_quality|}}}|{{Sell prices|G|{{{sell|}}}|type={{{income|}}}}}}}</default>
      </data>
      <data source="osmium">
        <label>{{q|4}}</label>
        <default>{{#if:{{{diff_quality|}}}|{{Sell prices|O|{{{sell|}}}|type={{{income|}}}}}}}</default>
      </data>
    </group>   
     <group layout="horizontal">
     <group layout="horizontal">
       <header>Restores</header>
       <header>Restores</header>

Revision as of 13:15, 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/Draft
|mastery      = Diving;7
|type         = Animal product
|category     = 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/Draft
|type         = Animal product
|category     = 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
}}