Template:Infobox food: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) (Copied from Coral Island Fandom Wiki) |
Salty Nori (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
<default>[[Consumable]]</default> | <default>[[Consumable]]</default> | ||
</data> | </data> | ||
<data source=" | <data source="recipe"> | ||
<label>Recipe | <label>Recipe from</label> | ||
</data> | </data> | ||
<data source="source"> | <data source="source"> | ||
Line 55: | Line 55: | ||
<data source="effect_source"> | <data source="effect_source"> | ||
<label>Effect source</label> | <label>Effect source</label> | ||
</data> | </data> | ||
</group> | </group> | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
Line 70: | Line 63: | ||
<default>{{#if:{{{buff|}}}|2h}}{{#if:{{{debuff|}}}|2h}}</default> | <default>{{#if:{{{buff|}}}|2h}}{{#if:{{{debuff|}}}|2h}}</default> | ||
</data> | </data> | ||
<data source=" | <data source="dur_bronze"> | ||
<label>{{q|1}}</label> | <label>{{q|1}}</label> | ||
<default>{{#if:{{{buff|}}}|2h 18m}}{{#if:{{{debuff|}}}|2h 18m}}</default> | <default>{{#if:{{{buff|}}}|2h 18m}}{{#if:{{{debuff|}}}|2h 18m}}</default> | ||
</data> | </data> | ||
<data source=" | <data source="dur_silver"> | ||
<label>{{q|2}}</label> | <label>{{q|2}}</label> | ||
<default>{{#if:{{{buff|}}}|3h 36m}}{{#if:{{{debuff|}}}|3h 36m}}</default> | <default>{{#if:{{{buff|}}}|3h 36m}}{{#if:{{{debuff|}}}|3h 36m}}</default> | ||
</data> | </data> | ||
<data source=" | <data source="dur_gold"> | ||
<label>{{q|3}}</label> | <label>{{q|3}}</label> | ||
<default>{{#if:{{{buff|}}}|3h}}{{#if:{{{debuff|}}}|3h}}</default> | <default>{{#if:{{{buff|}}}|3h}}{{#if:{{{debuff|}}}|3h}}</default> | ||
</data> | </data> | ||
<data source=" | <data source="dur_osmium"> | ||
<label>{{q|4}}</label> | <label>{{q|4}}</label> | ||
<default>{{#if:{{{buff|}}}|4h}}{{#if:{{{debuff|}}}|4h}}</default> | <default>{{#if:{{{buff|}}}|4h}}{{#if:{{{debuff|}}}|4h}}</default> | ||
Line 117: | Line 110: | ||
-->[[Category:Consumables]]<!-- | -->[[Category:Consumables]]<!-- | ||
-->[[Category:Food]]<!-- | -->[[Category:Food]]<!-- | ||
-->{{#if:{{{ | -->{{#if:{{{recipe|}}}|[[Category:Food with recipes]]}}<!-- | ||
-->{{#if:{{{recipe_source|}}}|[[Category:{{{recipe_source}}} recipes]]}}<!-- | |||
-->{{#if:{{{buff|}}}|<!-- | -->{{#if:{{{buff|}}}|<!-- | ||
-->{{#switch:{{{buff|}}}<!-- | -->{{#switch:{{{buff|}}}<!-- |
Latest revision as of 09:01, 30 January 2024
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Sandbox | Usage |
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 }}