本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知)
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明)
模板:Inventory slot/doc
此模板使用了模块: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 TrimMatching Armor Trim |
|
Any Armor Trim Smithing TemplateMatching Armor Trim Smithing Template |
|
Any BalloonMatching Balloon |
|
Any BannerMatching Banner |
|
Any BedMatching Bed |
|
Any BlackstoneMatching Blackstone |
|
Any BoatMatching Boat |
|
Any Boat with ChestMatching Boat with Chest |
|
Any CampfireMatching Campfire |
|
Any CandleMatching Candle |
|
Any CarpetMatching Carpet |
|
Any Cobblestone or BlackstoneMatching Cobblestone or Blackstone |
|
Any Colored DyeMatching Colored Dye |
|
Any ConcreteMatching Concrete |
|
Any Concrete PowderMatching Concrete Powder |
|
Any CoralMatching Coral |
|
Any Coral BlockMatching Coral Block |
|
Any Coral FanMatching Coral Fan |
|
Any Dead CoralMatching Dead Coral |
|
Any Dead Coral BlockMatching Dead Coral Block |
|
Any Dead Coral FanMatching Dead Coral Fan |
|
Any DyeMatching Dye |
|
Any Dyed BedMatching Dyed Bed |
|
Any Dyed CandleMatching Dyed Candle |
|
Any Dyed CarpetMatching Dyed Carpet |
|
Any Dyed TerracottaMatching Dyed Terracotta |
|
Any Dyed WoolMatching Dyed Wool |
|
Any Fence GateMatching Fence Gate |
|
Any Firework StarMatching Firework Star |
|
Any FlowerMatching Flower |
|
Any FungiMatching Fungi |
|
Any FungusMatching Fungus |
|
Any Glazed TerracottaMatching Glazed Terracotta |
|
Any Hanging SignMatching Hanging Sign |
|
Any Hardened Stained GlassMatching Hardened Stained Glass |
|
Any Hardened Stained Glass PaneMatching Hardened Stained Glass Pane |
|
Any HyphaeMatching Hyphae |
|
Any LanternMatching Lantern |
|
Any Lingering PotionMatching Lingering Potion |
|
Any LogMatching Log |
|
Any Log or StemMatching Log or Stem |
|
Any MushroomMatching Mushroom |
|
Any Nether Fence GateMatching Nether Fence Gate |
|
Any Nether Hanging SignMatching Nether Hanging Sign |
|
Any Nether PlanksMatching Nether Planks |
|
Any Nether SignMatching Nether Sign |
|
Any Nether wood ButtonMatching Nether wood Button |
|
Any Nether wood DoorMatching Nether wood Door |
|
Any Nether wood FenceMatching Nether wood Fence |
|
Any Nether wood Pressure PlateMatching Nether wood Pressure Plate |
|
Any Nether wood SlabMatching Nether wood Slab |
|
Any Nether wood StairsMatching Nether wood Stairs |
|
Any Nether wood TrapdoorMatching Nether wood Trapdoor |
|
Any NyliumMatching Nylium |
|
Any OreMatching Ore |
|
Any Overworld Fence GateMatching Overworld Fence Gate |
|
Any Overworld Hanging SignMatching Overworld Hanging Sign |
|
Any Overworld PlanksMatching Overworld Planks |
|
Any Overworld SignMatching Overworld Sign |
|
Any Overworld wood ButtonMatching Overworld wood Button |
|
Any Overworld wood DoorMatching Overworld wood Door |
|
Any Overworld wood FenceMatching Overworld wood Fence |
|
Any Overworld wood Pressure PlateMatching Overworld wood Pressure Plate |
|
Any Overworld wood SlabMatching Overworld wood Slab |
|
Any Overworld wood StairsMatching Overworld wood Stairs |
|
Any Overworld wood TrapdoorMatching Overworld wood Trapdoor |
|
Any PlanksMatching Planks |
|
Any PotionMatching Potion |
|
Any Pottery SherdMatching Pottery Sherd |
|
Any PrismarineMatching Prismarine |
|
Any Purpur BlockMatching Purpur Block |
|
Any Quartz BlockMatching Quartz Block |
|
Any Red SandstoneMatching Red Sandstone |
|
Any RootsMatching Roots |
|
Any SandstoneMatching Sandstone |
|
Any SaplingMatching Sapling |
|
Any ShieldMatching Shield |
|
Any Shulker BoxMatching Shulker Box |
|
Any SignMatching Sign |
|
Any Smithing TemplateMatching Smithing Template |
|
Any Soul SandMatching Soul Sand |
|
Any Splash PotionMatching Splash Potion |
|
Any Stained GlassMatching Stained Glass |
|
Any Stained Glass PaneMatching Stained Glass Pane |
|
Any StemMatching Stem |
|
Any StoneMatching Stone |
|
Any Stone BricksMatching Stone Bricks |
|
Any Stone ButtonMatching Stone Button |
|
Any Stone Pressure PlateMatching Stone Pressure Plate |
|
Any Stone SlabMatching Stone Slab |
|
Any Stone StairsMatching Stone Stairs |
|
Any Stripped HyphaeMatching Stripped Hyphae |
|
Any Stripped LogMatching Stripped Log |
|
Any Stripped Log or StemMatching Stripped Log or Stem |
|
Any Stripped StemMatching Stripped Stem |
|
Any Stripped WoodMatching Stripped Wood |
|
Any Stripped Wood or HyphaeMatching Stripped Wood or Hyphae |
|
Any Tipped ArrowMatching Tipped Arrow |
|
Any TorchMatching Torch |
|
Any TulipMatching Tulip |
|
Any WallMatching Wall |
|
Any WoodMatching Wood |
|
Any Wood or HyphaeMatching Wood or Hyphae |
|
Any WoolMatching Wool |
|
Any axeMatching axe |
|
Any chainmail armorMatching chainmail armor |
|
Any diamond armorMatching diamond armor |
|
Any diamond toolsMatching diamond tools |
|
Any fuelMatching fuel |
|
Any golden armorMatching golden armor |
|
Any golden toolsMatching golden tools |
|
Any hoeMatching hoe |
|
Any iron armorMatching iron armor |
|
Any iron toolsMatching iron tools |
|
Any leather armorMatching leather armor |
|
Any netherite armorMatching netherite armor |
|
Any netherite toolsMatching netherite tools |
|
Any pickaxeMatching pickaxe |
|
Any shovelMatching shovel |
|
Any stone toolsMatching stone tools |
|
Any stone-tier blockMatching stone-tier block |
|
Any swordMatching sword |
|
Any wood ButtonMatching wood Button |
|
Any wood DoorMatching wood Door |
|
Any wood FenceMatching wood Fence |
|
Any wood Pressure PlateMatching wood Pressure Plate |
|
Any wood SlabMatching wood Slab |
|
Any wood StairsMatching wood Stairs |
|
Any wood TrapdoorMatching wood Trapdoor |
|
Any wooden toolsMatching 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

沪公网安备 31011002002714 号