Jump to content

Template:Dish Infobox: Difference between revisions

From The Petit Planet Wiki
mNo edit summary
Add ingredient, exp, and Level Unlock, remove selling price cause there's no fixed price + moving effect above description
Line 12: Line 12:
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,,|template=1}}}}
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,,|template=1}}}}
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,,|template=1}}}}
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,,|template=1}}}}
|sections = Information,, Description,, Effect,, How to Obtain
|sections = Information,, Effect,, Description,, Ingredients,, How to Obtain


|Information_collapsible = Yes
|Information_collapsible = Yes
|Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Collection Score,, Favorite,, Strength,,  Selling Price
|Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Unlocked At, EXP, Collection Score,, Favorite,, Strength
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
Line 22: Line 22:
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
|Kitchenware = {{#if:{{{kitchenware|}}}|{{Item|{{{kitchenware}}}}}|}}
|Kitchenware = {{#if:{{{kitchenware|}}}|{{Item|{{{kitchenware}}}}}|}}
|Unlocked At = {{#if:{{{unlock|}}}|Cooking Lv. {{{unlock}}}}}
|EXP = {{#if:{{{exp1|}}}|{{List|{{{exp1}}} (First Time);{{{exp2|}}}}}}}
|Collection Score = {{#switch:{{{quality|}}}
|Collection Score = {{#switch:{{{quality|}}}
   |Common    = +5
   |Common    = +5
Line 30: Line 32:
|Favorite = {{#if:{{{favorite|}}}|{{Item|{{{favorite}}}}}|}}
|Favorite = {{#if:{{{favorite|}}}|{{Item|{{{favorite}}}}}|}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
|Description_collapsible = Yes
|Description = DescriptionText
|DescriptionText_wide = Yes
|DescriptionText = {{{description|}}}


|Effect_collapsible = Yes
|Effect_collapsible = Yes
Line 43: Line 39:
|EffectText_wide = Yes
|EffectText_wide = Yes
|EffectText = {{#if:{{{effect|}}}|'''{{{effect|}}}'''<br>{{Dish Effect|{{{effect|}}}}}}}
|EffectText = {{#if:{{{effect|}}}|'''{{{effect|}}}'''<br>{{Dish Effect|{{{effect|}}}}}}}
|Description_collapsible = Yes
|Description = DescriptionText
|DescriptionText_wide = Yes
|DescriptionText = {{{description|}}}
|Ingredients_collapsible = Yes
|Ingredients_collapsed = Yes
|Ingredients = IngredientsText
|IngredientsText_wide = Yes
|IngredientsText = {{#if:{{#explode:{{{ingredient}}}|;|1}}|{{List|[[Contains {{{ingredient}}}}}]]|[[Contains {{{ingredient|}}}]]}}


|How to Obtain_collapsible = Yes
|How to Obtain_collapsible = Yes
Line 80: Line 87:
-->{{#if:{{{strength|}}}|[[Category:{{{strength}}} Strength Dishes]]}}<!--
-->{{#if:{{{strength|}}}|[[Category:{{{strength}}} Strength Dishes]]}}<!--
-->{{#if:{{{effect|}}}|[[Category:{{{effect}}} Dishes]]}}<!--
-->{{#if:{{{effect|}}}|[[Category:{{{effect}}} Dishes]]}}<!--
-->{{#if:{{{ingredient|}}}|{{Array|{{{ingredient}}}|;|[[Category:Dishes That Contain {item}]]}}}}<!--
   Quality
   Quality
-->{{#switch:{{{quality}}}|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}

Revision as of 14:39, 9 October 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Syntax

{{Dish Infobox
|name        = 
|number      = 
|image       = 
|quality     = 
|category    = 
|type        = 
|cuisine     = 
|kitchenware = 
|strength    = 
|effect      = 
|description = 
|source      = 
|recipe      = 
}}

Examples

{{#invoke:Infobox|main |kind = Dish |sep = ,, |class = quality-rare |title = 047Bamboo Apple Slushie |subtitle = |image = |images = |tabs = |sections = Information,, Effect,, Description,, Ingredients,, How to Obtain

|Information_collapsible = Yes |Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Unlocked At, EXP, Collection Score,, Favorite,, Strength |Quality = Rare |Category = Secret Dishes |Type = Dessert |Type_label = Type |Cuisine = Hexian Cuisine Hexian Cuisine |Kitchenware = Cooking Pot Cooking Pot |Unlocked At = |EXP = |Collection Score = +20 |Favorite = |Strength = +60

|Effect_collapsible = Yes |Effect_columns = 1 |Effect = EffectText |EffectText_nolabel = Yes |EffectText_wide = Yes |EffectText = Mighty Strike I
Gain increased Strength after eating. A single strike while chopping wood or mining makes the current tree or ore deposit drop all available resources at once.
Effective for 6 uses.

|Description_collapsible = Yes |Description = DescriptionText |DescriptionText_wide = Yes |DescriptionText = Yunguo has eighty-one favorite ways of enjoying an apple, and this is only one of them!

|Ingredients_collapsible = Yes |Ingredients_collapsed = Yes |Ingredients = IngredientsText |IngredientsText_wide = Yes |IngredientsText =

  • [[Contains Rice
  • Meat}}]]{{Dish Infobox
    |name        = Bamboo Apple Slushie
    |number      = 047
    |image       = Bamboo Apple Slushie Icon.png
    |quality     = Rare
    |category    = Secret Dishes
    |type        = Dessert
    |cuisine     = Hexian
    |kitchenware = Cooking Pot
    |strength    = 60
    |effect      = Mighty Strike I
    |description = Yunguo has eighty-one favorite ways of enjoying an apple, and this is only one of them!
    |source      = 
    |recipe      = [[Yunguo]]
    |ingredient  = Rice;Meat
    }}

Template Data

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified