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!

(Tablet layout shouldn't have the TOC smh)
Line 1: Line 1:
 
<div class="infobox infobox-object" role="region">
 
<div class="infobox infobox-object" role="region">
{{#if: {{{name|}}} | <h2 class="infobox-title" data-source="name">{{{name|}}}</h2>}}
+
<table class="infobox-inner">
{{#if: {{{image|}}} | <div class="infobox-image" data-source="image">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</div>}}
+
{{#if: {{{name|}}} | <tr class="infobox-title" data-source="name"><th>{{{name|}}}</th></tr>}}
{{#if: {{{type|}}} | <div class="infobox-item" data-source="type"><div class="infobox-label">Type:</div><div class="infobox-value">{{{type}}}</div></div>}}
+
{{#if: {{{image|}}} | <tr class="infobox-image" data-source="image"><td>[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</td></tr>}}
{{#if: {{{durability|}}} | <div class="infobox-item" data-source="durability"><div class="infobox-label">Durability:</div><div class="infobox-value">{{{durability}}}</div></div>}}
+
{{#if: {{{type|}}} | <tr class="infobox-item" data-source="type"><th class="infobox-label">Type:</th><td class="infobox-value">{{{type}}}</td></tr>}}
{{#if: {{{mine with|}}} | <div class="infobox-item" data-source="mine-with"><div class="infobox-label">Mine with:</div><div class="infobox-value">{{{mine with}}}</div></div>}}
+
{{#if: {{{durability|}}} | <tr class="infobox-item" data-source="durability"><th class="infobox-label">Durability:</th><td class="infobox-value">{{{durability}}}</td></tr>}}
{{#if: {{{heals|}}} | <div class="infobox-item" data-source="heals"><div class="infobox-label">Heals:</div><div class="infobox-value">{{{heals}}}</div></div>}}
+
{{#if: {{{mine with|}}} | <tr class="infobox-item" data-source="mine-with"><th class="infobox-label">Mine with:</th><td class="infobox-value">{{{mine with}}}</td></tr>}}
{{#if: {{{effects|}}} | <div class="infobox-item" data-source="effects"><div class="infobox-label">[[Effects]]:</div><div class="infobox-value">{{{effects}}}</div></div>}}
+
{{#if: {{{heals|}}} | <tr class="infobox-item" data-source="heals"><th class="infobox-label">Heals:</th><td class="infobox-value">{{{heals}}}</td></tr>}}
{{#if: {{{restores|}}} | <div class="infobox-item" data-source="restores"><div class="infobox-label">[[Food|Restores]]:</div><div class="infobox-value">{{{restores}}}</div></div>}}
+
{{#if: {{{effects|}}} | <tr class="infobox-item" data-source="effects"><th class="infobox-label">[[Effects]]:</th><td class="infobox-value">{{{effects}}}</td></tr>}}
{{#if: {{{drops|}}} | <div class="infobox-item" data-source="drops"><div class="infobox-label">Drops:</div><div class="infobox-value">{{{drops}}}</div></div>}}
+
{{#if: {{{restores|}}} | <tr class="infobox-item" data-source="restores"><th class="infobox-label">[[Food|Restores]]:</th><td class="infobox-value">{{{restores}}}</td></tr>}}
{{#if: {{{rare drops|}}} | <div class="infobox-item" data-source="rare-drops"><div class="infobox-label">Rare drops:</div><div class="infobox-value">{{{rare drops}}}</div></div>}}
+
{{#if: {{{drops|}}} | <tr class="infobox-item" data-source="drops"><th class="infobox-label">Drops:</th><td class="infobox-value">{{{drops}}}</td></tr>}}
{{#if: {{{stackable|}}} | <div class="infobox-item" data-source="stackable"><div class="infobox-label">Stackable:</div><div class="infobox-value">{{{stackable}}}</div></div>}}
+
{{#if: {{{rare drops|}}} | <tr class="infobox-item" data-source="rare-drops"><th class="infobox-label">Rare drops:</th><td class="infobox-value">{{{rare drops}}}</td></tr>}}
{{#if: {{{flammable|}}} | <div class="infobox-item" data-source="flammable"><div class="infobox-label">Flammable:</div><div class="infobox-value">{{{flammable}}}</div></div>}}
+
{{#if: {{{stackable|}}} | <tr class="infobox-item" data-source="stackable"><th class="infobox-label">Stackable:</th><td class="infobox-value">{{{stackable}}}</td></tr>}}
{{#if: {{{physics|}}} | <div class="infobox-item" data-source="physics"><div class="infobox-label">Physics:</div><div class="infobox-value">{{{physics}}}</div></div>}}
+
{{#if: {{{flammable|}}} | <tr class="infobox-item" data-source="flammable"><th class="infobox-label">Flammable:</th><td class="infobox-value">{{{flammable}}}</td></tr>}}
{{#if: {{{backdrop|}}} | <div class="infobox-item" data-source="backdrop"><div class="infobox-label">[[Backdrops|Backdrop]]:</div><div class="infobox-value">{{{backdrop}}}</div></div>}}
+
{{#if: {{{physics|}}} | <tr class="infobox-item" data-source="physics"><th class="infobox-label">Physics:</th><td class="infobox-value">{{{physics}}}</td></tr>}}
{{#if: {{{found naturally|}}} | <div class="infobox-item" data-source="found-naturally"><div class="infobox-label">Found naturally:</div><div class="infobox-value">{{{found naturally}}}</div></div>}}
+
{{#if: {{{backdrop|}}} | <tr class="infobox-item" data-source="backdrop"><th class="infobox-label">[[Backdrops|Backdrop]]:</th><td class="infobox-value">{{{backdrop}}}</td></tr>}}
{{#if: {{{renewable|}}} | <div class="infobox-item" data-source="renewable"><div class="infobox-label">Renewable:</div><div class="infobox-value">{{{renewable}}}</div></div>}}
+
{{#if: {{{found naturally|}}} | <tr class="infobox-item" data-source="found-naturally"><th class="infobox-label">Found naturally:</th><td class="infobox-value">{{{found naturally}}}</td></tr>}}
{{#if: {{{id|}}} | <div class="infobox-item" data-source="id"><div class="infobox-label">Identifier:</div><div 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>}}</div></div>}}
+
{{#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>}}
 +
</table>
 
</div><noinclude>
 
</div><noinclude>
 
==Usage==
 
==Usage==

Revision as of 19:14, 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=
}}