Jump to content

Template:Infobox component: Difference between revisions

From Logic World Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
<templatedata>
<templatedata>
{
{
  "description": "Renders an infobox for a Logic World component",
"description": "Renders an infobox for a Logic World component",
  "params": {
"params": {
    "title": {
"title": {
      "description": "The title shown above and outside the infobox, usually the name of the gate.",
"description": "The title shown above and outside the infobox, usually the name of the gate.",
      "required": true,
"required": true,
      "type": "string"
"type": "line"
    },
},
    "id": {
"id": {
      "description": "The ID of the component as specified in its .jecs definition file.",
"description": "The ID of the component as specified in its .jecs definition file.",
      "required": true,
"required": true,
      "type": "string"
"type": "line"
    },
},
    "image": {
"image": {
      "description": "The main image to show on the infobox, usually a 200px render of the component.",
"description": "The main image to show on the infobox, usually a 200px render of the component.",
      "type": "wiki-file-name",
"type": "wiki-file-name",
      "default": "<id>_thumbnail_render.png"
"default": "<id>_thumbnail_render.png"
    },
},
    "configurable": {
"configurable": {
      "description": "Whether this component can be configured after being placed in order to e.g. change the number of inputs.",
"description": "Whether this component can be configured after being placed in order to e.g. change the number of inputs.",
      "default": "0",
"default": "0",
      "type": "boolean"
"type": "boolean"
    }
},
  }
"io.minInputs": {
"description": "The minimum amount of inputs that the component can have, e.g. the AND gate must have at least two inputs.",
"type": "number"
},
"io.maxInputs": {
"description": "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.",
"type": "number"
},
"io.outputs": {
"description": "The number of outputs this component has.",
"type": "number"
},
"io.propagationDelay": {
"description": "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).",
"type": "number"
}
}
}
}
</templatedata>
</templatedata>
</includeonly>
</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