Anonymous user
Template:Item infobox: Difference between revisions
no edit summary
imported>Denatidum No edit summary |
imported>Denatidum No edit summary |
||
(48 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: {{{ | {{#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> | ||
| }} | | }} | ||
{{#if: {{{restores|}}} | | |||
<tr> | <tr> | ||
<th>Restores</th> | <th>Restores</th> | ||
<td>{{ | <td>{{hp|{{{restores|}}}}}</td> | ||
</tr> | </tr> | ||
| }} | | }} | ||
Line 57: | Line 69: | ||
<!-- Put categories on the documentation page --> | <!-- Put categories on the documentation page --> | ||
</noinclude> | </noinclude> | ||