Template:RenderShipPart

From Cobalt Core Wiki
Jump to navigation Jump to search


This is a work in progress, currently does nothing.

Displays a ship part.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
imageimage

The filename of the image to be used for the ship part.

Stringrequired
hoverhover

Text that appears on hover.

Stringsuggested
faceupfaceup

Controls whether the part faces up or down. By default, this is false.

Booleanoptional
sizesize

Default size is 2x. Other available sizes are 4x and 1x.

Suggested values
1 2 4
Numberoptional
intentTypeintentType

The intent of this part, if any. (Note: Basic attacks do not have an intent icon.)

Stringoptional
intentHoverintentHover

Text to show when hovering over this intent. (This is where to specify details such as what object will be launched, or what status will be applied.)

Stringoptional
attackDamageattackDamage

If this part has an Attack intent, this is the damage it will do.

Numberoptional
dmgtraitdmgtrait

Part trait that modifies damage, if any. Appears on the left.

Suggested values
Weak Brittle Armored
Stringoptional
stuntraitstuntrait

Part trait that modifies stun behavior, if any. Appears on the right.

Suggested values
Concussable
Stringoptional