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">
 
<table class="infobox-inner">
 
<table class="infobox-inner">
{{#if: {{{name|}}} | <tr class="infobox-title" data-source="name"><th colspan="2">{{{name|}}}</th></tr>}}
+
<tr class="infobox-title" data-source="name"><th colspan="2">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if: {{{image|}}} | <tr class="infobox-image" data-source="image"><td colspan="2">[[Image:{{{image}}}|center|150px|class=image-thumbnail pixel]]</td></tr>}}
+
<tr class="infobox-image" data-source="image"><td colspan="2">[[Image:{{{image|{{PAGENAME}}.png}}}|center|150px|class=image-thumbnail pixel]]</td></tr>
 
{{#if: {{{type|}}} | <tr class="infobox-item" data-source="type"><th class="infobox-label">Type:</th><td class="infobox-value">{{{type}}}</td></tr>}}
 
{{#if: {{{type|}}} | <tr class="infobox-item" data-source="type"><th class="infobox-label">Type:</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: {{{durability|}}} | <tr class="infobox-item" data-source="durability"><th class="infobox-label">Durability:</th><td class="infobox-value">{{{durability}}}</td></tr>}}

Revision as of 11:58, 22 December 2021








Sandbox/Infobox

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

Usage


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