此模板使用了Module:UI,此腳本使用Lua編寫。
更多詳情,請參閱維基百科:Lua和MediaWiki:擴展:Scribunto。
這個模板用來建立類似工作台的介面。
見Template:Inventory slot以取得基礎用途。此文件頁面將介紹其他或不同的功能。
在大多數情況下,例如在某物品文章裡建立合成配方時,可使用{{Crafting}}代替。
用法[]
{{Crafting Table
|A1= |B1= |C1=
|A2= |B2= Oak Planks |C2=
|A3= |B3= Oak Planks |C3=
|Output= Stick,4
}}
- 效果:
無序[]
如果合成配方是是無序的,請在模板中加入shapeless=1,模板將顯示一個圖示,將游標懸停在該圖示上即可說明無序合成是什麼。
{{Crafting Table
|shapeless= 1
|A1= |B1= Blaze Powder |C1=
|A2= |B2= Coal,Charcoal |C2=
|A3= |B3= Gunpowder |C3=
|Output= Fire Charge,3
}}
- 效果:
shapeless參數不支持動畫,因此無法組合無序和有序配方。
固定[]
如果配方是固定的,請在模板中加入fixed=1,模板將顯示一個圖示,將游標懸停在該圖示上即可說明固定配方是什麼。可設定notfixed參數來指定例外。
{{Crafting Table
|fixed= 1
|notfixed= 旗帜
|B2= Banner
|A3= Lapis Lazuli |B3= Lapis Lazuli |C3= Lapis Lazuli
|Output= Blue Base Banner
|Olink=旗帜
}}
- 效果:
fixed參數不支持動畫,因此無法組合固定、無序和有序配方。
動畫[]
要使欄位具有動畫效果,請列出要顯示的方塊和物品,並用分號分隔。
{{Crafting Table
|A1= ; Lapis Lazuli |B1= ; Lapis Lazuli |C1= ; Lapis Lazuli
|A2= ; Lapis Lazuli |B2= Lapis Lazuli Block; Lapis Lazuli |C2= ; Lapis Lazuli
|A3= ; Lapis Lazuli |B3= ; Lapis Lazuli |C3= ; Lapis Lazuli
|Output= Lapis Lazuli,9; Lapis Lazuli Block
}}
- 效果:
{{Crafting Table
|A1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|C1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|A2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|C2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|A3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|C3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|Output= Block of Iron; Block of Gold; Block of Diamond; Lapis Lazuli Block
}}
- 效果:
Mod[]
Mod圖像和普通圖像可以在欄位中組合。但不建議使用這種用法,因為目前Mod內容將全部轉移到FTB Wiki。
另見[]
{{Crafting Table}}{{Inventory Table}}{{Furnace}}{{Brewing Stand}}{{Stonecutter}}{{Loom}}{{Grindstone}}{{Hotbar}}{{Inventory}}{{Inventory slot}}- Module:UI
語言