Template:Item infobox: Difference between revisions
imported>Ttv pedro270707 mNo edit summary |
imported>Denatidum No edit summary |
||
(35 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="float:right; margin-left: 20px;"> | <includeonly><div style="float:right; margin-left: 20px;"> | ||
<div class="infobox out"> | <div class="infobox out"> | ||
<span class="shadow c- | <span class="shadow c-0">{{{title|{{PAGENAME}}}}}</span> | ||
</div> | </div> | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<div class="infobox in"> | <div class="infobox in"> | ||
{{{image|}}} | {{animated|160px|{{{image|}}}}} | ||
</div> | </div> | ||
| }} | | }} | ||
{{#if: {{{description|{{{item|{{{durability|{{{ | {{#if: {{{description|}}}{{{item|}}}{{{durability|}}}{{{tool|}}}{{{renewable|}}}{{{stackable|}}}{{{restores|}}} | | ||
<div class="infobox out"> | <div class="infobox out"> | ||
{{#if: {{{item|}}} | {{Inventory slot|item= | {{#if: {{{item|}}} | {{#arraydefine:items|{{{item|}}}|;}}{{#arrayprint:items||@item@|{{Inventory slot|item=@item@|link=n}}}}}} | ||
{{#if: {{{description|{{{durability|{{{ | {{#if: {{{description|}}}{{{durability|}}}{{{tool|}}}{{{renewable|}}}{{{stackable|}}}{{{restores|}}} | | ||
<table class="infobox-table"> | <table class="infobox-table"> | ||
{{#if: {{{description|}}} | | {{#if: {{{description|}}} | | ||
Line 23: | Line 23: | ||
<th>Durability</th> | <th>Durability</th> | ||
<td>{{{durability|}}}</td> | <td>{{{durability|}}}</td> | ||
</tr> | |||
| }} | |||
{{#if: {{{blastresistance|}}} | | |||
<tr> | |||
<th>Blast resistance</th> | |||
<td>{{{blastresistance|}}}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{hardness|}}} | | |||
<tr> | |||
<th>Hardness</th> | |||
<td>{{{hardness|}}}</td> | |||
</tr> | </tr> | ||
| }} | | }} | ||
{{#if: {{{tool|}}} | | {{#if: {{{tool|}}} | | ||
<tr> | <tr> | ||
<th>Tool(s)</th> | <th>[[Tool|Tool(s)]]</th> | ||
<td>{{Inventory slot|item={{{tool|}}}}}</td> | <td>{{Inventory slot|item={{{tool|}}}}}</td> | ||
</tr> | </tr> | ||
Line 34: | Line 46: | ||
<tr> | <tr> | ||
<th>Renewable</th> | <th>Renewable</th> | ||
<td>{{#ifeq: {{{renewable|}}} | y | Yes | {{#ifeq: {{{renewable|}}} | n | No | {{{renewable|}}} }} }}</td> | <td>{{#ifeq: {{bl|{{{renewable|}}}}} | y | Yes | {{#ifeq: {{bl|{{{renewable|}}}}} | n | No | {{{renewable|}}} }} }}</td> | ||
</tr> | </tr> | ||
| }} | | }} | ||
Line 40: | Line 52: | ||
<tr> | <tr> | ||
<th>Stackable</th> | <th>Stackable</th> | ||
<td>{{#iferror: {{#expr: {{{stackable|}}} }} | {{{stackable|}}} | {{#ifexpr: {{{stackable|}}} < 2 | No | Yes ({{#expr: {{{stackable|}}} }}) }} }}</td> | <td>{{#iferror: {{#expr: {{{stackable|}}} }} | {{#ifeq: {{bl|{{{stackable|}}}}} | n | No | {{{stackable|}}} }} | {{#ifexpr: {{{stackable|}}} < 2 | No | Yes ({{#expr: {{{stackable|}}} }}) }} }}</td> | ||
</tr> | </tr> | ||
| }} | | }} | ||
Line 46: | Line 58: | ||
<tr> | <tr> | ||
<th>Restores</th> | <th>Restores</th> | ||
<td>{{ | <td>{{hp|{{{restores|}}}}}</td> | ||
</tr> | </tr> | ||
| }} | | }} |
Latest revision as of 00:12, 5 September 2023
[view | | | ]Documentation
Steel Ingot
Description | Iron and Nether Coal fused into a strong alloy. |
---|---|
Durability | 100 |
Blast resistance | 100 |
Hardness | 200 |
Tool(s) | |
Renewable | No |
Stackable | Yes (64) |
Restores | 8 ( |
This template allows for the creation of item infoboxes. The example on the side is created with {{Item infobox|title=Steel Ingot;Iron Ingot|image={{ItemToImageMap|key=Steel Ingot|width=160|height=160}}|item=Steel Ingot;Iron Ingot|description=Iron and Nether Coal fused into a strong alloy.|blastresistance=100|durability=100|hardness=200|renewable=n|stackable=64|tool=Wooden Pickaxe;Stone Pickaxe;Iron Pickaxe;Golden Pickaxe;Diamond Pickaxe;Steel Pickaxe;Shears|restores=8}}
.
Parameter | Description | Defaults to |
---|---|---|
title |
The title of the infobox. | {{{PAGENAME}}}
|
image |
Previews the main image of the infobox. | |
item |
Previews the display item. To preview multiple items, join the items like this: ItemA;ItemB . |
|
description |
Specifies the in-game description for that item. To view item descriptions in-game, hover over the item while holding CTRL . |
|
durability |
Specifies the durability of the item. Not necessary if the item is not a tool or weapon. | |
blastresistance |
Specifies the blast resistance of the item. Not necessary if the item isn't a block. | |
hardness |
Specifies the hardness of the item. Not necessary if the item isn't a block. | |
renewable |
Specifies whether the item is renewable or not. If the item is renewable, use y for the parameter's value. If not, use n. | |
stackable |
Specifies the item's ability to stack with the same items. If the item is not stackable, use 1 as the parameter's value. | |
tool |
Specifies what tool is need to harvest the item. Not necessary if the item isn't placeable or doesn't need any tools to be harvested unless necessary to do so. To preview multiple tools, join the items like this: ItemA;ItemB . |
|
stackable |
Specifies the item's ability to stack with the same items. If the item is not stackable, use 1 as the parameter's value. | |
restores |
Specifies the hearts of health the item restores for the player. Not necessary if the item is not a food item. |
[view | | | ]The above documentation is transcluded from Template:Item infobox/doc.