Anonymous user
Template:Item infobox: Difference between revisions
no edit summary
imported>Ttv pedro270707 mNo edit summary |
imported>Denatidum No edit summary |
||
(72 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- | <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|}}} | | {{#if: {{{description|}}}{{{item|}}}{{{durability|}}}{{{tool|}}}{{{renewable|}}}{{{stackable|}}}{{{restores|}}} | | ||
<div class="infobox out"> | <div class="infobox out"> | ||
{{Inventory slot|{{{item|}}}}} | {{#if: {{{item|}}} | {{#arraydefine:items|{{{item|}}}|;}}{{#arrayprint:items||@item@|{{Inventory slot|item=@item@|link=n}}}}}} | ||
{{#if: {{{description|}}}{{{durability|}}}{{{tool|}}}{{{renewable|}}}{{{stackable|}}}{{{restores|}}} | | |||
<table class="infobox-table"> | |||
{{#if: {{{description|}}} | | |||
<tr> | |||
<th>Description</th> | |||
<td>{{{description|}}}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{durability|}}} | | |||
<tr> | |||
<th>Durability</th> | |||
<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> | |||
| }} | |||
{{#if: {{{tool|}}} | | |||
<tr> | |||
<th>[[Tool|Tool(s)]]</th> | |||
<td>{{Inventory slot|item={{{tool|}}}}}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{renewable|}}} | | |||
<tr> | |||
<th>Renewable</th> | |||
<td>{{#ifeq: {{bl|{{{renewable|}}}}} | y | Yes | {{#ifeq: {{bl|{{{renewable|}}}}} | n | No | {{{renewable|}}} }} }}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{stackable|}}} | | |||
<tr> | |||
<th>Stackable</th> | |||
<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> | |||
| }} | |||
</table> | |||
| }} | | }} | ||
</div> | </div> | ||
| }} | | }} | ||
</div></includeonly><noinclude>{{ | </div></includeonly><noinclude> | ||
{{Documentation}} | |||
<!-- Put categories on the documentation page --> | |||
</noinclude> |