Jump to content

Template:Infobox component: Difference between revisions

From Logic World Wiki
No edit summary
No edit summary
 
Line 44: Line 44:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<includeonly>{{#invoke:Infobox|component}}</includeonly>
<includeonly>{{#invoke:Infobox|component}}</includeonly>

Latest revision as of 11:21, 7 September 2025

Renders an infobox for a Logic World component

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

The title shown above and outside the infobox, usually the name of the gate.

Linerequired
idid

The ID of the component as specified in its .jecs definition file.

Linerequired
imageimage

The main image to show on the infobox, usually a 200px render of the component.

Default
<id>_thumbnail_render.png
Fileoptional
configurableconfigurable

Whether this component can be configured after being placed in order to e.g. change the number of inputs.

Default
0
Booleanoptional
io.minInputsio.minInputs

The minimum amount of inputs that the component can have, e.g. the AND gate must have at least two inputs.

Numberoptional
io.maxInputsio.maxInputs

For components with an adjustable amount of inputs, this argument specifies the maximum number of inputs, e.g. the AND gate can have at most 4 inputs.

Numberoptional
io.outputsio.outputs

The number of outputs this component has.

Numberoptional
io.propagationDelayio.propagationDelay

The number of ticks that this component takes before its outputs reflect its internal state, whether through setting outputs or interacting with the world in some other way (e.g. displays).

Numberoptional