本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知)
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明)
模板:Inventory slot
此模板使用了模块:Inventory slot,以及数据模块模块:Inventory slot/Aliases。
这些脚本均使用Lua编写。更多详情,请参阅维基百科:Lua和MediaWiki:扩展:Scribunto。
Inventory slot模板用于创建模仿游戏内物品栏的图形界面元素。图像主要取自{{InvSprite}}
,若指定项目未被找到,模板会回落至独立图像,名称格式为Grid <物品名>.png
。
用法
所有的输入都是可选的:
{{Slot |[Title]Mod:Name,Amount[Description]; [Title2]Mod2:Name2,Amount2[Description2]; ... |mod=Default mod (useful for animations and layout templates) |default=Image always shown under the main image |align=Vertical Alignment |link=Link override |title=Text show on mouseover |class=Adds additional classes to the .invslot class |style=Adds styling to the .invslot |imgclass=Adds additional classes to the .invslot-item |numstyle=Adds styling to the stack number }}
部分
第一个参数是一个特殊参数,由若干个“部分”组成(用;
分割),如果开启了JavaScript,它们将按顺序接连展示。每一部分都是可选的,但如果不提供Name
,将会被忽略。
示例
要显示堆叠20个的猪排,你需要输入:{{Slot|Raw Porkchop,20}}
- 显示
允许2~999的数字,输入其它的将不会被显示。
别称
别称 | 输出 |
---|---|
Any Armor Trim Matching Armor Trim |
|
Any Armor Trim Smithing Template Matching Armor Trim Smithing Template |
|
Any Balloon Matching Balloon |
|
Any Banner Matching Banner |
|
Any Bed Matching Bed |
|
Any Blackstone Matching Blackstone |
|
Any Boat Matching Boat |
|
Any Boat with Chest Matching Boat with Chest |
|
Any Campfire Matching Campfire |
|
Any Candle Matching Candle |
|
Any Carpet Matching Carpet |
|
Any Cobblestone or Blackstone Matching Cobblestone or Blackstone |
|
Any Colored Dye Matching Colored Dye |
|
Any Concrete Matching Concrete |
|
Any Concrete Powder Matching Concrete Powder |
|
Any Coral Matching Coral |
|
Any Coral Block Matching Coral Block |
|
Any Coral Fan Matching Coral Fan |
|
Any Dead Coral Matching Dead Coral |
|
Any Dead Coral Block Matching Dead Coral Block |
|
Any Dead Coral Fan Matching Dead Coral Fan |
|
Any Dye Matching Dye |
|
Any Dyed Bed Matching Dyed Bed |
|
Any Dyed Candle Matching Dyed Candle |
|
Any Dyed Carpet Matching Dyed Carpet |
|
Any Dyed Terracotta Matching Dyed Terracotta |
|
Any Dyed Wool Matching Dyed Wool |
|
Any Fence Gate Matching Fence Gate |
|
Any Firework Star Matching Firework Star |
|
Any Flower Matching Flower |
|
Any Fungi Matching Fungi |
|
Any Fungus Matching Fungus |
|
Any Glazed Terracotta Matching Glazed Terracotta |
|
Any Hanging Sign Matching Hanging Sign |
|
Any Hardened Stained Glass Matching Hardened Stained Glass |
|
Any Hardened Stained Glass Pane Matching Hardened Stained Glass Pane |
|
Any Hyphae Matching Hyphae |
|
Any Lantern Matching Lantern |
|
Any Lingering Potion Matching Lingering Potion |
|
Any Log Matching Log |
|
Any Log or Stem Matching Log or Stem |
|
Any Mushroom Matching Mushroom |
|
Any Nether Fence Gate Matching Nether Fence Gate |
|
Any Nether Hanging Sign Matching Nether Hanging Sign |
|
Any Nether Planks Matching Nether Planks |
|
Any Nether Sign Matching Nether Sign |
|
Any Nether wood Button Matching Nether wood Button |
|
Any Nether wood Door Matching Nether wood Door |
|
Any Nether wood Fence Matching Nether wood Fence |
|
Any Nether wood Pressure Plate Matching Nether wood Pressure Plate |
|
Any Nether wood Slab Matching Nether wood Slab |
|
Any Nether wood Stairs Matching Nether wood Stairs |
|
Any Nether wood Trapdoor Matching Nether wood Trapdoor |
|
Any Nylium Matching Nylium |
|
Any Ore Matching Ore |
|
Any Overworld Fence Gate Matching Overworld Fence Gate |
|
Any Overworld Hanging Sign Matching Overworld Hanging Sign |
|
Any Overworld Planks Matching Overworld Planks |
|
Any Overworld Sign Matching Overworld Sign |
|
Any Overworld wood Button Matching Overworld wood Button |
|
Any Overworld wood Door Matching Overworld wood Door |
|
Any Overworld wood Fence Matching Overworld wood Fence |
|
Any Overworld wood Pressure Plate Matching Overworld wood Pressure Plate |
|
Any Overworld wood Slab Matching Overworld wood Slab |
|
Any Overworld wood Stairs Matching Overworld wood Stairs |
|
Any Overworld wood Trapdoor Matching Overworld wood Trapdoor |
|
Any Planks Matching Planks |
|
Any Potion Matching Potion |
|
Any Pottery Sherd Matching Pottery Sherd |
|
Any Prismarine Matching Prismarine |
![]() |
Any Purpur Block Matching Purpur Block |
|
Any Quartz Block Matching Quartz Block |
|
Any Red Sandstone Matching Red Sandstone |
|
Any Roots Matching Roots |
|
Any Sandstone Matching Sandstone |
|
Any Sapling Matching Sapling |
|
Any Shield Matching Shield |
|
Any Shulker Box Matching Shulker Box |
|
Any Sign Matching Sign |
|
Any Smithing Template Matching Smithing Template |
|
Any Soul Sand Matching Soul Sand |
|
Any Splash Potion Matching Splash Potion |
|
Any Stained Glass Matching Stained Glass |
|
Any Stained Glass Pane Matching Stained Glass Pane |
|
Any Stem Matching Stem |
|
Any Stone Matching Stone |
|
Any Stone Bricks Matching Stone Bricks |
|
Any Stone Button Matching Stone Button |
|
Any Stone Pressure Plate Matching Stone Pressure Plate |
|
Any Stone Slab Matching Stone Slab |
![]() |
Any Stone Stairs Matching Stone Stairs |
![]() |
Any Stripped Hyphae Matching Stripped Hyphae |
|
Any Stripped Log Matching Stripped Log |
|
Any Stripped Log or Stem Matching Stripped Log or Stem |
|
Any Stripped Stem Matching Stripped Stem |
|
Any Stripped Wood Matching Stripped Wood |
|
Any Stripped Wood or Hyphae Matching Stripped Wood or Hyphae |
|
Any Tipped Arrow Matching Tipped Arrow |
|
Any Torch Matching Torch |
|
Any Tulip Matching Tulip |
|
Any Wall Matching Wall |
![]() |
Any Wood Matching Wood |
|
Any Wood or Hyphae Matching Wood or Hyphae |
|
Any Wool Matching Wool |
|
Any axe Matching axe |
|
Any chainmail armor Matching chainmail armor |
|
Any diamond armor Matching diamond armor |
|
Any diamond tools Matching diamond tools |
|
Any fuel Matching fuel |
|
Any golden armor Matching golden armor |
|
Any golden tools Matching golden tools |
|
Any hoe Matching hoe |
|
Any iron armor Matching iron armor |
|
Any iron tools Matching iron tools |
|
Any leather armor Matching leather armor |
|
Any netherite armor Matching netherite armor |
|
Any netherite tools Matching netherite tools |
|
Any pickaxe Matching pickaxe |
|
Any shovel Matching shovel |
|
Any stone tools Matching stone tools |
|
Any stone-tier block Matching stone-tier block |
|
Any sword Matching sword |
|
Any wood Button Matching wood Button |
|
Any wood Door Matching wood Door |
|
Any wood Fence Matching wood Fence |
|
Any wood Pressure Plate Matching wood Pressure Plate |
|
Any wood Slab Matching wood Slab |
|
Any wood Stairs Matching wood Stairs |
|
Any wood Trapdoor Matching wood Trapdoor |
|
Any wooden tools Matching wooden tools |
|
Arrow Loaded Crossbow |
|
Arrow of Decay |
|
Arrow of Fire Resistance |
|
Arrow of Fire Resistance Extended |
|
Arrow of Harming |
|
Arrow of Harming Enhanced |
|
Arrow of Healing |
|
Arrow of Healing Enhanced |
|
Arrow of Invisibility |
|
Arrow of Invisibility Extended |
|
Arrow of Leaping |
|
Arrow of Leaping Enhanced |
|
Arrow of Leaping Extended |
|
Arrow of Luck |
|
Arrow of Night Vision |
|
Arrow of Night Vision Extended |
|
Arrow of Poison |
|
Arrow of Poison Enhanced |
|
Arrow of Poison Extended |
|
Arrow of Regeneration |
|
Arrow of Regeneration Enhanced |
|
Arrow of Regeneration Extended |
|
Arrow of Slow Falling |
|
Arrow of Slow Falling Extended |
|
Arrow of Slowness |
|
Arrow of Slowness Enhanced |
|
Arrow of Slowness Extended |
|
Arrow of Splashing |
|
Arrow of Strength |
|
Arrow of Strength Enhanced |
|
Arrow of Strength Extended |
|
Arrow of Swiftness |
|
Arrow of Swiftness Enhanced |
|
Arrow of Swiftness Extended |
|
Arrow of Water Breathing |
|
Arrow of Water Breathing Extended |
|
Arrow of Weakness |
|
Arrow of Weakness Extended |
|
Arrow of the Turtle Master |
|
Arrow of the Turtle Master Enhanced |
|
Arrow of the Turtle Master Extended |
|
Awkward Lingering Potion |
|
Awkward Potion |
|
Awkward Splash Potion |
|
Banner Pattern Bordure Indented |
|
Banner Pattern Creeper |
|
Banner Pattern Creeper Charge |
|
Banner Pattern Field Masoned |
|
Banner Pattern Flower |
|
Banner Pattern Flower Charge |
|
Banner Pattern Globe |
|
Banner Pattern Piglin |
|
Banner Pattern Skull |
|
Banner Pattern Skull Charge |
|
Banner Pattern Snout |
|
Banner Pattern Thing |
|
Barrier |
|
Beacon |
|
Black Firework Star |
|
Blue Firework Star |
|
Blue Key |
![]() |
Bottle o' Enchanting |
![]() |
Broken Elytra |
|
Brown Firework Star |
|
Bubble Column |
![]() |
Button |
|
Calibrated Sculk Sensor |
校频幽匿感测体 |
Chain Command Block |
![]() |
Chloride |
|
Clock |
![]() |
Coast Armor Trim |
|
Coast Armor Trim Smithing Template |
|
Command Block |
![]() |
Compass |
![]() |
Conduit |
|
Cooked Beef |
|
Creeper Head |
|
Crimson Hyphae |
![]() |
Crimson Stem |
![]() |
Cyan Firework Star |
|
Damaged Arrow Loaded Crossbow |
|
Damaged Bow |
|
Damaged Brush |
|
Damaged Carrot on a Stick |
|
Damaged Chainmail Boots |
|
Damaged Chainmail Chestplate |
|
Damaged Chainmail Helmet |
|
Damaged Chainmail Leggings |
|
Damaged Crossbow |
|
Damaged Diamond Axe |
|
Damaged Diamond Boots |
|
Damaged Diamond Chestplate |
|
Damaged Diamond Helmet |
|
Damaged Diamond Hoe |
|
Damaged Diamond Leggings |
|
Damaged Diamond Pickaxe |
|
Damaged Diamond Shovel |
|
Damaged Diamond Sword |
|
Damaged Elytra |
|
Damaged Firework Loaded Crossbow |
|
Damaged Fishing Rod |
|
Damaged Flint and Steel |
|
Damaged Golden Axe |
|
Damaged Golden Boots |
|
Damaged Golden Chestplate |
|
Damaged Golden Helmet |
|
Damaged Golden Hoe |
|
Damaged Golden Leggings |
|
Damaged Golden Pickaxe |
|
Damaged Golden Shovel |
|
Damaged Golden Sword |
|
Damaged Iron Axe |
|
Damaged Iron Boots |
|
Damaged Iron Chestplate |
|
Damaged Iron Helmet |
|
Damaged Iron Hoe |
|
Damaged Iron Leggings |
|
Damaged Iron Pickaxe |
|
Damaged Iron Shovel |
|
Damaged Iron Sword |
|
Damaged Leather Boots |
|
Damaged Leather Cap |
|
Damaged Leather Pants |
|
Damaged Leather Tunic |
|
Damaged Netherite Axe |
|
Damaged Netherite Boots |
|
Damaged Netherite Chestplate |
|
Damaged Netherite Helmet |
|
Damaged Netherite Hoe |
|
Damaged Netherite Leggings |
|
Damaged Netherite Pickaxe |
|
Damaged Netherite Shovel |
|
Damaged Netherite Sword |
|
Damaged Shears |
|
Damaged Shield |
|
Damaged Stone Axe |
|
Damaged Stone Hoe |
|
Damaged Stone Pickaxe |
|
Damaged Stone Shovel |
|
Damaged Stone Sword |
|
Damaged Trident |
|
Damaged Turtle Shell |
|
Damaged Warped Fungus on a Stick |
|
Damaged Wooden Axe |
|
Damaged Wooden Hoe |
|
Damaged Wooden Pickaxe |
|
Damaged Wooden Shovel |
|
Damaged Wooden Sword |
|
Debug Stick |
![]() |
Diamond Axe |
|
Diamond Hoe |
|
Diamond Pickaxe |
|
Diamond Shovel |
|
Diamond Sword |
|
Disc Fragment 5 |
|
Dragon Egg |
|
Dragon Head |
|
Dragon's Breath |
|
Dune Armor Trim |
|
Dune Armor Trim Smithing Template |
|
Elytra |
|
Elytra Wings |
|
Enchanted Book |
![]() |
Enchanted Golden Apple |
![]() |
End Crystal |
![]() |
Eye Armor Trim |
|
Eye Armor Trim Smithing Template |
|
Filled Bundle |
|
Fire |
![]() |
Firework Loaded Crossbow |
|
Golden Apple |
|
Golden Axe |
|
Golden Hoe |
|
Golden Pickaxe |
|
Golden Shovel |
|
Golden Sword |
|
Gray Firework Star |
|
Green Firework Star |
|
Half Filled Bundle |
|
Head |
|
Heart of the Sea |
|
Heat Block |
![]() |
Host Armor Trim |
|
Host Armor Trim Smithing Template |
|
Iron Axe |
|
Iron Hoe |
|
Iron Pickaxe |
|
Iron Shovel |
|
Iron Sword |
|
Jigsaw Block |
|
Lava |
![]() |
Lead (element) |
|
Light 0 |
|
Light 1 |
|
Light 10 |
|
Light 11 |
|
Light 12 |
|
Light 13 |
|
Light 14 |
|
Light 15 |
|
Light 2 |
|
Light 3 |
|
Light 4 |
|
Light 5 |
|
Light 6 |
|
Light 7 |
|
Light 8 |
|
Light 9 |
|
Light Block 0 |
|
Light Block 1 |
|
Light Block 10 |
|
Light Block 11 |
|
Light Block 12 |
|
Light Block 13 |
|
Light Block 14 |
|
Light Block 15 |
|
Light Block 2 |
|
Light Block 3 |
|
Light Block 4 |
|
Light Block 5 |
|
Light Block 6 |
|
Light Block 7 |
|
Light Block 8 |
|
Light Block 9 |
|
Light Blue Firework Star |
|
Light Gray Firework Star |
|
Light Negative |
|
Lime Firework Star |
|
Lingering Potion of Decay |
|
Lingering Potion of Fire Resistance |
|
Lingering Potion of Fire Resistance Extended |
|
Lingering Potion of Harming |
|
Lingering Potion of Harming Enhanced |
|
Lingering Potion of Healing |
|
Lingering Potion of Healing Enhanced |
|
Lingering Potion of Invisibility |
|
Lingering Potion of Invisibility Extended |
|
Lingering Potion of Leaping |
|
Lingering Potion of Leaping Enhanced |
|
Lingering Potion of Leaping Extended |
|
Lingering Potion of Luck |
|
Lingering Potion of Night Vision |
|
Lingering Potion of Night Vision Extended |
|
Lingering Potion of Poison |
|
Lingering Potion of Poison Enhanced |
|
Lingering Potion of Poison Extended |
|
Lingering Potion of Regeneration |
|
Lingering Potion of Regeneration Enhanced |
|
Lingering Potion of Regeneration Extended |
|
Lingering Potion of Slow Falling |
|
Lingering Potion of Slow Falling Extended |
|
Lingering Potion of Slowness |
|
Lingering Potion of Slowness Enhanced |
|
Lingering Potion of Slowness Extended |
|
Lingering Potion of Strength |
|
Lingering Potion of Strength Enhanced |
|
Lingering Potion of Strength Extended |
|
Lingering Potion of Swiftness |
|
Lingering Potion of Swiftness Enhanced |
|
Lingering Potion of Swiftness Extended |
|
Lingering Potion of Water Breathing |
|
Lingering Potion of Water Breathing Extended |
|
Lingering Potion of Weakness |
|
Lingering Potion of Weakness Extended |
|
Lingering Potion of the Turtle Master |
|
Lingering Potion of the Turtle Master Enhanced |
|
Lingering Potion of the Turtle Master Extended |
|
Lingering Water Bottle |
|
Locator Map |
|
Lodestone Compass |
![]() |
Lodestone Compass BE |
![]() |
Magenta Firework Star |
|
Magma Block |
![]() |
Magma Block BE |
![]() |
Map (no markers) |
|
Mundane Lingering Potion |
|
Mundane Potion |
|
Mundane Splash Potion |
|
Music Disc 11 |
|
Music Disc 13 |
|
Music Disc 5 |
|
Music Disc Blocks |
|
Music Disc Cat |
|
Music Disc Chirp |
|
Music Disc Far |
|
Music Disc Mall |
|
Music Disc Mellohi |
|
Music Disc Otherside |
|
Music Disc Pigstep |
|
Music Disc Relic |
|
Music Disc Stal |
|
Music Disc Strad |
|
Music Disc Wait |
|
Music Disc Ward |
|
Nether Portal |
![]() |
Nether Star |
![]() |
Netherite Axe |
|
Netherite Hoe |
|
Netherite Pickaxe |
|
Netherite Shovel |
|
Netherite Sword |
|
Netherite Upgrade |
|
Netherite Upgrade Smithing Template |
|
Orange Firework Star |
|
Piglin Head |
|
Pink Firework Star |
|
Player Head |
|
Potion of Decay |
|
Potion of Fire Resistance |
|
Potion of Fire Resistance Extended |
|
Potion of Harming |
|
Potion of Harming Enhanced |
|
Potion of Healing |
|
Potion of Healing Enhanced |
|
Potion of Invisibility |
|
Potion of Invisibility Extended |
|
Potion of Leaping |
|
Potion of Leaping Enhanced |
|
Potion of Leaping Extended |
|
Potion of Luck |
|
Potion of Night Vision |
|
Potion of Night Vision Extended |
|
Potion of Poison |
|
Potion of Poison Enhanced |
|
Potion of Poison Extended |
|
Potion of Regeneration |
|
Potion of Regeneration Enhanced |
|
Potion of Regeneration Extended |
|
Potion of Slow Falling |
|
Potion of Slow Falling Extended |
|
Potion of Slowness |
|
Potion of Slowness Enhanced |
|
Potion of Slowness Extended |
|
Potion of Strength |
|
Potion of Strength Enhanced |
|
Potion of Strength Extended |
|
Potion of Swiftness |
|
Potion of Swiftness Enhanced |
|
Potion of Swiftness Extended |
|
Potion of Water Breathing |
|
Potion of Water Breathing Extended |
|
Potion of Weakness |
|
Potion of Weakness Extended |
|
Potion of the Turtle Master |
|
Potion of the Turtle Master Enhanced |
|
Potion of the Turtle Master Extended |
|
Prismarine |
![]() |
Prismarine Slab |
![]() |
Prismarine Stairs |
![]() |
Prismarine Wall |
![]() |
Purple Firework Star |
|
Rainbow Bed |
|
Rainbow Carpet |
|
Rainbow Wool |
|
Raiser Armor Trim |
|
Raiser Armor Trim Smithing Template |
|
Recovery Compass |
追溯指针 |
Red Firework Star |
|
Red Key |
![]() |
Repeating Command Block |
![]() |
Rib Armor Trim |
|
Rib Armor Trim Smithing Template |
|
Sculk Sensor |
![]() |
Sculk Sensor BE |
![]() |
Sea Lantern |
![]() |
Sentry Armor Trim |
|
Sentry Armor Trim Smithing Template |
|
Shaper Armor Trim |
|
Shaper Armor Trim Smithing Template |
|
Silence Armor Trim |
|
Silence Armor Trim Smithing Template |
|
Skeleton Skull |
|
Snout Armor Trim |
|
Snout Armor Trim Smithing Template |
|
Soul Fire |
![]() |
Sparkler |
|
Spire Armor Trim |
|
Spire Armor Trim Smithing Template |
|
Splash Potion of Decay |
|
Splash Potion of Fire Resistance |
|
Splash Potion of Fire Resistance Extended |
|
Splash Potion of Harming |
|
Splash Potion of Harming Enhanced |
|
Splash Potion of Healing |
|
Splash Potion of Healing Enhanced |
|
Splash Potion of Invisibility |
|
Splash Potion of Invisibility Extended |
|
Splash Potion of Leaping |
|
Splash Potion of Leaping Enhanced |
|
Splash Potion of Leaping Extended |
|
Splash Potion of Luck |
|
Splash Potion of Night Vision |
|
Splash Potion of Night Vision Extended |
|
Splash Potion of Poison |
|
Splash Potion of Poison Enhanced |
|
Splash Potion of Poison Extended |
|
Splash Potion of Regeneration |
|
Splash Potion of Regeneration Enhanced |
|
Splash Potion of Regeneration Extended |
|
Splash Potion of Slow Falling |
|
Splash Potion of Slow Falling Extended |
|
Splash Potion of Slowness |
|
Splash Potion of Slowness Enhanced |
|
Splash Potion of Slowness Extended |
|
Splash Potion of Strength |
|
Splash Potion of Strength Enhanced |
|
Splash Potion of Strength Extended |
|
Splash Potion of Swiftness |
|
Splash Potion of Swiftness Enhanced |
|
Splash Potion of Swiftness Extended |
|
Splash Potion of Water Breathing |
|
Splash Potion of Water Breathing Extended |
|
Splash Potion of Weakness |
|
Splash Potion of Weakness Extended |
|
Splash Potion of the Turtle Master |
|
Splash Potion of the Turtle Master Enhanced |
|
Splash Potion of the Turtle Master Extended |
|
Splash Water Bottle |
|
Stone Axe |
|
Stone Hoe |
|
Stone Pickaxe |
|
Stone Shovel |
|
Stone Sword |
|
Stonecutter |
![]() |
Structure Block |
|
Structure Void |
|
Thick Lingering Potion |
|
Thick Potion |
|
Thick Splash Potion |
|
Tide Armor Trim |
|
Tide Armor Trim Smithing Template |
|
Tipped Arrow |
|
Totem of Undying |
|
Trident |
|
Trident BE |
|
Uncraftable Lingering Potion |
|
Uncraftable Potion |
|
Uncraftable Splash Potion |
|
Uncraftable Tipped Arrow |
|
Vex Armor Trim |
|
Vex Armor Trim Smithing Template |
|
Ward Armor Trim |
|
Ward Armor Trim Smithing Template |
|
Warped Hyphae |
![]() |
Warped Stem |
![]() |
Water |
![]() |
Water (compound) |
|
Water Bottle |
|
Wayfinder Armor Trim |
|
Wayfinder Armor Trim Smithing Template |
|
White Firework Star |
|
Wild Armor Trim |
|
Wild Armor Trim Smithing Template |
|
Wither Skeleton Skull |
|
Wooden Axe |
|
Wooden Button |
|
Wooden Hoe |
|
Wooden Pickaxe |
|
Wooden Shovel |
|
Wooden Sword |
|
Written Book |
![]() |
Yellow Firework Star |
|
Yellow Key |
![]() |
Zombie Head |
注:旗帜变种因过多图标而不被包含在内。
以上别称可以用来缩短常用物品的语句,例如展示所有原木变种,或者默认把某个物品单独加到某个名字中。
{{Slot|Any Log;Golden Apple}}
- 显示
使用别称时,可以在一个“部分”前添加修饰语,修饰语将作用到别称的每个元素上。
{{Slot|Any Log,4;[&oShiny Apple]Enchanted Golden Apple}}
- 显示
模组可以使用模组别名参数指定另外的别名表。
标题和描述
标题参数可以用来为所有展示的物品设置标题(将鼠标置于物品之上查看)。
{{Slot|Raw Porkchop; Cooked Porkchop|title=Smelly Porkchop}}
- 显示
要想隐藏标题,只需将其设置为none
:{{Slot|Raw Porkchop; Cooked Porkchop|title=none}}
- 显示
不过,第一个参数也可以用于为每个元素单独设置样式,并支持使用标准格式代码(需要使用&
而不是§
)。如果只想改变物品标题的格式而不改变其文本,则格式代码应当添加至第一个参数部分。
{{Slot|[&b]Diamond Sword}}
- 显示
第一个参数每个“部分”后的括号中用于附加说明,支持标准格式代码,且可以使用正斜杠(/)设定为多行。
{{Slot|[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}}
- 显示
子帧
子帧包含多个元素,每次轮到子帧展示时将展示它的一个元素。将若干个帧(或别称)用大括号括在一起以设定一个子帧。
与直接使用别称不同,使用别称时每次轮到别称将一次性展示别称的每个元素,而子帧每次只会展示它的一个元素。
在这里,一个别名(包含若干个帧)被包裹在一个子帧中,于是每次循环时将展示不同的木板变种:
{{Slot|{Any Planks};Iron Ingot}}
- 显示
对齐
对齐使用垂直对齐的CSS属性。例如,要从行中对齐:
Smells like{{Slot|Raw Porkchop|align=middle}}in here!
- 显示
默认值
默认值始终显示在图像下方。{{Slot|default=Grid layout Brewing Empty}}
{{Slot|Splash Mundane Potion|default=Grid layout Brewing Empty}}
- 显示
链接
要更改图像所有帧的链接,使用:{{Slot|Charcoal|link=煤炭#木炭}}
- 显示
要移除链接,只需将其设定为none
:{{Slot|Charcoal|link=none}}
- 显示
需要注意的是,这会保留标题。
可用图像
通常情况下,可以使用工具提示名称指代物品。
对于染料、染色物品和木材,有两种方式可以指代所有变种。如果想让每个栏使用各自独立的循环(而不需要是同类型的变种),使用Any [item]
;否则,使用Matching [item]
,所有含Matching的栏将同步它们的变种的切换(如木阶梯和木半砖将始终同步至同种木料)。
{{Slot|Any Planks}}{{Slot|Any wood Slab}}{{Slot|Any wood Stairs}} {{Slot|Matching Wood Planks}}{{Slot|Matching Wood Slab}}{{Slot|Matching wood Stairs}}
显示
大多数含耐久条的物品都以Damaged [item]
的形式出现。
前往Template:InvSprite查看完整的物品列表。
其他模板
这些模板将此模板实现到模仿Minecraft中的GUI的外观。因此,它们具有与此模板类似的功能。
{{Crafting Table}}
{{Inventory Table}}
{{Furnace}}
{{Brewing Stand}}
{{Stonecutter}}
{{Loom}}
{{Grindstone}}
{{Hotbar}}
{{Inventory}}
{{Inventory slot}}
- Module:UI