Jump to content

Template:CreatureInfoBox: Difference between revisions

No edit summary
No edit summary
Line 27: Line 27:
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Mountable</strong></td>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Mountable</strong></td>
       <td style="border-left: 0" class="game-infobox-argument">
       <td style="border-left: 0" class="game-infobox-argument">
    {{#switch: {{{isMountable|}}}
  {{#switch: {{{isMountable|}}}
     | #default = [[File:no.webp|22x22px]]
     | #default = [[File:no.webp|22x22px]]
     | yes = [[File:yes.webp|22x22px]]
     | yes = [[File:yes.webp|22x22px]]
Line 53: Line 53:
{{{special|Eggs, Mountable, etc.}}}</td></tr>}}
{{{special|Eggs, Mountable, etc.}}}</td></tr>}}
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Drop</strong></td>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Drop</strong></td>
       <td style="border-left: 0" class="game-infobox-argument">{{{drop|None}}}</td></tr>
       <td style="border-left: 0" class="game-infobox-argument">{{{drop|}}}</td></tr>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food</strong></td>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food</strong></td>
       <td style="border-left: 0" class="game-infobox-argument">{{{food|Vegetation / Meat}}}</td></tr>
       <td style="border-left: 0" class="game-infobox-argument">{{{food|}}}</td></tr>
   {{#if:{{{minAudibleDistance|}}}|
   {{#if:{{{minAudibleDistance|}}}|
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Minimum Audible Distance</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{minAudibleDistance|0 blocks}}}</td></tr>}}
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Minimum Audible Distance</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{minAudibleDistance|0}}} blocks</td></tr>}}
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Herding Behavior</strong></td>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Herding Behavior</strong></td>
       <td style="border-left: 0" class="game-infobox-argument">{{{herdingBehavior|Yes / No}}}</td></tr>
       <td style="border-left: 0" class="game-infobox-argument">
  {{#switch: {{{herdingBehavior|}}}
    | #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>Spawner Egg</strong></td>
   <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Spawner Egg</strong></td>
       <td style="border-left: 0" class="game-infobox-argument">{{{spawnerEgg|Yes / No}}}</td></tr>
       <td style="border-left: 0" class="game-infobox-argument">
  {{#switch: {{{hasSpawnerEgg|}}}
    | #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 colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Template:CreatureInfoBox|Creature Infobox Explanation]]</strong></td></tr>
   <tr><td colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Template:CreatureInfoBox|Creature Infobox Explanation]]</strong></td></tr>
</table>
</table>