Template:CreatureInfoBox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(75 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span> | |||
<includeonly> | |||
<table id="CreatureInfoBox" class="game-infobox"> | <table id="CreatureInfoBox" class="game-infobox"> | ||
<tr> | <tr><th colspan="2" class="game-infobox-title">{{{title|Creature's Infobox}}}</th></tr> | ||
<th colspan="2" class="game-infobox-title">{{{title|Creature's Infobox}}}</th></tr> | <tr><td colspan="2">{{{model|Creature Model}}}</td></tr> | ||
<tr> | <tr><th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | ||
<td colspan="2">{{{model|Creature Model}}}</td></tr> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Appearance Biome</strong></td> | ||
<tr> | <td style="border-left: 0" class="game-infobox-argument">{{{appearanceBiome|0}}}</td></tr> | ||
<th colspan="2" class="game-infobox-header">General Attributes:</th></tr> | {{#if:{{{attackResilience|}}}| | ||
<tr> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Attack Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{attackResilience|}}}</td></tr>}} {{#if:{{{fireResilience|}}}| | ||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Appearance Biome</strong></td> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fire Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{fireResilience|}}}</td></tr>}} {{#if:{{{fallResilience|}}}| | ||
<td style="border-left: 0" class="game-infobox-argument">{{{appearanceBiome|0}}}</td></tr> | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Fall Resilience</strong></td><td style="border-left: 0" class="game-infobox-argument">{{{fallResilience|}}}</td></tr>}} {{#if:{{{attackPower|}}}| | ||
<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>}} | ||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Attack Resilience</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">{{{attackResilience| | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{breathingMode|}}} | |||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Fire Resilience</strong></td> | | #default = [[File:air.webp|30x30px]] | ||
<td style="border-left: 0" class="game-infobox-argument">{{{fireResilience| | | air = [[File:air.webp|30x30px]] | ||
</tr> | | Air = [[File:air.webp|30x30px]] | ||
| water = [[File:water.webp|30x30px]] | |||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Fall Resilience</strong></td> | | Water = [[File:water.webp|30x30px]]}}</td></tr> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{fallResilience| | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Mountable</strong></td> | ||
</tr> | <td style="border-left: 0" class="game-infobox-argument"> | ||
{{#switch: {{{isMountable|}}} | |||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Attack Power</strong></td> | | #default = [[File:no.webp|20x20px]] | ||
<td style="border-left: 0" class="game-infobox-argument">{{{attackPower| | | yes = [[File:yes.webp|18x18px]] | ||
</tr> | | Yes = [[File:yes.webp|18x18px]] | ||
<tr> | | no = [[File:no.webp|20x20px]] | ||
<td style="border-right: 0" class="game-infobox-attribute"><strong>Breathing Mode</strong></td> | | No = [[File:no.webp|20x20px]]}}</td></tr> | ||
<td style="border-left: 0" class="game-infobox-argument">{{{breathingMode| | <tr><th colspan="2" class="game-infobox-header">Motion:</th></tr> | ||
{{#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</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"> | |||
<td style="border- | {{{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</td></tr>}} | ||
< | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Jump Height</strong></td> | ||
<td style="border- | <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> | |||
<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><td style="border-right: 0" class="game-infobox-attribute"><strong>Mass</strong></td> | |||
<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> | |||
<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> | |||
{{#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"> | |||
{{{special|Eggs, Mountable, etc.}}}</td></tr>}} | |||
<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- | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Food</strong></td> | ||
<td style="border- | <td style="border-left: 0" class="game-infobox-argument">{{{food|Cannot be fed}}}</td></tr> | ||
</ | {{#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>Herding Behavior</strong></td> | ||
</tr> | <td style="border-left: 0" class="game-infobox-argument"> | ||
<tr> | {{#switch: {{{herdingBehavior|}}} | ||
<td style="border-right: 0" class="game-infobox-attribute"><strong> | | #default = [[File:no.webp|20x20px]] | ||
<td style="border-left: 0" class="game-infobox-argument">{{{ | | yes = [[File:yes.webp|18x18px]] | ||
</tr> | | Yes = [[File:yes.webp|18x18px]] | ||
<tr> | | no = [[File:no.webp|20x20px]] | ||
< | | No = [[File:no.webp|20x20px]]}}</td></tr> | ||
<td style="border- | <tr><td style="border-right: 0" class="game-infobox-attribute"><strong>Spawner Egg</strong></td> | ||
</ | <td style="border-left: 0" class="game-infobox-argument"> | ||
< | {{#switch: {{{hasSpawnerEgg|}}} | ||
| #default = [[File:yes.webp|18x18px]] | |||
</tr> | | yes = [[File:yes.webp|18x18px]] | ||
<tr> | | Yes = [[File:yes.webp|18x18px]] | ||
<td style="border-right: 0" class="game-infobox-attribute"><strong> | | no = [[File:no.webp|20x20px]] | ||
<td style="border-left: 0" class="game-infobox-argument">{{{ | | No = [[File:no.webp|20x20px]]}}</td></tr> | ||
</tr> | <tr><td colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Template:CreatureInfoBox|Creature Infobox Explanation]]</strong></td></tr> | ||
<tr> | |||
< | |||
<td style="border- | |||
</ | |||
<td colspan | |||
</tr> | |||
</table> | </table> | ||
</includeonly> | |||
</span> | |||
<span> | |||
<noinclude> | <noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"title": { | |||
"label": "Creature Title", | |||
"description": "Name of the creature.", | |||
"example": "\"Brown Bear\"", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"model": { | |||
"label": "Creature Model", | |||
"description": "Source for creature model or image. Templates are recommended but static files can be passed as well.", | |||
"example": "{{#widget:ModelViewer|parameters}} or [[File:filename.extension|imageSize]]", | |||
"type": "wiki-template-name", | |||
"required": true | |||
}, | |||
"appearanceBiome": { | |||
"label": "Appearance Biome", | |||
"description": "What general biomes/regions the creature spawns in.", | |||
"example": "Forests, jungles, etc.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"attackResilience": { | |||
"label": "Attack Resilience", | |||
"description": "Creature's resilience to attacks.", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"fireResilience": { | |||
"label": "Fire Resilience", | |||
"description": "Creature's resistance to fire damage.", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"fallResilience": { | |||
"label": "Fall Resilience", | |||
"description": "Creature's resistance to fall damage.", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"attackPower": { | |||
"label": "Attack Power", | |||
"description": "Creature's average damage inflicted per hit.", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"breathingMode": { | |||
"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": { | |||
"label": "Walk Speed", | |||
"description": "How fast does the creature walk?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | |||
"flySpeed": { | |||
"label": "Fly Speed", | |||
"description": "How fast does the creature fly?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | |||
"swimSpeed": { | |||
"label": "Swim Speed", | |||
"description": "How fast does the creature swim?", | |||
"example": "15 km/h", | |||
"type": "number" | |||
}, | |||
"jumpHeight": { | |||
"label": "Jump Height", | |||
"description": "Creature's max jump height.", | |||
"default": "0 meters", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"accelerationFactor": { | |||
"label": "Acceleration Factor", | |||
"description": "Time required for the creature to reach max running speed.", | |||
"type": "number", | |||
"default": "0" | |||
}, | |||
"mass": { | |||
"label": "Mass", | |||
"description": "Creature's simulated weight value.", | |||
"example": "100 kg", | |||
"type": "number", | |||
"default": "0 kg", | |||
"suggested": true | |||
}, | |||
"bodyBoxSize": { | |||
"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": { | |||
"label": "Special", | |||
"description": "Special creature attributes, such as being mountable or laying eggs.", | |||
"example": "Lays eggs, mountable, etc.", | |||
"type": "string" | |||
}, | |||
"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": { | |||
"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": { | |||
"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": { | |||
"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": "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 Widget:ModelViewer for displaying creature models.", | |||
"paramOrder": [ | |||
"title", | |||
"model", | |||
"appearanceBiome", | |||
"attackResilience", | |||
"fireResilience", | |||
"fallResilience", | |||
"attackPower", | |||
"breathingMode", | |||
"isMountable", | |||
"walkSpeed", | |||
"flySpeed", | |||
"swimSpeed", | |||
"jumpHeight", | |||
"accelerationFactor", | |||
"mass", | |||
"bodyBoxSize", | |||
"special", | |||
"drop", | |||
"food", | |||
"minAudibleDistance", | |||
"herdingBehavior", | |||
"hasSpawnerEgg" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
</span> |