Template:CreatureInfoBox: Difference between revisions
No edit summary |
No edit summary |
||
(37 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Attack Power</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{attackPower|}}}</td></tr>}} | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Attack Power</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{attackPower|}}}</td></tr>}} | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Breathing Mode</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Breathing Mode</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{breathingMode|Air | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{breathingMode|}}} | |||
| #default = [[File:air.webp|30x30px]] | |||
| air = [[File:air.webp|30x30px]] | |||
| Air = [[File:air.webp|30x30px]] | |||
| water = [[File:water.webp|30x30px]] | |||
| 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|}}} | |||
| #default = [[File:no.webp|20x20px]] | |||
| yes = [[File:yes.webp|18x18px]] | |||
| Yes = [[File:yes.webp|18x18px]] | |||
| no = [[File:no.webp|20x20px]] | |||
| 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|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Walk Speed</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{walkSpeed|0 km/h | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Walk Speed</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{walkSpeed|0}}} km/h</td></tr>}} {{#if:{{{flySpeed|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fly Speed</strong></td><td style="border-left: 0" class="game-infobox-argument"> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fly Speed</strong></td><td style="border-left: 0" class="game-infobox-argument"> | ||
{{{flySpeed|0 km/h | {{{flySpeed|0}}} km/h</td></tr>}} {{#if:{{{swimSpeed|}}}| | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Swim Speed</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{swimSpeed|0 km/h | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Swim Speed</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{swimSpeed|0}}} km/h</td></tr>}} | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Jump Height</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Jump Height</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{jumpHeight|0 | <td style="border-left: 0" class="game-infobox-argument">{{{jumpHeight|0}}} meters</td></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Acceleration Factor</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Acceleration Factor</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{accelerationFactor|0}}}</td></tr> | <td style="border-left: 0" class="game-infobox-argument">{{{accelerationFactor|0}}}</td></tr> | ||
<tr><th colspan="2" class="game-infobox-header">Body:</th></tr> | <tr><th colspan="2" class="game-infobox-header">Body:</th></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Mass</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Mass</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{mass|0 | <td style="border-left: 0" class="game-infobox-argument">{{{mass|0}}} kg</td></tr> | ||
<tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Bodybox Size</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Bodybox Size</strong></td> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{bodyBoxSize|0 x 0 x 0}}}</td></tr> | <td style="border-left: 0" class="game-infobox-argument">{{{bodyBoxSize|0 x 0 x 0}}}</td></tr> | ||
<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> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{drop|None}}}</td></tr> | <td style="border-left: 0" class="game-infobox-argument">{{{drop|None}}}</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| | <td style="border-left: 0" class="game-infobox-argument">{{{food|Cannot be fed}}}</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 | <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 | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{herdingBehavior|}}} | |||
| #default = [[File:no.webp|20x20px]] | |||
| yes = [[File:yes.webp|18x18px]] | |||
| Yes = [[File:yes.webp|18x18px]] | |||
| no = [[File:no.webp|20x20px]] | |||
| 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"> | ||
<tr><td colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Creature Infobox Explanation]]</strong></td></tr> | {{#switch: {{{hasSpawnerEgg|}}} | ||
| #default = [[File:yes.webp|18x18px]] | |||
| yes = [[File:yes.webp|18x18px]] | |||
| Yes = [[File:yes.webp|18x18px]] | |||
| no = [[File:no.webp|20x20px]] | |||
| 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> | |||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
Line 59: | Line 83: | ||
"example": "\"Brown Bear\"", | "example": "\"Brown Bear\"", | ||
"type": "string", | "type": "string", | ||
" | "required": true | ||
}, | }, | ||
"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 | ||
}, | }, | ||
"appearanceBiome": { | "appearanceBiome": { | ||
"label": "Appearance Biome", | "label": "Appearance Biome", | ||
"description": " | "description": "What general biomes/regions the creature spawns in.", | ||
"example": "Forests, | "example": "Forests, jungles, etc.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"attackResilience": { | "attackResilience": { | ||
"label": "Attack Resilience" | "label": "Attack Resilience", | ||
"description": "Creature's resilience to attacks.", | |||
"type": "number", | |||
"default": "0" | |||
}, | }, | ||
"fireResilience": { | "fireResilience": { | ||
"label": "Fire Resilience" | "label": "Fire Resilience", | ||
"description": "Creature's resistance to fire damage.", | |||
"type": "number", | |||
"default": "0" | |||
}, | }, | ||
"fallResilience": { | "fallResilience": { | ||
"label": "Fall Resilience" | "label": "Fall Resilience", | ||
"description": "Creature's resistance to fall damage.", | |||
"type": "number", | |||
"default": "0" | |||
}, | }, | ||
"attackPower": { | "attackPower": { | ||
"label": "Attack Power" | "label": "Attack Power", | ||
"description": "Creature's average damage inflicted per hit.", | |||
"type": "number", | |||
"default": "0" | |||
}, | }, | ||
"breathingMode": { | "breathingMode": { | ||
"label": "Breathing Mode" | "label": "Breathing Mode", | ||
"description": "Whether the creature can breathe on land or in water", | |||
"example": "Air or water.", | |||
" | "type": "string", | ||
"default": "Air", | |||
"suggested": true | |||
}, | }, | ||
"walkSpeed": { | "walkSpeed": { | ||
"label": "Walk Speed" | "label": "Walk Speed", | ||
"description": "How fast does the creature walk?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | }, | ||
"flySpeed": { | "flySpeed": { | ||
"label": "Fly Speed" | "label": "Fly Speed", | ||
"description": "How fast does the creature fly?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | }, | ||
"swimSpeed": { | "swimSpeed": { | ||
"label": "Swim Speed" | "label": "Swim Speed", | ||
"description": "How fast does the creature swim?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | }, | ||
"jumpHeight": { | "jumpHeight": { | ||
"label": "Jump Height" | "label": "Jump Height", | ||
"description": "Creature's max jump height.", | |||
"default": "0 meters", | |||
"type": "number", | |||
"suggested": true | |||
}, | }, | ||
"accelerationFactor": { | "accelerationFactor": { | ||
"label": "Acceleration Factor" | "label": "Acceleration Factor", | ||
"description": "Time required for the creature to reach max running speed.", | |||
"type": "number", | |||
"default": "0" | |||
}, | }, | ||
"mass": { | "mass": { | ||
"label": "Mass" | "label": "Mass", | ||
"description": "Creature's simulated weight value.", | |||
"example": "100 kg", | |||
"type": "number", | |||
"default": "0 kg", | |||
"suggested": true | |||
}, | }, | ||
"bodyBoxSize": { | "bodyBoxSize": { | ||
"label": "Bodybox Size" | "label": "Bodybox Size", | ||
"description": "Dimensions of the creature's bodybox/hitbox.", | |||
"example": "Width x height x length", | |||
"type": "string", | |||
"default": "0 x 0 x 0", | |||
"suggested": true | |||
}, | }, | ||
"special": { | "special": { | ||
"label": "Special" | "label": "Special", | ||
"description": "Special creature attributes, such as being mountable or laying eggs.", | |||
"example": "Lays eggs, mountable, etc.", | |||
"type": "string" | |||
}, | }, | ||
"drop": { | "drop": { | ||
"label": "Drop" | "label": "Drop", | ||
"description": "Type and quantity of items this creature drops when killed.", | |||
"example": "1-2 Bacon, 1 Rotten Meat (50%)", | |||
"type": "string", | |||
"default": "None", | |||
"suggested": true | |||
}, | }, | ||
"food": { | "food": { | ||
"label": "Food" | "label": "Food", | ||
"description": "Food types this creature enjoys, such as plants or meat.", | |||
"example": "Vegetation, meat, or cannot be fed.", | |||
"type": "string", | |||
"default": "Cannot be fed", | |||
"suggested": true | |||
}, | }, | ||
"minAudibleDistance": { | "minAudibleDistance": { | ||
"label": "Minimum Audible Distance" | "label": "Minimum Audible Distance", | ||
"description": "The minimum audible distance this creature can be heard in blocks.", | |||
"example": "5 blocks", | |||
"type": "number", | |||
"default": "0 blocks" | |||
}, | }, | ||
"herdingBehavior": { | "herdingBehavior": { | ||
"label": "Herding Behavior" | "label": "Herding Behavior", | ||
"description": "Whether this creature travels in herds/packs and sticks close together to creatures of the same type.", | |||
"example": "Yes or no.", | |||
"type": "boolean", | |||
"default": "No" | |||
}, | |||
"hasSpawnerEgg": { | |||
"label": "Spawner Egg", | |||
"description": "Whether the creature has an obtainable spawner egg in the Creative gamemode or not. This parameter only applies to 'rare' animals, such as Orcas or Belugas.", | |||
"example": "Yes or no.", | |||
"type": "boolean", | |||
"default": "Yes" | |||
}, | }, | ||
" | "isMountable": { | ||
"label": " | "label": "Mountable", | ||
"description": "Whether the creature is mountable/ridable with a saddle or not.", | |||
"example": "Yes or no.", | |||
"type": "boolean", | |||
"default": "No" | |||
} | } | ||
}, | }, | ||
"description": "Embeds a customized infobox for displaying creature attributes along the left side of a wiki page. Can be used in conjunction with the | "description": "Embeds a customized infobox for displaying creature attributes along the left side of a wiki page. Can be used in conjunction with the Widget:ModelViewer for displaying creature models.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"title", | "title", | ||
Line 143: | Line 239: | ||
"attackPower", | "attackPower", | ||
"breathingMode", | "breathingMode", | ||
" | "isMountable", | ||
"walkSpeed", | "walkSpeed", | ||
"flySpeed", | "flySpeed", | ||
Line 156: | Line 252: | ||
"minAudibleDistance", | "minAudibleDistance", | ||
"herdingBehavior", | "herdingBehavior", | ||
" | "hasSpawnerEgg" | ||
] | ] | ||
} | } |
Latest revision as of 01:02, 3 August 2025
Embeds a customized infobox for displaying creature attributes along the left side of a wiki page. Can be used in conjunction with the Widget:ModelViewer for displaying creature models.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Creature Title | title | Name of the creature.
| String | required |
Creature Model | model | Source for creature model or image. Templates are recommended but static files can be passed as well.
| Template | required |
Appearance Biome | appearanceBiome | What general biomes/regions the creature spawns in.
| String | suggested |
Attack Resilience | attackResilience | Creature's resilience to attacks.
| Number | optional |
Fire Resilience | fireResilience | Creature's resistance to fire damage.
| Number | optional |
Fall Resilience | fallResilience | Creature's resistance to fall damage.
| Number | optional |
Attack Power | attackPower | Creature's average damage inflicted per hit.
| Number | optional |
Breathing Mode | breathingMode | Whether the creature can breathe on land or in water
| String | suggested |
Mountable | isMountable | Whether the creature is mountable/ridable with a saddle or not.
| Boolean | optional |
Walk Speed | walkSpeed | How fast does the creature walk?
| Number | optional |
Fly Speed | flySpeed | How fast does the creature fly?
| Number | optional |
Swim Speed | swimSpeed | How fast does the creature swim?
| Number | optional |
Jump Height | jumpHeight | Creature's max jump height.
| Number | suggested |
Acceleration Factor | accelerationFactor | Time required for the creature to reach max running speed.
| Number | optional |
Mass | mass | Creature's simulated weight value.
| Number | suggested |
Bodybox Size | bodyBoxSize | Dimensions of the creature's bodybox/hitbox.
| String | suggested |
Special | special | Special creature attributes, such as being mountable or laying eggs.
| String | optional |
Drop | drop | Type and quantity of items this creature drops when killed.
| String | suggested |
Food | food | Food types this creature enjoys, such as plants or meat.
| String | suggested |
Minimum Audible Distance | minAudibleDistance | The minimum audible distance this creature can be heard in blocks.
| Number | optional |
Herding Behavior | herdingBehavior | Whether this creature travels in herds/packs and sticks close together to creatures of the same type.
| Boolean | optional |
Spawner Egg | hasSpawnerEgg | Whether the creature has an obtainable spawner egg in the Creative gamemode or not. This parameter only applies to 'rare' animals, such as Orcas or Belugas.
| Boolean | optional |