Difference between revisions of "Mine Blocks Wiki:Sandbox/Infobox"

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!

Line 1: Line 1:
<tr class="infobox infobox-object" role="region">
+
<div class="infobox infobox-object" role="region">
 
<table class="infobox-inner">
 
<table class="infobox-inner">
<tbody>
 
 
{{#if: {{{name|}}} | <tr><th><h2 class="infobox-title" data-source="name">{{{name|}}}</h2></tr></th>}}
 
{{#if: {{{name|}}} | <tr><th><h2 class="infobox-title" data-source="name">{{{name|}}}</h2></tr></th>}}
 
{{#if: {{{image|}}} | <tr><td><div class="infobox-image" data-source="image">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</div></tr></td>}}
 
{{#if: {{{image|}}} | <tr><td><div class="infobox-image" data-source="image">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</div></tr></td>}}
Line 19: Line 18:
 
{{#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: {{{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>}}
</tbody>
+
</table>
</table><noinclude>
+
</div><noinclude>
 
==Usage==
 
==Usage==
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 18:53, 28 November 2021

Usage

{{Object
|image=
|name=
|type=
|durability=
|mine with=
|heals=
|effects=
|restores=
|drops=
|rare drops=
|stackable=
|flammable=
|physics=
|backdrop=
|found naturally=
|renewable=
|id=
}}