Difference between revisions of "Template:Item"
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><...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<table class="infobox-inner"> | <table class="infobox-inner"> | ||
<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 class="ts-container" data-delay-ms="2000" colspan="2"> |
− | {{#if: {{{ | + | {{#if: {{{image1|}}} || <span class="ts-slide ts-active">[[Image:{{{image|{{BASEPAGENAME}}.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image1|}}} | <span class="ts-slide">[[File:{{{image1|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image2|}}} | <span class="ts-slide">[[File:{{{image2|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image3|}}} | <span class="ts-slide">[[File:{{{image3|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image4|}}} | <span class="ts-slide">[[File:{{{image4|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image5|}}} | <span class="ts-slide">[[File:{{{image5|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image6|}}} | <span class="ts-slide">[[File:{{{image6|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image7|}}} | <span class="ts-slide">[[File:{{{image7|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image8|}}} | <span class="ts-slide">[[File:{{{image8|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image9|}}} | <span class="ts-slide">[[File:{{{image9|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image10|}}} | <span class="ts-slide">[[File:{{{image10|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image11|}}} | <span class="ts-slide">[[File:{{{image11|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image12|}}} | <span class="ts-slide">[[File:{{{image12|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image13|}}} | <span class="ts-slide">[[File:{{{image13|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image14|}}} | <span class="ts-slide">[[File:{{{image14|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image15|}}} | <span class="ts-slide">[[File:{{{image15|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}}{{#if: {{{image16|}}} | <span class="ts-slide">[[File:{{{image16|Invisible-sprite.png}}}|center|150px|class=image-thumbnail pixel]]</span>}} |
+ | </td></tr> | ||
+ | {{#if: {{{durability|}}} | <tr class="infobox-item" data-source="durability"><th class="infobox-label">Durabilit{{#if: {{{durability2|}}} | ies | y}}:</th><td class="infobox-value">{{{durability}}}{{#if: {{{id2|}}} | <br>{{{durability2|}}}}}{{#if: {{{durability3|}}} | <br>{{{durability3|}}}}}{{#if: {{{durability4|}}} | <br>{{{durability4|}}}}}{{#if: {{{durability5|}}} | <br>{{{durability5|}}}}}{{#if: {{{durability6|}}} | <br>{{{durability6|}}}</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: {{{ | + | {{#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{{#if: {{{id2|}}}|s}}:</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> | ||
</div><noinclude> | </div><noinclude> | ||
Line 16: | Line 18: | ||
<pre> | <pre> | ||
<nowiki> | <nowiki> | ||
− | {{ | + | {{Item |
− | |image= | + | | image = |
− | |name= | + | | imageN = |
− | |durability= | + | | name = |
− | |renewable= | + | | durability = |
− | |stackable= | + | | renewable = |
− | |heals= | + | | stackable = |
− | |effects= | + | | heals = |
− | |id= | + | | effects = |
− | | | + | | id = |
− | + | | idN = | |
− | |||
− | |||
− | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
+ | |||
+ | N = A number | ||
</noinclude> | </noinclude> |
Latest revision as of 14:08, 7 July 2022
Item | |
---|---|
Adds a table that provides a brief summary about a block's stats.
Usage
{{Item | image = | imageN = | name = | durability = | renewable = | stackable = | heals = | effects = | id = | idN = }}
N = A number