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:
 
<div class="infobox infobox-object" role="region">
 
<div class="infobox infobox-object" role="region">
 +
<div class="infobox-inner">
 
{{#if: {{{name|}}} | <h2 class="infobox-title" data-source="name">{{{name|}}}</h2>}}
 
{{#if: {{{name|}}} | <h2 class="infobox-title" data-source="name">{{{name|}}}</h2>}}
 
{{#if: {{{image|}}} | <div class="infobox-image" data-source="image">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</div>}}
 
{{#if: {{{image|}}} | <div class="infobox-image" data-source="image">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</div>}}
Line 17: Line 18:
 
{{#if: {{{renewable|}}} | <div class="infobox-item" data-source="renewable"><div class="infobox-label">Renewable:</div><div class="infobox-value">{{{renewable}}}</div></div>}}
 
{{#if: {{{renewable|}}} | <div class="infobox-item" data-source="renewable"><div class="infobox-label">Renewable:</div><div class="infobox-value">{{{renewable}}}</div></div>}}
 
{{#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: {{{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>}}
 +
</div>
 
</div><noinclude>
 
</div><noinclude>
{{Clear}}
 
----
 
 
<table cellpadding=5 width=350 style="border: solid 2pt; float: right; margin:10px" class="infobox">
 
 
<tr bgcolor=#55AAEE><td height=40 valign=bottom><center><font size=5 color=#000055>{{{name}}}</font></center>
 
 
<tr bgcolor=#EEEEEE><td height=200 valign=top><center>
 
 
[[image:{{{image}}}|256px|class=pixel]]
 
 
<p></p>
 
 
<table bgcolor=#DDE4E4 width=100%>
 
<tr><td width=100px></div></div>Name:</div></div></div></div>{{{name}}}</div></div>
 
</div></div>Type:</div></div></div></div>{{{type}}}</div></div>
 
{{#if: {{{durability|}}} | </div></div>Durability:</div></div></div></div>{{{durability}}}</div></div>}}
 
{{#if: {{{mine with|}}} | </div></div>Mine with:</div></div></div></div>{{{mine with}}}</div></div>}}
 
{{#if: {{{heals|}}} | </div></div>Heals:</div></div></div></div>{{{heals}}}</div></div>}}
 
{{#if: {{{effects|}}} | </div></div>[[Effects]]:</div></div></div></div>{{{effects}}}</div></div>}}
 
{{#if: {{{restores|}}} | </div></div>[[Food|Restores]]:</div></div></div></div>{{{restores}}}</div></div>}}
 
{{#if: {{{drops|}}} | </div></div>Drops:</div></div></div></div>{{{drops}}}</div></div>}}
 
{{#if: {{{rare drops|}}} | </div></div>Rare drops:</div></div></div></div>{{{rare drops}}}</div></div>}}
 
{{#if: {{{stackable|}}} | </div></div>Stackable:</div></div></div></div>{{{stackable}}}</div></div>}}
 
{{#if: {{{flammable|}}} | </div></div>Flammable:</div></div></div></div>{{{flammable}}}</div></div>}}
 
{{#if: {{{physics|}}} | </div></div>Physics:</div></div></div></div>{{{physics}}}</div></div>}}
 
{{#if: {{{backdrop|}}} | </div></div>[[Backdrops|Backdrop]]:</div></div></div></div>{{{backdrop}}}</div></div>}}
 
{{#if: {{{found naturally|}}} | </div></div>Found naturally:</div></div></div></div>{{{found naturally}}}</div></div>}}
 
{{#if: {{{renewable|}}} | </div></div>Renewable:</div></div></div></div>{{{renewable}}}</div></div>}}
 
{{#if: {{{id|}}} | </div></div>Identifier:</div></div></div></div><code>{{{id}}}</code></div></div>}}
 
</table>
 
 
</center></table>
 
 
 
==Usage==
 
==Usage==
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 17:37, 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=
}}