Template:InvSprite/doc: Difference between revisions
No edit summary |
m 35 revisions imported |
||
(29 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
{{ | <noinclude>{{Documentation header}} | ||
{{lua| | </noinclude>{{lua|SpriteFile}} | ||
This template displays an inventory image. | This template displays an inventory image. | ||
Line 11: | Line 9: | ||
! Usage | ! Usage | ||
|- | |- | ||
| {{p| | | {{p|name}} | ||
| Sets the image. | | Sets the image. | ||
|- | |- | ||
Line 19: | Line 17: | ||
| {{p|text}} | | {{p|text}} | ||
| If set, the value is displayed as text after the image. | | If set, the value is displayed as text after the image. | ||
|- | |||
| {{p|scale}} | |||
| Sets the scale of the image. If unset the default parameter is <code>1</code>. | |||
|} | |} | ||
== Example == | == Example == | ||
{{t|InvSprite|Grass Block}} | |||
{{InvSprite|Grass Block}} | {{InvSprite|Grass Block}} | ||
== | == Full list == | ||
Here is a full list of entities: | |||
<div class="js-spritedoc" data-sprite-name="Invicon" data-sprite-keepcase="1" data-sprite-size="32">[[:Category:InvSprite files]]</div> | |||
=== Animated icons === | |||
See [[:Category:Animated inventory icons]] for a list of animated icons.<br>They can be used like the static icons above, just omit the <code>Invslot</code> prefix and extension from the file name. | |||
== See also == | == See also == | ||
* {{tl|InvLink}} | |||
* {{tl|Inventory slot}} | * {{tl|Inventory slot}} | ||
{{Sprite see also}} | {{Sprite see also}} | ||
Line 34: | Line 42: | ||
<includeonly><!-- Template categories/interwiki --> | <includeonly><!-- Template categories/interwiki --> | ||
[[Category:Sprite templates]] | [[Category:Sprite templates]] | ||
[[de:Vorlage:InvSprite]] | |||
[[es:Plantilla:InvSprite]] | |||
[[fr:Modèle:InvSprite]] | [[fr:Modèle:InvSprite]] | ||
[[ja:テンプレート:InvSprite]] | |||
[[ko:틀:InvSprite]] | |||
[[pt:Predefinição:InvSprite]] | |||
[[ru:Шаблон:ИнвСпрайт]] | [[ru:Шаблон:ИнвСпрайт]] | ||
[[th:แม่แบบ:InvSprite]] | |||
[[uk:Шаблон:ІнвСпрайт]] | |||
[[zh:Template:InvSprite]] | |||
</includeonly> | </includeonly> | ||
<noinclude><!-- Documentation categories/interwiki --> | <noinclude><!-- Documentation categories/interwiki --> | ||
[[de:Vorlage:InvSprite/Dokumentation]] | |||
[[es:Plantilla:InvSprite/doc]] | |||
[[fr:Modèle:InvSprite/doc]] | [[fr:Modèle:InvSprite/doc]] | ||
[[ja:テンプレート:InvSprite/doc]] | |||
[[ko:틀:InvSprite/doc]] | |||
[[pt:Predefinição:InvSprite/doc]] | |||
[[ru:Шаблон:ИнвСпрайт/док]] | [[ru:Шаблон:ИнвСпрайт/док]] | ||
[[th:แม่แบบ:InvSprite/doc]] | |||
[[uk:Шаблон:ІнвСпрайт/док]] | |||
[[zh:Template:InvSprite/doc]] | |||
</noinclude> | </noinclude> |