Template:Inventory slot: Difference between revisions
imported>Ttv pedro270707 mNo edit summary |
imported>Ttv pedro270707 mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="inventory-slot minecraft-item" style="width: {{{width|32px}}}; height: {{{height|32px}}};" {{#if: {{{1|}}} | data-mctitle="{{{1|}}}" | }}>{{#if: {{{1|}}} | {{ItemToImageMap|key={{{1|}}}|width=32|height=32|link={{{link|}}}}} | }}</div></includeonly><noinclude> | <includeonly><div class="inventory-slot minecraft-item" style="width: {{{width|32px}}}; height: {{{height|32px}}};" {{#if: {{{1|}}} | data-mctitle="{{{1|}}}" | }}>{{#if: {{{1|}}} | {{ItemToImageMap|key={{{1|}}}|width=32|height=32|link={{{link|}}}}} | }}</div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Put categories | <!-- Put categories on the documentation page --> | ||
</noinclude> | </noinclude> |
Revision as of 18:10, 5 March 2023
[view | | | ]Documentation
This template allows for the creation of Minecraft inventory slots. The slots can either be empty or contain an item. They can also be rescaled.
Arguments
Argument | Default value | Note |
---|---|---|
item |
None | Defines the item that should be shown on the slot. By default, no item is displayed. |
width |
32 |
Sets the width of the slot in pixels. Note that only the item area is counted, and not the border. |
height |
32 |
Sets the height of the slot in pixels. Note that only the item area is counted, and not the border. |
link |
y if the item is not the page's name, n otherwise |
Sets the link. Can either be a boolean (y or n ) or the name of a page.
|
Usage
{{Inventory slot}}
gives:
{{Inventory slot|item=Steel Ingot}}
gives:
{{Inventory slot|item=Steel Ingot|width=36|height=36}}
gives:
{{Inventory slot|item=Steel Ingot|link=n}}
gives:
{{Inventory slot|item=Steel Ingot|link=Gold Nugget}}
gives:
[view | | | ]The above documentation is transcluded from Template:Inventory slot/doc.