Jump to content

Template:Dish Infobox: Difference between revisions

From The Petit Planet Wiki
Storing PAGEID in bucket
Changed category to accept semicolon separated list. Storing "recipe" as "recipe_source" for bucket
Line 25: Line 25:
   --></span><!--
   --></span><!--
-->}}
-->}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = <!--
-->{{#if:{{#explode:{{{category}}}|;|1}}<!--
  -->|<ul>{{Array|{{{category}}}|;|<li>²{#ifeq:{item}¦Removed¦[[:Category:{item}|{item}]]¦[[{item}]]}²</li>|template=1}}</ul><!--
  -->|[[{{{category|}}}]]<!--
-->}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|<ul><li>{item}</li></ul><!---->}}}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|<ul><li>{item}</li></ul><!---->}}}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
Line 53: Line 57:


-->{{#invoke:Bucket|put|dishes
-->{{#invoke:Bucket|put|dishes
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, favorite, sell, description, source, recipe
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, favorite, sell, description, source
|page_id = {{PAGEID}}
|page_id = {{PAGEID}}
|category-delimiter = ;
|type-delimiter = ;
|type-delimiter = ;
|source-delimiter = ;
|source-delimiter = ;
|recipe_source = {{{recipe|}}}
}}<!--
}}<!--


Line 72: Line 78:
-->{{#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}}}]]}}<!--
-->{{#if:{{{category|}}}|{{Array|{{{category}}}|;|[[Category:{item}]]}}}}<!--
   Type
   Type
-->{{#if:{{{types|}}}|{{Array|{{{types}}}|;|[[Category:{item} Dishes]]}}}}<!--
-->{{#if:{{{types|}}}|{{Array|{{{types}}}|;|[[Category:{item} Dishes]]}}}}<!--

Revision as of 09:06, 11 May 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

047Bamboo Apple Slushie
Quality
Rare
Category
Type
  • Dessert
Kitchenware
Strength
+60
Description
Yunguo has eighty-one favorite ways of enjoying an apple, and this is only one of them!
How to Obtain
Recipe
{{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