Jump to content

Template:Dish Infobox: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly>{{#invoke:Infobox|main
|kind = Dish
|kind = Dish
|sep = ,
|sep = ,,
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
|title = <!--
|title = <!--
-->{{{title|<!--
-->{{{title|<!--
-->{{#if:{{{number|}}}|<!--
  -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  --><span class="archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"><!--
  --><span class="infobox-name">{{{name|{{PAGENAME}}}}}</span><!--
    -->{{{number}}}<!--
  --></span><!--
-->}}<!--
-->{{{name|{{PAGENAME}}}}}<!--
-->}}}
-->}}}
|subtitle = {{{subtitle|}}}
|subtitle = {{{subtitle|}}}
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
|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, How to Obtain
|sections = Information,, Effect,, How to Obtain


|Information_collapsible = Yes
|Information_collapsible = Yes
|Information = Quality, Category, Type, Kitchenware, Strength, Favorite <!--Folio Score,--> Selling Price
|Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Cooking Lv.,, EXP Gain,, Collection Score,, Ingredients
|Quality = <!--
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
-->{{#if:{{{quality|}}}|<!--
  --><span class="quality-label quality-{{lc:{{{quality}}}}}"><!--
    -->{{{quality}}}<!--
  --></span><!--
-->}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|<ul><li>{item}</li></ul><!---->}}}}
|Type = {{#if:{{#explode:{{{type}}}|;|1}}|{{List|{{{type}}}}}|{{{type|}}}}}
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
|Kitchenware = {{#if:{{{kitchenware|}}}|{{Item|{{{kitchenware}}}}}|}}
|Kitchenware = {{#if:{{{kitchenware|}}}|{{Item|{{{kitchenware}}}}}|}}
|Strength = +{{{strength}}}
|Cooking Lv. = {{#if:{{{cooklv|}}}|{{{cooklv}}}}}
|Favorite = {{#if:{{{favourite|}}}|{{Item|{{{favorite}}}}}|}}
|EXP Gain = {{#if:{{{exp1|}}}|{{{exp1}}} (First Time)<br>{{{exp2|}}} (Subsequent Times)}}
<!-- Not yet implemented in-game
|Collection Score = {{#if:{{{noscore|}}}||{{#switch:{{{quality|}}}
|Folio Score = {{#switch:{{{quality|}}}
   |Common     = +5
   |Gray     = +5
   |Uncommon  = +{{{score|10}}}
   |Green    = +10
   |Rare      = +{{{score|20}}}
   |Purple  = +{{{score|20}}}
   |Stellar    = +30
   |Gold    = +20
   |#default =}}}}
   |#default =}}
|Ingredients = {{#if:{{{ingredient|}}}|{{#if:{{#explode:{{{ingredient}}}|;|1}}|{{Array|{{{ingredient}}}|;|* [[Contains {item}]]{newline} }}|[[Contains {{{ingredient|}}}]]}}}}
  -->
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}


|Description_collapsible = Yes
|Effect_collapsible = Yes
|Description = DescriptionText
|Effect = Strength,, EffectText
|DescriptionText_wide = Yes
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|DescriptionText = {{{description|}}}
|EffectText_nolabel = Yes
|EffectText_wide = Yes
|EffectText = {{#if:{{{effect|}}}|<center>'''{{{effect|}}}'''<br>{{Dish Effect|{{{effect|}}}}}</center>}}


|How to Obtain_collapsible = Yes
|How to Obtain_collapsible = Yes
|How to Obtain = Source, Recipe
|How to Obtain = Source,, Recipe
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
|Recipe = {{{recipe|}}}
|Recipe = {{{recipe|}}}
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
-->{{#invoke:Bucket|put|dishes
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, effect, favorite, sell, description, source
|page_id = {{PAGEID}}
|type-delimiter = ;
|source-delimiter = ;
|recipe_source = {{{recipe|}}}
|removed = {{{removed|0}}}
}}<!--
}}<!--


Line 60: Line 64:
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->[[Category:Furniture]]<!--
-->[[Category:Dishes]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Dish by Number|{{{number}}}]]|[[Category:Dish by Number]][[Category:Dish Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Dish by Number|{{{number}}}]]|[[Category:Dish by Number]][[Category:Dish Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Dishes]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{types|}}}|{{Array|{{{types}}}|;|[[Category:{item} Dishes]]}}}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item} Dishes]]}}}}<!--
-->{{#if:{{{cuisine|}}}|[[Category:{{{cuisine}}} Cuisine Dishes]]}}<!--
-->{{#if:{{{kitchenware|}}}|[[Category:{{{kitchenware}}} Dishes]]}}<!--
-->{{#if:{{{kitchenware|}}}|[[Category:{{{kitchenware}}} Dishes]]}}<!--
-->{{#if:{{{cooklv|}}}|[[Category:Cooking Lv. {{{cooklv}}} Dishes]]}}<!--
-->{{#if:{{{strength|}}}|[[Category:{{{strength}}} Strength Dishes]]}}<!--
-->{{#if:{{{strength|}}}|[[Category:{{{strength}}} Strength Dishes]]}}<!--
-->{{#if:{{{effect|}}}|[[Category:{{{effect}}} Dishes]]}}<!--
-->{{#if:{{{ingredient|}}}|{{Array|{{{ingredient}}}|;|[[Category:Dishes That Contain {item}]]}}}}<!--
   Quality
   Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Dish by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Dish by Quality|{{#switch:{{{quality|}}}
   |Gray    = 0
   |Common  = 0
   |Green    = 1
   |Uncommon = 1
   |Purple  = 2
   |Rare    = 2
   |Gold    = 3
   |Stellar  = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Latest revision as of 16:17, 19 October 2026

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

Syntax

[edit source]

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

Examples

[edit source]
047Bamboo Apple Slushie
Quality
Rare
Category
Type
Dessert
Kitchenware
Collection Score
+20
Effect
Strength
+60
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.
How to Obtain
Recipe
Yunguo has eighty-one favorite ways of enjoying an apple, and this is only one of them!
{{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

[edit source]

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified