Template:Item infobox: Difference between revisions

no edit summary
imported>SunSeeker02
No edit summary
imported>Denatidum
No edit summary
 
(63 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div style="float:right;">
<includeonly><div style="float:right; margin-left: 20px;">
<div class="infobox out">
<div class="infobox out">
<span class="shadow c-f">{{{title|{{PAGENAME}}}}}</span>
<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: {{{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|{{{renewable|{{{stackable|{{{tool|}}}}}}}}}}}}}}} |
{{#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>{{{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>
| }}
            {{#if: {{{restores|}}} |
<tr>
<th>Restores</th>
<td>{{hp|{{{restores|}}}}}</td>
</tr>
</tr>
| }}
| }}
Line 47: Line 65:
</div>
</div>
| }}
| }}
</div></includeonly><noinclude>{{Item infobox|title=Steel Ingot|image={{ItemToImageMap|key=Steel Ingot|width=160|height=160}}|item=Steel Ingot|description=Iron and Nether Coal fused into a strong alloy.|durability=100|renewable=n|stackable=64|tool={{InvSprite|Wooden Pickaxe}}}}</noinclude>
</div></includeonly><noinclude>
 
{{Documentation}}
[[Category:Pages using DynamicPageList3 dplvar parser function]]
<!-- Put categories on the documentation page -->
</noinclude>
Anonymous user