Template:Infobox food/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> <default>Consumable</default> </data> <data source="recipe_source"> <label>Recipe source</label> </data> <data source="source"> <label>...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 117: Line 117:
-->[[Category:Food]]<!--
-->[[Category:Food]]<!--
-->{{#if:{{{recipe_source|}}}|[[Category:Food with recipes]]}}<!--
-->{{#if:{{{recipe_source|}}}|[[Category:Food with recipes]]}}<!--
-->{{#ifexpr:{{#len:{{{recipe_source|}}}|NPC}} > 900|[[Category:Gifted recipes]]}}<!--
  Gifted
-->{{#if:{{{recipe_source|}}}|<!--
    -->{{If match|{{{recipe_source|}}}<!--
        -->|NPC<!--
        -->|true=[[Category:Gifted recipes]]<!--
    -->}}<!--
-->}}<!--
-->{{#if:{{{buff|}}}|<!--
-->{{#if:{{{buff|}}}|<!--
     -->{{#switch:{{{buff|}}}<!--
     -->{{#switch:{{{buff|}}}<!--

Latest revision as of 07:53, 30 January 2024

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

Infobox to be used for items.

Syntax

{{Infobox item
|title         = Defaults to pagename.
|image         = Defaults to pagename.png
|type          = Type as it shows in-game, written in singular form. Defaults to Consumable.
|category      = Hidden category that an item may fall under.
|health        = Health value.
|energy        = Stamina value
|recipe_source = Mail, Mastery, etc
|recipe        = NPC or Mastery
|effect_source = Considered a food or drink buff.
|buff          = Attack, Defense, Go fast, Farming, Defense flat, etc.
|debuff        = Slow, Poison, Burn, etc
|effect        = Effect that is neither a buff or debuff.
|sell          = Value if sold through the shipping bin. Automatically calculated until osmium quality.
}}

  • category — Other categories that an item may fall under. Usually used for gifting, offering, or cooking.
  • buff — values are Attack, Defense, Go fast, Mastery names, Defense flat, Stamina, Bug awareness, Debuff immunity.
  • debuff — values are Slow, Poison, and Burn.
  • duration — Automatically added by the template if buff or debuff is entered.
    • dur_bronze, dur_silver, etc. — Duration for each quality may be overriden.
  • recipe_source — Mail, Mastery, etc. Not visible in the infobox. Adds Category:Mail recipes or Category:Mastery recipes

Example

{{Infobox food
|description   = Nutritious and colorful. Yum!
|source        = 
|health        = 150
|energy        = 160
|sell          = 38
|buff          = Gathering
|effect_source = Food
|recipe        = {{NPC|Emily}} (4 hearts)
|recipe_source = Mail
}}