模板:InvSprite/doc:修订间差异

来自The Land of StarLight
minecraftwiki>Anterdc99
(撤销Anterdc99讨论)的版本582438)
(创建页面,内容为“{{documentation header}} {{lua|Sprite|data=InvSprite}} 此模板从下列Sprite表中显示物品栏Sprite: thumb|Sprite表。 {{Sprite/Parameters}} == 示例 == <code><nowiki>{{InvSprite|Grass Block}}</nowiki></code><br> {{InvSprite|Grass Block}} {{LoadPage|Template:InvSprite/doc/可用的图像|可用的图像}}”)
第11行: 第11行:


{{LoadPage|Template:InvSprite/doc/可用的图像|可用的图像}}
{{LoadPage|Template:InvSprite/doc/可用的图像|可用的图像}}
== 另见 ==
* {{tl|Inventory slot}}
{{Sprite see also}}
<includeonly><!-- Template categories/interwiki -->
[[Category:精灵模板]]
[[de:Vorlage:InvSprite]]
[[en:Template:InvSprite]]
[[fr:Modèle:InvSprite]]
[[ja:テンプレート:InvSprite]]
[[pt:Predefinição:InvSprite]]
[[ru:Шаблон:ИнвСпрайт]]
</includeonly>
<noinclude><!-- Documentation categories/interwiki -->
[[de:Vorlage:InvSprite/Dokumentation]]
[[en:Template:InvSprite/doc]]
[[fr:Modèle:InvSprite/doc]]
[[ja:テンプレート:InvSprite/doc]]
[[pt:Predefinição:InvSprite/doc]]
[[ru:Шаблон:ИнвСпрайт/док]]
</noinclude>

2022年8月6日 (六) 18:46的版本

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

此模板使用了模块:Sprite,以及数据模块模块:InvSprite
这些脚本均使用Lua编写。更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

此模板从下列Sprite表中显示物品栏Sprite:

文件:InvSprite.png
Sprite表。

参数

名称 用途
{{{1}}} 设置Sprite。此参数内的空格用连字符代替,字母小写。
值可以是一个名字或一个数字,虽然名字更好。
{{{link}}} 设置Sprite和可选文本的链接。如果未设置或设置为none,则不添加任何链接
同时支持内部和外部链接。
{{{text}}} 如果设置,则该值在Sprite后显示为文本。

示例

{{InvSprite|Grass Block}}

可用的图像