Template:Dish Infobox: Difference between revisions
Appearance
reordering + some uncommon gives 20 score now... |
No edit summary |
||
| (24 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
-->{{{title|<!-- | -->{{{title|<!-- | ||
-->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | --><span class="infobox-name">{{{name|{{PAGENAME}}}}}</span><!-- | ||
-->}}} | -->}}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
| 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 | |sections = Information,, Effect,, How to Obtain | ||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, | |Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Cooking Lv.,, EXP Gain,, Collection Score,, Ingredients | ||
|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}}}}}|}} | ||
|Collection Score = {{#switch:{{{quality|}}} | |Cooking Lv. = {{#if:{{{cooklv|}}}|{{{cooklv}}}}} | ||
|EXP Gain = {{#if:{{{exp1|}}}|{{{exp1}}} (First Time)<br>{{{exp2|}}} (Subsequent Times)}} | |||
|Collection Score = {{#if:{{{noscore|}}}||{{#switch:{{{quality|}}} | |||
|Common = +5 | |Common = +5 | ||
|Uncommon = +{{{score|10}}} | |Uncommon = +{{{score|10}}} | ||
|Rare = +{{{score|20}}} | |Rare = +{{{score|20}}} | ||
|Stellar = + | |Stellar = +30 | ||
|#default =}} | |#default =}}}} | ||
| | |Ingredients = {{#if:{{{ingredient|}}}|{{#if:{{#explode:{{{ingredient}}}|;|1}}|{{Array|{{{ingredient}}}|;|* [[Contains {item}]]{newline} }}|[[Contains {{{ingredient|}}}]]}}}} | ||
| | |||
| | |||
|Effect_collapsible = Yes | |Effect_collapsible = Yes | ||
|Effect = EffectText | |Effect = Strength,, EffectText | ||
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}} | |||
|EffectText_nolabel = Yes | |||
|EffectText_wide = Yes | |EffectText_wide = Yes | ||
|EffectText = {{{effect|}}} | |EffectText = {{#if:{{{effect|}}}|<center>'''{{{effect|}}}'''<br>{{Dish Effect|{{{effect|}}}}}</center>}} | ||
|How to Obtain_collapsible = Yes | |How to Obtain_collapsible = Yes | ||
| Line 47: | Line 44: | ||
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | |Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | ||
|Recipe = {{{recipe|}}} | |Recipe = {{{recipe|}}} | ||
}}<!-- | }}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | ||
-->{{#invoke:Bucket|put|dishes | -->{{#invoke:Bucket|put|dishes | ||
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, favorite, sell, description, source | |+templateargs = number, quality, category, type, cuisine, kitchenware, strength, effect, favorite, sell, description, source | ||
|page_id = {{PAGEID}} | |page_id = {{PAGEID}} | ||
|type-delimiter = ; | |type-delimiter = ; | ||
| Line 73: | Line 70: | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | -->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | ||
Type | Type | ||
-->{{#if:{{{ | -->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item} Dishes]]}}}}<!-- | ||
-->{{#if:{{{cuisine|}}}|[[Category:{{{cuisine}}} Cuisine 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}}}|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}} | -->{{#switch:{{{quality}}}|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}} | ||
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.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Syntax
[edit source]{{Dish Infobox
|name =
|number =
|image =
|quality =
|category =
|type =
|cuisine =
|kitchenware =
|strength =
|effect =
|description =
|source =
|recipe =
}}
Examples
[edit source]047Bamboo Apple Slushie
Information
Quality
Rare
Category
Type
Dessert
Cuisine
Kitchenware
Collection Score
+20
Ingredients
Effect
Strength
+60
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!
|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]| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||