Jump to content

Template:Infobox component: Difference between revisions

From Logic World Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<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": "string"
    },
},
    "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": "string"
    },
},
    "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"
    }
}
  }
}
}
}
</templatedata>
</templatedata>
</includeonly>


<includeonly>{{#invoke:Infobox|component}}</includeonly>
<includeonly>{{#invoke:Infobox|component}}</includeonly>

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