模板:Crafting Table/doc:修订间差异

来自The Land of StarLight
SJMC>ART1st
导入1个版本
SJMC>Ff98sha
无编辑摘要
第148行: 第148行:
Animation is fully supported between mod and vanilla items.
Animation is fully supported between mod and vanilla items.
-->
-->
== 另见 ==
{{UI see also}}


<includeonly>
<includeonly></includeonly>
[[Category:物品栏模板]]
<noinclude></noinclude>
[[Category:图片模板]]
 
[[de:Vorlage:Grid/Crafting Table]]
[[en:Template:Crafting Table]]
[[fr:Modèle:Grille/Établi]]
[[it:Template:Grid/Crafting Table]]
[[ja:テンプレート:Crafting Table]]
[[ko:틀:Crafting Table]]
[[nl:Template:Grid/Crafting Table]]
[[pl:Szablon:Grid/Crafting Table]]
[[ru:Шаблон:Верстак]]
</includeonly>
<noinclude>
[[de:Vorlage:Grid/Crafting Table/doc]]
[[en:Template:Crafting Table/doc]]
[[fr:Modèle:Grille/Établi/doc]]
[[ja:テンプレート:Crafting Table/doc]]
[[ko:틀:Crafting Table/doc]]
[[nl:Template:Grid/Crafting Table/doc]]
[[pl:Szablon:Grid/Crafting Table/doc]]
[[ru:Шаблон:Верстак/док]]
</noinclude>

2022年5月10日 (二) 23:56的版本

这是文档页面,它应该被放置到模板:Crafting Table,查看Template:Documentation以获取更多信息。

此模板使用了模块:UI,此脚本使用Lua编写。
更多详情,请参阅维基百科:LuaMediaWiki:扩展: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