Template:BlockInfoBox: Difference between revisions
m Protected "Template:BlockInfoBox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
No edit summary |
||
Line 1: | Line 1: | ||
<span> | |||
<includeonly> | |||
<table id="BlockInfoBox" class="game-infobox"> | |||
<tr><th colspan="2" class="game-infobox-title">{{{title|}}}</th></tr> | |||
<tr><td colspan="2">{{{model|}}}</td></tr> | |||
<tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Stackable</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{isStackable|}}} | |||
| #default = [[File:yes.webp|22x22px]] | |||
| yes = [[File:yes.webp|22x22px]] | |||
| Yes = [[File:yes.webp|22x22px]] | |||
| no = [[File:no.webp|22x22px]] | |||
| No = [[File:no.webp|22x22px]]}} ({{{maxStackSize|0}}})</td></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Flammable</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{isFlammable|}}} | |||
| #default = [[File:no.webp|22x22px]] | |||
| yes = [[File:yes.webp|22x22px]] | |||
| Yes = [[File:yes.webp|22x22px]] | |||
| no = [[File:no.webp|22x22px]] | |||
| No = [[File:no.webp|22x22px]]}}</td></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Edible</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{isEdible|}}} | |||
| #default = [[File:no.webp|22x22px]] | |||
| yes = [[File:yes.webp|22x22px]] | |||
| Yes = [[File:yes.webp|22x22px]] | |||
| no = [[File:no.webp|22x22px]] | |||
| No = [[File:no.webp|22x22px]]}}</td></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Sleep Suitability</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{isSleepable|}}} | |||
| #default = [[File:no.webp|22x22px]] | |||
| yes = [[File:yes.webp|22x22px]] | |||
| Yes = [[File:yes.webp|22x22px]] | |||
| no = [[File:no.webp|22x22px]] | |||
| No = [[File:no.webp|22x22px]]}}</td></tr> | |||
{{#if:{{{fuelValue|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fuel Value</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{fuelValue|0}}}</td></tr>}} | |||
{{#if:{{{fuelValue|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fire Duration</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{fireDuration|0}}}</td></tr>}} | |||
{{#if:{{{foodType|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food Type</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{foodType}}</td></tr>}} | |||
{{#if:{{{nutritionalValue|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food Type</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{nutritionalValue|0}}</td></tr>}} | |||
{{#if:{{{emittedLightAmount|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Emitted Light Amount</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{emittedLightAmount|0}}</td></tr>}} | |||
<tr><th colspan="2" class="game-infobox-header">Tool-Related Attributes:</th></tr> | |||
{{#if:{{{lightAttenuation|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Light Attenuation</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{lightAttenuation|0}}</td></tr>}} | |||
{{#if:{{{explosivePower|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Explosive Power</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{explosivePower|0}}</td></tr>}} | |||
{{#if:{{{explosionResilience|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Explosion Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{explosionResilience|0}}</td></tr>}} | |||
{{#if:{{{projectileResilience|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Projectile Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{projectileResilience|0}}</td></tr>}} | |||
{{#if:{{{density|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Density</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{density|0}}</td></tr>}} | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fluid Blocker</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{isFluidBlocker|}}} | |||
| #default = [[File:no.webp|22x22px]] | |||
| yes = [[File:yes.webp|22x22px]] | |||
| Yes = [[File:yes.webp|22x22px]] | |||
| no = [[File:no.webp|22x22px]] | |||
| No = [[File:no.webp|22x22px]]}}</td></tr> | |||
{{#if:{{{projectileStickProbability|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Projectile Stick Probability</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{projectileStickProbability|0}}</td></tr>}} | |||
<tr><th colspan="2" class="game-infobox-header">Tool-Related Attributes:</th></tr> | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Digging Method</strong></td> | |||
<td style="border-left: 0" class="game-infobox-argument"> | |||
{{#switch: {{{diggingMethod|}}} | |||
| #default = [[File:iron_axe.webp|22x22px]] | |||
| axe = [[File:iron_axe.webp|22x22px]] | |||
| Axe = [[File:iron_axe.webp|22x22px]] | |||
| pickaxe = [[File:iron_pickaxe.webp|22x22px]] | |||
| Pickaxe = [[File:iron_pickaxe.webp|22x22px]] | |||
| shovel = [[File:iron_shovel.webp|22x22px]] | |||
| Shovel = [[File:iron_shovel.webp|22x22px]]}}</td></tr> | |||
{{#if:{{{diggingResilience|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Digging Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{diggingResilience|0}}</td></tr>}} | |||
{{#if:{{{requiredToolLevel|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Required Tool Level</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{requiredToolLevel|0}}</td></tr>}} | |||
{{#if:{{{experienceGiven|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Experience Given</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{experienceGiven|0}}</td></tr>}} | |||
{{#if:{{{toolDurabilityImpact|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Tool Durability Impact</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{toolDurabilityImpact|0}}</td></tr>}} | |||
</table> | |||
</includeonly> | |||
</span> | |||
<span> | <span> | ||
<noinclude> | <noinclude> |
Revision as of 13:22, 1 August 2025
Embeds a customized infobox for displaying block/item attributes along the left side of a wiki page. Can be used in conjunction with the Widget:ModelViewer for displaying block/item models.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Block/Item Title | title | Name of the block/item.
| String | required |
Block/Item Model | model | Source for block/item model or image. Templates are recommended but static files can be passed as well.
| Template | required |
Stackable | isStackable | Whether the item/block is stackable within inventory slots or not.
| Boolean | suggested |
Max Stack Size | maxStackSize | Maximum stack size allowed for the block/item.
| Number | suggested |
Flammable | isFlammable | Whether the block can catch fire within the world or not.
| Boolean | optional |
Edible | isEdible | Whether the block/item is edible or not.
| Boolean | optional |
Sleep Suitability | isSleepable | Whether the block provides an adequate sleeping surface or not.
| Boolean | optional |
Fuel Value | fuelValue | How long the item will provide fuel when used within the furnace block.
| Number | optional |
Fire Duration | fireDuration | How long the item will burn when lit on fire within the world.
| Number | optional |
Food Type | foodType | Type of food the item is classified as.
| String | optional |
Nutritional Value | nutritionalValue | How many food points/bars the item provides upon consumption.
| Number | optional |
Emitted Light Amount | emittedLightAmount | How much light the block emits, derived from its center.
| Number | optional |
Light Attenuation | lightAttenuation | How much the block attenuates light that passes through it.
| Number | optional |
Explosive Power | explosivePower | Explosion power provided by block when ignited.
| Number | optional |
Explosion Resilience | explosionResilience | Resilience of the block to be destroyed by explosives.
| Number | optional |
Projectile Resilience | projectileResilience | Resilience of block when struck by projectiles.
| Number | optional |
Density | density | Used to determine buoyance of a block/item. Pickables with a density less than 1 will float, greater than 1 will sink.
| Number | optional |
Fluid Blocker | isFluidBlocker | Whether or not the block obstructs the flow of water.
| Boolean | optional |
Projectile Stick Probability | projectileStickProbability | Defines the probability for a spear or arrow to stick in the block when thrown.
| Number | optional |
Digging Method | diggingMethod | Intended digging method of the block.
| String | optional |
Digging Resilience | diggingResilience | Resilience or the time it takes for the block to be broken.
| Number | optional |
Required Tool Level | requiredToolLevel | Minimal tool level/tier needed to break and acquire the block.
| Number | optional |
Experience Given | experienceGiven | Amount of experience gained when mined or collected.
| Number | optional |
Tool Durability Impact | toolDurabilityImpact | Degree of impact block has on tool durability when mined.
| Number | optional |