Template:BlockInfoBox: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
(23 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | <tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Block ID</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Block ID</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{ | <td style="border-left: 0" class="game-infobox-argument">{{{id|0}}}</td></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Stackable</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Stackable</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isStackable|}}} | {{#switch: {{{isStackable|}}} | ||
| #default = | | #default = Yes | ||
| yes = | | yes = Yes | ||
| Yes = | | Yes = Yes | ||
| no = | | no = No | ||
| No = | | No = No}} ({{{maxStackSize|0}}})</td></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Flammable</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Flammable</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#if:{{{isFlammable|}}}| | |||
{{#switch: {{{isFlammable|}}} | {{#switch: {{{isFlammable|}}} | ||
| #default = [[File:no.webp| | | #default = [[File:no.webp|20x20px]] | ||
| yes = [[File:yes.webp| | | yes = [[File:yes.webp|18x18px]] | ||
| Yes = [[File:yes.webp| | | Yes = [[File:yes.webp|18x18px]] | ||
| no = [[File:no.webp| | | no = [[File:no.webp|20x20px]] | ||
| No = [[File:no.webp| | | No = [[File:no.webp|20x20px]]}}}}</td></tr> | ||
{{#if:{{{isEdible|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Edible</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Edible</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isEdible|}}} | {{#switch: {{{isEdible|}}} | ||
| #default = [[File:no.webp| | | #default = [[File:no.webp|20x20px]] | ||
| yes = [[File:yes.webp| | | yes = [[File:yes.webp|18x18px]] | ||
| Yes = [[File:yes.webp| | | Yes = [[File:yes.webp|18x18px]] | ||
| no = [[File:no.webp| | | no = [[File:no.webp|20x20px]] | ||
| No = [[File:no.webp| | | No = [[File:no.webp|20x20px]]}}}}</td></tr> | ||
{{#if:{{{isSleepable|}}}| | |||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Sleep Suitability</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Sleep Suitability</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isSleepable|}}} | {{#switch: {{{isSleepable|}}} | ||
| #default = [[File:no.webp| | | #default = [[File:no.webp|20x20px]] | ||
| yes = [[File:yes.webp| | | yes = [[File:yes.webp|18x18px]] | ||
| Yes = [[File:yes.webp| | | Yes = [[File:yes.webp|18x18px]] | ||
| no = [[File:no.webp| | | no = [[File:no.webp|20x20px]] | ||
| No = [[File:no.webp| | | No = [[File:no.webp|20x20px]]}}}}</td></tr> | ||
{{#if:{{{fuelValue|}}}| | {{#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>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>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">{{{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>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><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"> | <tr><th colspan="2" class="game-infobox-header">Physics:</th></tr> | ||
{{#if:{{{lightAttenuation|}}}| | {{#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>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>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>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>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>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> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fluid Blocker</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isFluidBlocker|}}} | {{#switch: {{{isFluidBlocker|}}} | ||
| #default = [[File:no.webp| | | #default = [[File:no.webp|20x20px]] | ||
| yes = [[File:yes.webp| | | yes = [[File:yes.webp|18x18px]] | ||
| Yes = [[File:yes.webp| | | Yes = [[File:yes.webp|18x18px]] | ||
| no = [[File:no.webp| | | no = [[File:no.webp|20x20px]] | ||
| No = [[File:no.webp| | | No = [[File:no.webp|20x20px]]}}</td></tr> | ||
{{#if:{{{projectileStickProbability|}}}| | {{#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><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><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> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Digging Method</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument"> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{diggingMethod|}}} | |||
| #default = | | #default = Hack | ||
| axe = | | hack = Hack | ||
| | | Hack = Hack | ||
| pickaxe = | | axe = Hack | ||
| Pickaxe = | | Axe = Hack | ||
| shovel = | | quarry = Quarry | ||
| Shovel = | | Quarry = Quarry | ||
| pickaxe = Quarry | |||
| Pickaxe = Quarry | |||
| shovel = Shovel | |||
| Shovel = Shovel}}</td></tr> | |||
{{#if:{{{diggingResilience|}}}| | {{#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>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>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>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>}} | <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> | </table> | ||
</includeonly> | </includeonly> | ||
Line 240: | Line 247: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "id": { | ||
"label": "Block ID", | "label": "Block ID", | ||
"description": "Block identification number.", | "description": "Block identification number.", | ||
Line 252: | Line 259: | ||
"title", | "title", | ||
"model", | "model", | ||
" | "id", | ||
"isStackable", | "isStackable", | ||
"maxStackSize", | "maxStackSize", |
Latest revision as of 15:15, 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 |
Block ID | id | Block identification number.
| Number | 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 |