Template:ItemSprite/doc: Difference between revisions
imported>Ttv pedro270707 (Created page with "This template displays a block sprite from the following sprite sheet: thumb|The spritesheet. == Arguments == {| class="wikitable" ! Argument !! Value !! Note |- | <code>1</code> || <code>ID</code> || The item's name to be used as an ID. |- | <code>link</code> || <code>y</code>, <code>n</code>, <code>link</code> || If set to <code>y</code>, it will use the item's ID. |- | <code>name</code> || <code>y</code>, <code>n</code>, <code>name</code> ||...") |
imported>Ttv pedro270707 mNo edit summary |
||
| Line 1: | Line 1: | ||
This template displays | This template displays an item sprite from the following sprite sheet: | ||
[[File:ItemSprite.png|thumb|The spritesheet.]] | [[File:ItemSprite.png|thumb|The spritesheet.]] | ||
| Line 38: | Line 38: | ||
{{ItemSprite|Diamond|name=y|link=Steel Ingot}} | {{ItemSprite|Diamond|name=y|link=Steel Ingot}} | ||
== See also == | |||
* {{tl|Template:BlockSprite}} | |||
* {{tl|Template:InvSprite}} | |||
Revision as of 22:26, 13 March 2023
This template displays an item sprite from the following sprite sheet:

Arguments
| Argument | Value | Note |
|---|---|---|
1 |
ID |
The item's name to be used as an ID. |
link |
y, n, link |
If set to y, it will use the item's ID.
|
name |
y, n, name |
The name included after the block. If set to y, it will use the item's ID.
|
Usage
{{ItemSprite|Diamond}} gives:
{{ItemSprite|Diamond|link=y}} gives:
{{ItemSprite|Diamond|link=Steel Ingot}} gives:
{{ItemSprite|Diamond|name=Awesome block|link=Steel Ingot}} gives:
{{ItemSprite|Diamond|name=Awesome block}} gives:
Awesome item
{{ItemSprite|Diamond|name=y|link=Steel Ingot}} gives:
See also
{{BlockSprite}}{{InvSprite}}