Jump to content

Template:Infobox component: Difference between revisions

From Logic World Wiki
add wip templatedata
Line 1: Line 1:
<templatedata>
{
  "description": "Renders an infobox for a Logic World component",
  "params": {
    "title": {
      "description": "The title shown above and outside the infobox, usually the name of the gate.",
      "required": true,
      "type": "string"
    },
    "id": {
      "description": "The ID of the component as specified in its .jecs definition file.",
      "required": true,
      "type": "string"
    },
    "image": {
      "description": "The main image to show on the infobox, usually a 200px render of the component.",
      "type": "wiki-file-name",
      "default": "<id>_thumbnail_render.png"
    },
    "configurable": {
      "description": "Whether this component can be configured after being placed in order to e.g. change the number of inputs.",
      "default": "0",
      "type": "boolean"
    }
  }
}
</templatedata>
<includeonly>{{#invoke:Infobox|component}}</includeonly>
<includeonly>{{#invoke:Infobox|component}}</includeonly>

Revision as of 10:42, 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.

Stringrequired
idid

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

Stringrequired
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