Jump to content

Template:BlockInfoBox: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(13 intermediate revisions by the same user not shown)
Line 19: Line 19:
   {{#if:{{{isFlammable|}}}|
   {{#if:{{{isFlammable|}}}|
   {{#switch: {{{isFlammable|}}}
   {{#switch: {{{isFlammable|}}}
     | #default = [[File:no.webp|22x22px]]
     | #default = [[File:no.webp|20x20px]]
     | yes = [[File:yes.webp|22x22px]]
     | yes = [[File:yes.webp|18x18px]]
     | Yes = [[File:yes.webp|22x22px]]
     | Yes = [[File:yes.webp|18x18px]]
     | no = [[File:no.webp|22x22px]]
     | no = [[File:no.webp|20x20px]]
     | No = [[File:no.webp|22x22px]]}}}}</td></tr>
     | No = [[File:no.webp|20x20px]]}}}}</td></tr>
   {{#if:{{{isEdible|}}}|
   {{#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|22x22px]]
     | #default = [[File:no.webp|20x20px]]
     | yes = [[File:yes.webp|22x22px]]
     | yes = [[File:yes.webp|18x18px]]
     | Yes = [[File:yes.webp|22x22px]]
     | Yes = [[File:yes.webp|18x18px]]
     | no = [[File:no.webp|22x22px]]
     | no = [[File:no.webp|20x20px]]
     | No = [[File:no.webp|22x22px]]}}}}</td></tr>
     | No = [[File:no.webp|20x20px]]}}}}</td></tr>
   {{#if:{{{isSleepable|}}}|
   {{#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|22x22px]]
     | #default = [[File:no.webp|20x20px]]
     | yes = [[File:yes.webp|22x22px]]
     | yes = [[File:yes.webp|18x18px]]
     | Yes = [[File:yes.webp|22x22px]]
     | Yes = [[File:yes.webp|18x18px]]
     | no = [[File:no.webp|22x22px]]
     | no = [[File:no.webp|20x20px]]
     | No = [[File:no.webp|22x22px]]}}}}</td></tr>
     | 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|}}}|
Line 48: Line 48:
   <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">Tool-Related Attributes:</th></tr>
   <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|}}}|
Line 58: Line 58:
       <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|22x22px]]
     | #default = [[File:no.webp|20x20px]]
     | yes = [[File:yes.webp|22x22px]]
     | yes = [[File:yes.webp|18x18px]]
     | Yes = [[File:yes.webp|22x22px]]
     | Yes = [[File:yes.webp|18x18px]]
     | no = [[File:no.webp|22x22px]]
     | no = [[File:no.webp|20x20px]]
     | No = [[File:no.webp|22x22px]]}}</td></tr>
     | 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>}}
Line 68: Line 68:
   <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|}}}
    {{#switch: {{{diggingMethod|}}}
     | #default = [[File:iron_axe.webp|22x22px]]
     | #default = Hack
     | axe = [[File:iron_axe.webp|22x22px]]
    | hack = Hack
     | Axe = [[File:iron_axe.webp|22x22px]]
    | Hack = Hack
     | pickaxe = [[File:iron_pickaxe.webp|22x22px]]
     | axe = Hack
     | Pickaxe = [[File:iron_pickaxe.webp|22x22px]]
    | Axe = Hack
     | shovel = [[File:iron_shovel.webp|22x22px]]
     | quarry = Quarry
     | Shovel = [[File:iron_shovel.webp|22x22px]]}}</td></tr>
    | 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|}}}|