Anonymous user
User:Denatidum/sandbox: Difference between revisions
no edit summary
imported>Denatidum No edit summary |
imported>Denatidum No edit summary |
||
Line 1: | Line 1: | ||
<div style=" | <code><nowiki> | ||
<includeonly><div style="float:right; margin-left: 20px;"> | |||
<div class="infobox out"> | |||
= | <span class="shadow c-0">{{{title|{{PAGENAME}}}}}</span> | ||
</div> | |||
{{#if: {{{image|}}} | | |||
<div class="infobox in"> | |||
{{{image|}}} | |||
=== | </div> | ||
| }} | |||
{{#if: {{{description|}}}{{{item|}}}{{{durability|}}}{{{tool|}}}{{{renewable|}}}{{{stackable|}}}{{{restores|}}} | | |||
<div class="infobox out"> | |||
{{#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: {{{tool|}}} | | |||
<tr> | |||
<th>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> | |||
| }} | |||
{{#if: {{{blastresistance|}}} | | |||
<tr> | |||
<th>Blast resistance</th> | |||
<td>{{{blastresistance|}}}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{hardness|}}} | | |||
<tr> | |||
<th>Hardness</th> | |||
<td>{{{hardness|}}}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{luminous|}}} | | |||
<tr> | |||
<th>Luminous</th> | |||
<td>{{#ifeq: {{bl|{{{luminous|}}}}} | y | Yes | {{#ifeq: {{bl|{{{luminous|}}}}} | n | No | {{{luminous|}}} }} }}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{transparent|}}} | | |||
<tr> | |||
<th>Transparent</th> | |||
<td>{{#ifeq: {{bl|{{{transparent|}}}}} | y | Yes | {{#ifeq: {{bl|{{{transparent|}}}}} | n | No | {{{transparent|}}} {{#ifeq: {{bl|{{{transparent|}}}}} | p | Partial | {{{transparent|}}} }} }} }}</td> | |||
</tr> | |||
| }} | |||
{{#if: {{{flammable|}}} | | |||
<tr> | |||
<th>Luminous</th> | |||
<td>{{#ifeq: {{bl|{{{flammable|}}}}} | y | Yes | {{#ifeq: {{bl|{{{flammable|}}}}} | n | No | {{{flammable|}}} }} }}</td> | |||
</tr> | |||
| }} | |||
</table> | |||
| }} | |||
</div> | |||
| }} | |||
</div></includeonly><noinclude> | |||
{{Documentation}} | |||
<!-- Put categories on the documentation page --> | |||
</noinclude> | |||
</nowiki></code> |