Template:Infobox component/Documentation: Difference between revisions

Template page
m (Fixed typo)
(Added internal-enum)
Line 2: Line 2:
<pre>
<pre>
{{Infobox component
{{Infobox component
| component   = In game name. Optional, defaults to subpage name
| component     = In-game display name. Optional, defaults to subpage name
| image       = Defaults to "Component {{{component}}}.png"
| internal-enum = Internal unique ID. Optional, defaults to {{{component}}}.
| bit-width   = One of 1; 8; 16; 32; 64 (Optional)
| image         = Defaults to "Component {{{internal-enum}}}.png"
| type         = One of 1bit; 8bit; 16bit; 32bit; 64bit; io; (Required)
| bit-width     = One of 1; 8; 16; 32; 64 (Optional)
| subtype     = One of display; logic; math; probe; ram; sandb (Optional)
| type         = One of 1bit; 8bit; 16bit; 32bit; 64bit; io; (Required)
| prerequisite = Level that unlocks this component (Optional)
| subtype       = One of display; logic; math; probe; ram; sandb (Optional)
| nocategory   = Set to 1, or any value, to prevent the page from being included in any of the compoment categories
| 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
}}
}}
</pre>
</pre>
Line 15: Line 16:
<pre>
<pre>
{{Infobox component
{{Infobox component
| component   = 8 Bit NAND
| component     = 8 Bit NAND
| image       = Component 8 Bit NAND.png
| internal-enum = Nand8.png
| bit-width   = 8
| image         = Component Nand8.png
| type         = 8bit
| bit-width     = 8
| subtype     = logic
| type         = 8bit
| prerequisite = Logic Engine
| subtype       = logic
| prerequisite = Logic Engine
}}
}}
</pre>
</pre>
{{Infobox component
{{Infobox component
| component   = 8 Bit NAND
| component     = 8 Bit NAND
| image       = Component 8 Bit NAND.png
| internal-enum = Nand8.png
| bit-width   = 8
| image         = Component Nand8.png
| type         = 8bit
| bit-width     = 8
| subtype     = logic
| type         = 8bit
| prerequisite = Logic Engine
| subtype       = logic
| nocategory   = 1
| prerequisite = Logic Engine
| nocategory   = 1
}}
}}


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

Revision as of 11:07, 31 August 2024

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
}}

Example

{{Infobox component
| component     = 8 Bit NAND
| internal-enum = Nand8.png
| 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
Internal ID Nand8.png

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 -->