模板:Recipe/doc

出自Don't Starve Wiki
跳至導覽 跳至搜尋
概要

這個資料夾是用來製作標準配方,會自動以連結/圖示輸出。列表中物品名稱,必須使用圖片和相關文章連結的命名,這樣才會自動選到正確的圖片和文章連結(如果英文圖片搭配中文標題的文章頁面,會有無法同步的缺點)。

用法
  • 完整語法:{{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


  • 如果配方有限定於某個特定的資料片(例如:《多人版饑荒》):
{{Recipe|item1=Twigs|count1=3|item2=Rocks|count2=3|item3=Cut Grass|count3=6|result=Hammer|dlc=Reign of Giants}}
Inventory slot background.pngTwigs.pngInventory slot background.pngTwigs.pngInventory slot background.pngTwigs.pngInventory slot background.png Rocks.pngInventory slot background.png Rocks.pngInventory slot background.png Rocks.pngInventory slot background.pngCut Grass.png

×6

Interface arrow right.pngInventory slot background.pngHammer.pngReign of Giants icon.png
  • 如果配方有限定於某個特定的角色:
{{Recipe|item1=Papyrus|count1=2|item2=Egg|count2=2|result=Birds of the World|character=Wickerbottom}}
Inventory slot background.pngPapyrus.pngInventory slot background.pngPapyrus.pngInventory slot background.png Egg.pngInventory slot background.png Egg.pngInterface arrow right.pngInventory slot background.pngBirds of the World.pngWickerbottom Portrait.png
  • 兩個限定圖示可以同時使用:
{{Recipe|item1=Boards|count1=1|item2=Seashell|count2=2|result=Surfboard|character=Walani|dlc=Shipwrecked}}
Inventory slot background.pngBoards.pngInventory slot background.png Seashell.pngInventory slot background.png Seashell.pngInterface arrow right.pngInventory slot background.pngSurfboard.pngShipwrecked icon.pngWalani Portrait.png