此模板使用了Module:UI,此脚本使用Lua编写。
更多详情,请参阅维基百科:Lua和MediaWiki:扩展:Scribunto。
这个模板用来制作像Minecraft界面的合成表。
见Template:Inventory slot以获得基础用途。这个文档会包括另外的一些功能。
多数时候,像是在文章里面创建合成表的时候,{{Crafting}}会被使用。
你可以帮助我们来翻译此条目,但请勿使用机器翻译。
用途
{{Crafting Table
|A1= |B1= |C1=
|A2= |B2= Oak Wood Planks |C2=
|A3= |B3= Oak Wood Planks |C3=
|Output= Stick,4
}}
- 效果:
无形的
如果配方是无形的,增加|shapeless=1即可。which will display an icon which when hovered over explains what a shapeless recipe is.
{{Crafting Table
|shapeless= 1
|A1= |B1= Blaze Powder |C1=
|A2= |B2= Coal,Charcoal |C2=
|A3= |B3= Gunpowder |C3=
|Output= Fire Charge,3
}}
- 效果:
The shapeless parameter does not support animation, so shapeless and non-shapeless recipes cannot be combined.
固定的
如果配方是固定的,增加fixed=1即可,which will display an icon which when hovered over explains what a fixed recipe is. The notfixed parameter can also be set to specify exceptions.
{{Crafting Table
|fixed= 1
|notfixed=旗帜
|B2= Banner
|A3= Lapis Lazuli |B3= Lapis Lazuli |C3= Lapis Lazuli
|Output= Blue Base Banner
}}
- 效果:
The fixed parameter does not support animation, so fixed, shapeless and normal recipes cannot be combined.
动画
To make the slots animate, you make a list of blocks and objects you want to show, separated by semi-colons.
{{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
}}
- 效果:
另见
{{Crafting Table}}{{Inventory Table}}{{Furnace}}{{Brewing Stand}}{{Stonecutter}}{{Loom}}{{Grindstone}}{{Hotbar}}{{Inventory}}{{Inventory slot}}- Module:UI