Jump to content

Template:CreatureInfoBox: Difference between revisions

From Survivalcraft Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 47: Line 47:
   <tr><td colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Creature Infobox Explanation]]</strong></td></tr>
   <tr><td colspan="2" class="game-infobox-attribute" style="text-align: center"><strong>[[Creature Infobox Explanation]]</strong></td></tr>
</table>
</table>
</includeonly>
</span>
<span>
<includeonly>
<style>
.game-infobox {
font-family: 'Rubik';
border-spacing: 0;
border-collapse: separate;
float: right;
margin: 0.5rem 5px 0.5rem 2rem;
max-width: 240px;
min-width: 200px;
}
.game-infobox-title {
background-color: #287308;
color: white;
padding: 0.5rem 2.5rem 0.5rem 2.5rem;
font-size: 16px;
}
.game-infobox-header {
width: 240px;
background-color: #287308;
color: white;
font-size: 14px;
padding: 0.5rem;
}
.game-infobox-attribute {
width: 70px;
font-size: 12px;
padding: 0.5rem;
}
.game-infobox-argument {
font-size: 12px;
padding: 0.5rem;
}
.game-infobox tr th, .game-infobox tr td {
  border-right: 1px solid rgba(40,115,8,0.5);
  border-bottom: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr th:first-child,
.game-infobox tr td:first-child {
  border-left: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr th {
  border-top: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr:first-child th:first-child {
  border-top-left-radius: 2px;
}
.game-infobox tr:first-child th:last-child {
  border-top-right-radius: 2px;
}
.game-infobox tr:last-child td:first-child {
  border-bottom-left-radius: 2px;
}
.game-infobox tr:last-child td:last-child {
  border-bottom-right-radius: 2px;
}
</style>
</includeonly>
</includeonly>
</span>
</span>

Revision as of 21:46, 31 July 2025

Embeds a customized infobox for displaying creature attributes along the left side of a wiki page. Can be used in conjunction with the <code>Widget:ModelViewer</code> for displaying creature models.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Creature Titletitle

Name of the creature.

Example
"Brown Bear"
Stringsuggested
Modelmodel

Source for creature model or image. Templates are recommended but static files can be passed as well.

Example
{{#widget:ModelViewer}}
Templatesuggested
Appearance BiomeappearanceBiome

Biome(s) the creature inhabits.

Example
Forests, Jungles, etc.
Stringsuggested
Attack ResilienceattackResilience

Creature's resistance to attacks.

Numberoptional
Fire ResiliencefireResilience

Creature's resistance to fire damage.

Numberoptional
Fall ResiliencefallResilience

Creature's resistance to fall damage.

Numberoptional
Attack PowerattackPower

Creature's attack power.

Numberoptional
Breathing ModebreathingMode

Does the creature breathe in air or water?

Example
Air or water.
Stringoptional
Mountablemountable

Is the creature mountable?

Example
Yes or no.
Booleanoptional
Walk SpeedwalkSpeed

How fast does the creature walk?

Example
15 km/h
Numberoptional
Fly SpeedflySpeed

no description

Unknownoptional
Swim SpeedswimSpeed

no description

Unknownoptional
Jump HeightjumpHeight

no description

Unknownoptional
Acceleration FactoraccelerationFactor

no description

Unknownoptional
Massmass

no description

Unknownoptional
Bodybox SizebodyBoxSize

no description

Unknownoptional
Specialspecial

no description

Unknownoptional
Dropdrop

no description

Unknownoptional
Foodfood

no description

Unknownoptional
Minimum Audible DistanceminAudibleDistance

no description

Unknownoptional
Herding BehaviorherdingBehavior

no description

Unknownoptional
Spawner EggspawnerEgg

no description

Unknownoptional