<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://sls.wiki/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AInventory_slot%2Fdoc</id>
	<title>模板:Inventory slot/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://sls.wiki/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AInventory_slot%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;action=history"/>
	<updated>2026-05-03T18:55:25Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=970&amp;oldid=prev</id>
		<title>2022年10月3日 (一) 04:59 Kesager</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=970&amp;oldid=prev"/>
		<updated>2022-10-03T04:59:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;amp;diff=970&amp;amp;oldid=932&quot;&gt;显示更改&lt;/a&gt;</summary>
		<author><name>Kesager</name></author>
	</entry>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=932&amp;oldid=prev</id>
		<title>Kesager：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=932&amp;oldid=prev"/>
		<updated>2022-10-03T03:09:40Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年10月3日 (一) 11:09的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff:1.41:old-371:rev-932 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kesager</name></author>
	</entry>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=371&amp;oldid=prev</id>
		<title>Disy：​清空全部内容</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=371&amp;oldid=prev"/>
		<updated>2022-08-06T13:02:47Z</updated>

		<summary type="html">&lt;p&gt;清空全部内容&lt;/p&gt;
&lt;a href=&quot;https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;amp;diff=371&amp;amp;oldid=342&quot;&gt;显示更改&lt;/a&gt;</summary>
		<author><name>Disy</name></author>
	</entry>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=342&amp;oldid=prev</id>
		<title>Disy：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=342&amp;oldid=prev"/>
		<updated>2022-08-06T12:27:15Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2022年8月6日 (六) 20:27的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff:1.41:old-931:rev-342 --&gt;
&lt;/table&gt;</summary>
		<author><name>Disy</name></author>
	</entry>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=931&amp;oldid=prev</id>
		<title>BGMW&gt;487789834：​机器人：更新页面</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=931&amp;oldid=prev"/>
		<updated>2021-03-09T07:17:10Z</updated>

		<summary type="html">&lt;p&gt;机器人：更新页面&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2021年3月9日 (二) 15:17的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff:1.41:old-341:rev-931 --&gt;
&lt;/table&gt;</summary>
		<author><name>BGMW&gt;487789834</name></author>
	</entry>
	<entry>
		<id>https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=341&amp;oldid=prev</id>
		<title>2021年2月21日 (日) 02:03 minecraftwiki&gt;SteveZihang</title>
		<link rel="alternate" type="text/html" href="https://sls.wiki/index.php?title=%E6%A8%A1%E6%9D%BF:Inventory_slot/doc&amp;diff=341&amp;oldid=prev"/>
		<updated>2021-02-21T02:03:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation header}}&lt;br /&gt;
{{shortcut|Slot|Grid}}&lt;br /&gt;
{{lua|data=Inventory slot/Aliases}}&lt;br /&gt;
Inventory slot模板用于创建模仿游戏内物品栏的图形界面元素。图像主要取自{{tl|InvSprite}}，若指定项目未被找到，模板会回落至独立图像，名称格式为&amp;lt;code&amp;gt;Grid &amp;#039;&amp;#039;&amp;lt;物品名&amp;gt;&amp;#039;&amp;#039;.png&amp;lt;/code&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
== 用法 ==&lt;br /&gt;
所有的输入都是可选的：&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Slot&lt;br /&gt;
|[Title]Mod:Name,Amount[Description]; [Title2]Mod2:Name2,Amount2[Description2]; ...&lt;br /&gt;
|mod=Default mod (useful for animations and layout templates)&lt;br /&gt;
|default=Image always shown under the main image&lt;br /&gt;
|align=Vertical Alignment&lt;br /&gt;
|link=Link override&lt;br /&gt;
|title=Text show on mouseover&lt;br /&gt;
|class=Adds additional classes to the .invslot class&lt;br /&gt;
|style=Adds styling to the .invslot&lt;br /&gt;
|imgclass=Adds additional classes to the .invslot-item&lt;br /&gt;
|numstyle=Adds styling to the stack number&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 部分 ===&lt;br /&gt;
The first parameter is a special parameter consisting of various &amp;quot;parts&amp;quot; grouped together in frames (delimited by &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;) which will be display one after another if JavaScript is enabled. Every part is optional, but without &amp;quot;name&amp;quot;, won&amp;#039;t do anything.&lt;br /&gt;
&lt;br /&gt;
==== 示例 ====&lt;br /&gt;
To display an inventory item of &amp;quot;Raw Porkchop&amp;quot; with an stack size of 20 you would put: {{t|Slot|Raw Porkchop,20}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|Raw Porkchop,20}}&lt;br /&gt;
&lt;br /&gt;
An amount of 2–999 is supported, anything else will not be displayed.&lt;br /&gt;
&lt;br /&gt;
=== 别称 ===&lt;br /&gt;
{{#invoke: Inventory slot/Aliases/Table | table }}&lt;br /&gt;
注：旗帜变种因过多图标而不被包含在内。&lt;br /&gt;
&lt;br /&gt;
The above aliases can be used to shorten common items, such as all wood blocks or adding parts to certain names by default.&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|Any Log;Golden Apple}}&lt;br /&gt;
&lt;br /&gt;
; 显示&lt;br /&gt;
{{Slot|Any Log;Golden Apple}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using the alias, parts can be added which will override any parts in the alias.&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|Any Log,4;[&amp;amp;oShiny Apple]Enchanted Golden Apple}}&lt;br /&gt;
&lt;br /&gt;
; 显示&lt;br /&gt;
{{Slot|Any Log,4;[&amp;amp;oShiny Apple]Enchanted Golden Apple}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mods can specify an additional aliases table using the modaliases parameter.&lt;br /&gt;
&lt;br /&gt;
=== 标题和描述 ===&lt;br /&gt;
The title parameter can be used to set a title for all frames.&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|Raw Porkchop; Cooked Porkchop|title{{=}}Smelly Porkchop}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|Raw Porkchop; Cooked Porkchop|title=Smelly Porkchop}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To remove the title, set it to &amp;quot;none&amp;quot;: {{t|Slot|Raw Porkchop; Cooked Porkchop|title{{=}}none}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|Raw Porkchop; Cooked Porkchop|title=none}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, the first bracketed text can be used to specify a title for each frame individually, and also supports standard formatting codes using &amp;lt;code&amp;gt;&amp;amp;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;§&amp;lt;/code&amp;gt;. If the title only contains formatting codes and no actual text, the formatting will be added to the normal title.&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|[&amp;amp;b]Diamond Sword}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|[&amp;amp;b]Diamond Sword}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The last bracketed text can be used to specify a description, this also supports standard formatting codes, and can also have multiple lines by using forward slashes (/).&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|[&amp;amp;b&amp;amp;oExcalibur]Iron Sword[&amp;amp;7Smite V/Fire Aspect I//&amp;amp;9+6 Attack Damage]}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|[&amp;amp;b&amp;amp;oExcalibur]Iron Sword[&amp;amp;7Smite V/Fire Aspect I//&amp;amp;9+6 Attack Damage]}}&lt;br /&gt;
&lt;br /&gt;
=== 子框架 ===&lt;br /&gt;
&lt;br /&gt;
Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces.&lt;br /&gt;
&lt;br /&gt;
Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle:&lt;br /&gt;
&lt;br /&gt;
{{t|Slot|{Any Planks};Iron Ingot}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|{Any Planks};Iron Ingot}}&lt;br /&gt;
&lt;br /&gt;
=== 对齐 ===&lt;br /&gt;
Align uses the [http://www.w3.org/wiki/CSS/Properties/vertical-align vertical-align] CSS property. For example to align to the middle:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Smells like{{Slot|Raw Porkchop|align=middle}}in here!&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
;显示&lt;br /&gt;
Smells like{{Slot|Raw Porkchop|align=middle}}in here!&lt;br /&gt;
&lt;br /&gt;
=== 默认 ===&lt;br /&gt;
Default is always shown and is placed under the image. {{t|Slot|default{{=}}Grid layout Brewing Empty}}{{t|Slot|Splash Mundane Potion|default{{=}}Grid layout Brewing Empty}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|default=Grid layout Brewing Empty}}{{Slot|Splash Mundane Potion|default=Grid layout Brewing Empty}}&lt;br /&gt;
&lt;br /&gt;
=== 链接 ===&lt;br /&gt;
To change the link for all frames from the image name put: {{t|Slot|Charcoal|link{{=}}煤炭#木炭}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|Charcoal|link=煤炭#木炭}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To remove the link, set link to none: {{t|Slot|Charcoal|link{{=}}none}}&lt;br /&gt;
;显示&lt;br /&gt;
{{Slot|Charcoal|link=none}}&lt;br /&gt;
&lt;br /&gt;
Note that this retains the title.&lt;br /&gt;
&lt;br /&gt;
== 可用图像 ==&lt;br /&gt;
&lt;br /&gt;
In general, an item can be referred to by its tooltip name.&lt;br /&gt;
&lt;br /&gt;
For dyes, dyed items and wood, there are two shortcuts to refer to all colors or tree species. Use e.g. &amp;quot;Any Wood Planks&amp;quot; if the item appears in more than one input slot and doesn&amp;#039;t have to be the same color in all slots. Different copies of the same &amp;quot;Any [item]&amp;quot; will switch randomly and separately among the variants. Otherwise, use &amp;quot;Matching [item]&amp;quot;; all slots containing a &amp;quot;Matching&amp;quot; item will cycle through the species or dye colors in unison, even if they&amp;#039;re not the same item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Slot|Any Planks}}{{Slot|Any wood Slab}}{{Slot|Any wood Stairs}}&lt;br /&gt;
&lt;br /&gt;
{{Slot|Matching Wood Planks}}{{Slot|Matching Wood Slab}}{{Slot|Matching wood Stairs}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;shows&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{Slot|Any Planks}}{{Slot|Any wood Slab}}{{Slot|Any wood Stairs}}&lt;br /&gt;
&lt;br /&gt;
{{Slot|Matching Planks}}{{Slot|Matching wood Slab}}{{Slot|Matching wood Stairs}}&lt;br /&gt;
&lt;br /&gt;
Most items with a durability bar exist as &amp;quot;Damaged [item]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
See [[Template:InvSprite]] for the full list of items.&lt;br /&gt;
&lt;br /&gt;
== 其他模板 ==&lt;br /&gt;
&lt;br /&gt;
These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template.&lt;br /&gt;
{{UI see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- 模板分类/跨语言链接 --&amp;gt;&lt;br /&gt;
[[Category:图片模板]]&lt;br /&gt;
[[Category:物品栏模板]]&lt;br /&gt;
[[en:Template:Inventory slot]]&lt;br /&gt;
[[es:Plantilla:Inventory slot]]&lt;br /&gt;
[[fr:Modèle:Case inventaire]]&lt;br /&gt;
[[pt:Predefinição:Compartimento de inventário]]&lt;br /&gt;
[[ru:Шаблон:Инвентарный слот]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- 文档分类/跨语言链接 --&amp;gt;&lt;br /&gt;
[[en:Template:Inventory slot/doc]]&lt;br /&gt;
[[es:Plantilla:Inventory slot/doc]]&lt;br /&gt;
[[fr:Modèle:Case inventaire/doc]]&lt;br /&gt;
[[pt:Predefinição:Compartimento de inventário/doc]]&lt;br /&gt;
[[ru:Шаблон:Инвентарный слот/док]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>minecraftwiki&gt;SteveZihang</name></author>
	</entry>
</feed>