模板:Recipe infobox:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第3行: | 第3行: | ||
{{#cargo_store: | {{#cargo_store: | ||
_table=Recipes | _table=Recipes | ||
|requirementcost={{{requirementcost|}}} | |requirementcost={{{requirementcost|}}} | ||
}}<!-- end cargo_store --> | }}<!-- end cargo_store --> | ||
}}<!-- end ifeq:{{NAMESPACE}} | }}<!-- end ifeq:{{NAMESPACE}} | ||
第27行: | 第23行: | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=Recipes | _table=Recipes | ||
| | |requirementcost=String | ||
}} | }} | ||
{{documentation}} | {{documentation}} |
2024年3月21日 (四) 16:33的版本
此模板定义表格“Recipes”。 查看表格.
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
Usage
Available parameters:
{{Recipe infobox |recipename= |ingredients= |catalysts= |requirementcost= |image= }}
Examples
Recipe without catalysts
{{Recipe infobox |recipename=Rainbow Goobert Megasludge Alphapuddle |ingredients=Goobert, Blood Goobert, Light Goobert, Carrot Goobert, Steel Goobert |requirementcost=68 (6+15+18+12+17) |image=RainbowGoobertMegasludgeAlphapuddle_recipe.png }}
Recipe with catalysts
{{Recipe infobox |recipename=Strong Vampiric Potion |ingredients=Vampiric Potion |catalysts=Cauldron |requirementcost=18 (8+10) |image=StrongVampiricPotion_transform.png }}
Multiple Recipes
{{Recipe infobox |recipename=Strong Health Potion |ingredients=Health Potion, Healing Herbs |requirementcost=8 (4+4) |image=StrongHealthPotion_recipe.png }} {{Recipe infobox |recipename=Strong Health Potion |ingredients=Health Potion |catalysts=Cauldron |requirementcost=14 (4+10) |image=StrongHealthPotion_transform.png }}
Multiple Recipes with Line Break
Line breaks cause infoboxes to split, and generates an empty line (below this line).
{{Recipe infobox |recipename=Strong Health Potion |ingredients=Health Potion, Healing Herbs |requirementcost=8 (4+4) |image=StrongHealthPotion_recipe.png }} {{Recipe infobox |recipename=Strong Health Potion |ingredients=Health Potion |catalysts=Cauldron |requirementcost=14 (4+10) |image=StrongHealthPotion_transform.png }}
Item with Recipe
{{Item infobox |name=Burning Coal |image=BurningCoal.png |rarity=Rare |type=Gemstone, Fire |cost=2 |effect=Example |inshop=No |grid=1 }} {{Recipe infobox |recipename=Burning Coal |ingredients=Lump of Coal |catalysts=Fire |requirementcost= |image=BurningCoal_transform.png }}