Difference between revisions of "Template:Item"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

(Created page with "<div class="infobox infobox-object" role="region"> <table class="infobox-inner"> <tr class="infobox-title" data-source="name"><th colspan="2">{{{name|{{BASEPAGENAME}}}}}</th><...")
 
Line 3: Line 3:
 
<tr class="infobox-title" data-source="name"><th colspan="2">{{{name|{{BASEPAGENAME}}}}}</th></tr>
 
<tr class="infobox-title" data-source="name"><th colspan="2">{{{name|{{BASEPAGENAME}}}}}</th></tr>
 
<tr class="infobox-image" data-source="image"><td colspan="2">[[Image:{{{image|{{BASEPAGENAME}}.png}}}|center|150px|class=image-thumbnail pixel]]</td></tr>
 
<tr class="infobox-image" data-source="image"><td colspan="2">[[Image:{{{image|{{BASEPAGENAME}}.png}}}|center|150px|class=image-thumbnail pixel]]</td></tr>
{{#if: {{{type|}}} | <tr class="infobox-item" data-source="durability"><th class="infobox-label">Durability:</th><td class="infobox-value">{{{type}}}</td></tr>}}
+
{{#if: {{{durability|}}} | <tr class="infobox-item" data-source="durability"><th class="infobox-label">Durability:</th><td class="infobox-value">{{{durability}}}</td></tr>}}
 
{{#if: {{{stackable|}}} | <tr class="infobox-item" data-source="stackable"><th class="infobox-label">Stackable:</th><td class="infobox-value">{{{stackable}}}</td></tr>}}
 
{{#if: {{{stackable|}}} | <tr class="infobox-item" data-source="stackable"><th class="infobox-label">Stackable:</th><td class="infobox-value">{{{stackable}}}</td></tr>}}
 
{{#if: {{{renewable|}}} | <tr class="infobox-item" data-source="renewable"><th class="infobox-label">Renewable:</th><td class="infobox-value">{{{renewable}}}</td></tr>}}
 
{{#if: {{{renewable|}}} | <tr class="infobox-item" data-source="renewable"><th class="infobox-label">Renewable:</th><td class="infobox-value">{{{renewable}}}</td></tr>}}
 
{{#if: {{{heals|}}} | <tr class="infobox-item" data-source="heals"><th class="infobox-label">Heals:</th><td class="infobox-value">{{{heals}}}</td></tr>}}
 
{{#if: {{{heals|}}} | <tr class="infobox-item" data-source="heals"><th class="infobox-label">Heals:</th><td class="infobox-value">{{{heals}}}</td></tr>}}
{{#if: {{{renewable|}}} | <tr class="infobox-item" data-source="effects"><th class="infobox-label">Effects:</th><td class="infobox-value">{{{renewable}}}</td></tr>}}
+
{{#if: {{{effects|}}} | <tr class="infobox-item" data-source="effects"><th class="infobox-label">Effects:</th><td class="infobox-value">{{{effects}}}</td></tr>}}
 
{{#if: {{{id|}}} | <tr class="infobox-item" data-source="id"><th class="infobox-label">Identifier:</th><td class="infobox-value"><code>{{{id}}}</code>{{#if: {{{id2|}}} | <br><code>{{{id2|}}}</code>}}{{#if: {{{id3|}}} | <br><code>{{{id3|}}}</code>}}{{#if: {{{id4|}}} | <br><code>{{{id4|}}}</code>}}{{#if: {{{id5|}}} | <br><code>{{{id5|}}}</code>}}{{#if: {{{id6|}}} | <br><code>{{{id6|}}}</code></td>}}</tr>}}
 
{{#if: {{{id|}}} | <tr class="infobox-item" data-source="id"><th class="infobox-label">Identifier:</th><td class="infobox-value"><code>{{{id}}}</code>{{#if: {{{id2|}}} | <br><code>{{{id2|}}}</code>}}{{#if: {{{id3|}}} | <br><code>{{{id3|}}}</code>}}{{#if: {{{id4|}}} | <br><code>{{{id4|}}}</code>}}{{#if: {{{id5|}}} | <br><code>{{{id5|}}}</code>}}{{#if: {{{id6|}}} | <br><code>{{{id6|}}}</code></td>}}</tr>}}
 
</table>
 
</table>

Revision as of 08:59, 3 January 2022




Item

Adds a table that provides a brief summary about a block's stats.

Usage


{{Object
|image=
|name=
|durability=
|renewable=
|stackable=
|heals=
|effects=
|id=
|id2=
|id3=
|id4=
|id5=
|id6=
}}