Template:Infobox component: Difference between revisions

Template page
(Added internal-enum)
m (Removed extra braces)
Line 19: Line 19:
{{!}} {{{internal-enum}}} {{#if:{{{internal-id|}}}|({{{internal-id}}})}}
{{!}} {{{internal-enum}}} {{#if:{{{internal-id|}}}|({{{internal-id}}})}}
{{!}}-}}
{{!}}-}}
}}
|}<includeonly>{{#if:{{{nocategory|}}}||[[Category:component]]}}</includeonly><noinclude>
|}<includeonly>{{#if:{{{nocategory|}}}||[[Category:component]]}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 11:18, 31 August 2024

Infobox component
File:Component Infobox component.png
Type

This page has been transcluded from Template:Infobox component/Documentation.


Usage

{{Infobox component
| component     = In-game display name. Optional, defaults to subpage name
| internal-enum = Internal unique ID. Optional, defaults to {{{component}}}.
| image         = Defaults to "Component {{{internal-enum}}}.png"
| bit-width     = One of 1; 8; 16; 32; 64 (Optional)
| type          = One of 1bit; 8bit; 16bit; 32bit; 64bit; io; (Required)
| subtype       = One of display; logic; math; probe; ram; sandb (Optional)
| prerequisite  = Level that unlocks this component (Optional)
| nocategory    = Set to 1, or any value, to prevent the page from being included in any of the compoment categories
| nofloat       = Set to 1, or any value, to prevent the table from floating on the right hand side
}}

Example

{{Infobox component
| component     = 8 Bit NAND
| internal-enum = Nand8
| image         = Component Nand8.png
| bit-width     = 8
| type          = 8bit
| subtype       = logic
| prerequisite  = Logic Engine
}}
8 Bit NAND
Width 8
Type 8bit / logic
Unlocked by Logic Engine
Interal ID Nand8

Skeleton

{{Infobox component
| component     = <!-- In-game display name. Optional, defaults to subpage name -->
| internal-enum = <!-- Internal unique ID. Optional, defaults to {{{component}}} -->
| image         = <!-- Defaults to "Component {{{internal-enum}}}.png" -->
| bit-width     = <!-- One of 1; 8; 16; 32; 64 (Optional) -->
| type          = <!-- One of 1bit; 8bit; 16bit; 32bit; 64bit; io; (Required) -->
| subtype       = <!-- One of display; logic; math; probe; ram; sandb (Optional) -->
| prerequisite  = <!-- Level that unlocks this component (Optional) -->
| nocategory    = <|-- Set to 1, or any value, to prevent the page from being included in the Guide Category -->
| nofloat       = <!-- Set to 1, or any value, to prevent the table from floating on the right hand side .-->}}