模板:Recipe

来自Don't Starve Wiki
跳转到导航 跳转到搜索
Interface arrow right.png
Template documentation [檢視] [編輯] [歷史] [刷新]
概要

这个资料夹是用来制作标准配方,会自动以连结/图示输出。列表中物品名称,必须使用图片和相关文章连结的命名,这样才会自动选到正确的图片和文章连结(如果英文图片搭配中文标题的文章页面,会有无法同步的缺点)。

用法
  • 完整语法:{{Recipe|item1=|count1=|item2=|count2=|item3=|count3=|result=}}
  • 基本用法如下:
{{Recipe|item=Cut Grass|result=Rope}}
Inventory slot background.pngCut Grass.pngInterface arrow right.pngInventory slot background.pngRope.png
  • 同样的物品总共需要三个的话,请这样写:
{{Recipe|item=Cut Grass|count=3|result=Rope}}
Inventory slot background.pngCut Grass.pngInventory slot background.pngCut Grass.pngInventory slot background.pngCut Grass.pngInterface arrow right.pngInventory slot background.pngRope.png
  • 也可以用乘法来表示数量,如果同一个物品需要很多件的话:
{{Recipe|item=Cut Grass|count=12|result=Straw Hat}}
Inventory slot background.pngCut Grass.png

×12

Interface arrow right.pngInventory slot background.pngStraw Hat.png
  • 多数配方需要用到两种以上的物品:
{{Recipe|item1=Twigs|item2=Flint|result=Axe}}
Inventory slot background.pngTwigs.pngInventory slot background.png Flint.pngInterface arrow right.pngInventory slot background.pngAxe.png
  • 且多数配方需要超过一个以上的数量:
{{Recipe|item1=Twigs|item2=Cut Grass|count2=2|result=Torch}}
Inventory slot background.pngTwigs.pngInventory slot background.png Cut Grass.pngInventory slot background.png Cut Grass.pngInterface arrow right.pngInventory slot background.pngTorch.png
  • 本资料夹(Template文件)可支援三件物品(游戏中使用最多的配方):
{{Recipe|item1=Crow Feather|count1=3|item2=Crimson Feather|count2=2|item3=Tentacle Spots|count3=2|result=Feather Hat}}
Inventory slot background.pngCrow Feather.pngInventory slot background.pngCrow Feather.pngInventory slot background.pngCrow Feather.pngInventory slot background.png Crimson Feather.pngInventory slot background.png Crimson Feather.pngInventory slot background.pngTentacle Spots.pngInventory slot background.pngTentacle Spots.pngInterface arrow right.pngInventory slot background.pngFeather Hat.png
  • 编辑页面时如果需要写到很多不同配方的话,为了避免凌乱,
    你可以在语法后面多加一个 |small=yes ,如下:
{{Recipe|item1=Crow Feather|count1=3|item2=Crimson Feather|count2=2|item3=Tentacle Spots|count3=2|result=Feather Hat|small=yes}}
Inventory slot background.pngCrow Feather.pngInventory slot background.pngCrow Feather.pngInventory slot background.pngCrow Feather.pngInventory slot background.png Crimson Feather.pngInventory slot background.png Crimson Feather.pngInventory slot background.pngTentacle Spots.pngInventory slot background.pngTentacle Spots.pngInterface arrow right.pngInventory slot background.pngFeather Hat.png
  • 也可以用来具体指明,以下是一个需要火源来煮熟 的物品(↓多了营火的图示):
{{Recipe|item=Corn|result=Popcorn|fire=yes}}
Inventory slot background.pngCorn.pngFire Pit.pngInventory slot background.pngPopcorn.png
  • 也可以用来具体指明,以下是干肉架晒干后的肉品:
{{Recipe|item=Meat|result=Jerky|dry=yes}}
Inventory slot background.pngMeat.pngDrying Rack.pngInventory slot background.pngJerky.png
{{Recipe|item=Corn|result=Corn Seeds|bird=yes}}
Inventory slot background.pngCorn.pngBirdcage.pngInventory slot background.pngCorn Seeds.png
{{Recipe|item1=Eggplant|item2=Carrot|item3=Seeds|item4=Seeds|result=Stuffed Eggplant|pot=yes}}
Inventory slot background.pngEggplant.pngInventory slot background.png Carrot.pngInventory slot background.pngSeeds.pngInventory slot background.pngSeeds.pngCrock Pot.pngInventory slot background.pngStuffed Eggplant.png
  • 现在我们可以像这样,用图示,简单地表达烹饪锅食谱(问号可自行放入需要的图):
{{Recipe|item1=Meats|item2=Filler|count2=3|result=Meatballs|pot=yes}}
Inventory slot background.pngMeats.pngInventory slot background.png Placeholder.pngInventory slot background.png Placeholder.pngInventory slot background.png Placeholder.pngCrock Pot.pngInventory slot background.pngMeatballs.png1 或 +

{{Recipe|item1=Vegetables|count1=4|result=Ratatouille|pot=yes}}
Inventory slot background.pngVegetables.png

×4

Crock Pot.pngInventory slot background.pngRatatouille.png