Jump to content

Template:CreatureInfoBox: Difference between revisions

No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span>
<noinclude>
<code>This is code.</code>
</noinclude>
</span>
<span>
<span>
<includeonly>
<includeonly>
Line 20: Line 15:
       <td style="border-left: 0" class="game-infobox-argument">
       <td style="border-left: 0" class="game-infobox-argument">
   {{#switch: {{{breathingMode|}}}
   {{#switch: {{{breathingMode|}}}
     | #default = [[File:air.webp|32x32px]]
     | #default = [[File:air.webp|30x30px]]
     | air = [[File:air.webp|32x32px]]
     | air = [[File:air.webp|30x30px]]
     | Air = [[File:air.webp|32x32px]]
     | Air = [[File:air.webp|30x30px]]
     | water = [[File:water.webp|32x32px]]
     | water = [[File:water.webp|30x30px]]
     | Water = [[File:water.webp|32x32px]]}}</td></tr>
     | Water = [[File:water.webp|30x30px]]}}</td></tr>
   <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|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>
   <tr><th colspan="2" class="game-infobox-header">Motion:</th></tr>
   <tr><th colspan="2" class="game-infobox-header">Motion:</th></tr>
   {{#if:{{{walkSpeed|}}}|
   {{#if:{{{walkSpeed|}}}|
Line 50: Line 45:
   <tr><th colspan="2" class="game-infobox-header">Other Attributes:</th></tr>
   <tr><th colspan="2" class="game-infobox-header">Other Attributes:</th></tr>
   {{#if:{{{special|}}}|
   {{#if:{{{special|}}}|
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Special</strong></td><td style="border-left: 0" class="game-infobox- argument">
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Special</strong></td><td style="border-left: 0" class="game-infobox-argument">
{{{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>
Line 61: Line 56:
       <td style="border-left: 0" class="game-infobox-argument">
       <td style="border-left: 0" class="game-infobox-argument">
   {{#switch: {{{herdingBehavior|}}}
   {{#switch: {{{herdingBehavior|}}}
     | #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>
   <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">
       <td style="border-left: 0" class="game-infobox-argument">
   {{#switch: {{{hasSpawnerEgg|}}}
   {{#switch: {{{hasSpawnerEgg|}}}
     | #default = [[File:no.webp|22x22px]]
     | #default = [[File:yes.webp|18x18px]]
     | 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>
   <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>
Line 91: Line 86:
},
},
"model": {
"model": {
"label": "Model",
"label": "Creature Model",
"description": "Source for creature model or image. Templates are recommended but static files can be passed as well.",
"description": "Source for creature model or image. Templates are recommended but static files can be passed as well.",
"example": "{{#widget:ModelViewer}}",
"example": "{{#widget:ModelViewer|parameters}} or [[File:filename.extension|imageSize]]",
"type": "wiki-template-name",
"type": "wiki-template-name",
"required": true
"required": true
Line 100: Line 95:
"label": "Appearance Biome",
"label": "Appearance Biome",
"description": "What general biomes/regions the creature spawns in.",
"description": "What general biomes/regions the creature spawns in.",
"example": "Forests, Jungles, etc.",
"example": "Forests, jungles, etc.",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 186: Line 181:
"label": "Special",
"label": "Special",
"description": "Special creature attributes, such as being mountable or laying eggs.",
"description": "Special creature attributes, such as being mountable or laying eggs.",
"example": "Lays eggs, Mountable, etc.",
"example": "Lays eggs, mountable, etc.",
"type": "string"
"type": "string"
},
},
Line 214: Line 209:
"herdingBehavior": {
"herdingBehavior": {
"label": "Herding Behavior",
"label": "Herding Behavior",
"description": "Whether this creature engages in pack-like behavior or not. If one member of the pack/herd is provoked, all nearby creatures will pursue the aggressor.",
"description": "Whether this creature travels in herds/packs and sticks close together to creatures of the same type.",
"example": "Yes or no.",
"example": "Yes or no.",
"type": "boolean",
"type": "boolean",