Template:Infobox item: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(simplify source and item category, rename item category to item group)
(remove automation in enchanting, unecessary)
Line 92: Line 92:
       <data source="enchanting">
       <data source="enchanting">
         <label>[[Enchanting]] value</label>
         <label>[[Enchanting]] value</label>
        <default><!--
        -->{{#switch:{{lc:{{{type|}}}}}<!--
        -->| artifact | gem | fossil ={{Enchanting value|{{{category|}}}}}  points<!--
        -->|#default =<!--
        -->}}<!--
    --></default>
       </data>
       </data>
       <data source="source">
       <data source="source">
Line 250: Line 244:
--><noinclude>{{Documentation|content=
--><noinclude>{{Documentation|content=
==Example 1==
==Example 1==
{{T|Infobox item/Draft
{{T|Infobox item
|p1 =mastery      = Diving;7
|p1 =mastery      = Diving;7
|p2 =type        = Animal product
|p2 =type        = Animal product
Line 273: Line 267:
{{clr}}
{{clr}}
==Example 2==
==Example 2==
{{T|Infobox item/Draft
{{T|Infobox item
|p1 =type        = Animal product
|p1 =type        = Animal product
|p2 =category    = Milk; Eggs
|p2 =category    = Milk; Eggs

Revision as of 15:05, 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
|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
|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
}}