(Added truthtable styles) |
No edit summary |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src=Infobox/styles.css/><templatestyles src=Truthtable/styles.css/> | <templatestyles src=Infobox/styles.css/><templatestyles src=Truthtable/styles.css/> | ||
{| class="wikitable infobox" style="float:right;" | {| class="wikitable infobox" {{#if:{{{nofloat|}}}||style="float:right;"}} | ||
|+ {{{component|{{{Component|{{SUBPAGENAME}}}}}}}} | |+ {{{component|{{{Component|{{SUBPAGENAME}}}}}}}} | ||
| colspan=2 class=component-thumb | [[File:{{{image|Component {{{component|{{SUBPAGENAME}}}}}.png}}}|frameless|100x100px]] | | colspan=2 class=component-thumb | [[File:{{{image|Component {{{internal-enum|{{{component|{{SUBPAGENAME}}}}}}}}.png}}}|frameless|100x100px]] | ||
|- | |- | ||
{{#if:{{{bit-width|}}}| | {{#if:{{{bit-width|}}}| | ||
! Width | ! Width | ||
{{!}} {{{bit-width}}} [[Category:{{{bit-width}}}bit component]] | {{!}} {{{bit-width}}} {{#if:{{{nocategory|}}}||[[Category:{{{bit-width}}}bit component]]}} | ||
{{!}}-}} | {{!}}-}} | ||
! Type | ! Type | ||
| {{{type|}}}{{#if:{{{subtype|}}}| / {{{subtype}}}}} {{#if:{{{type|}}}|[[Category:{{{type}}} component]] {{#if:{{{subtype|}}}|[[Category:{{{type}}}-{{{subtype}}} component]]}}}} | | {{{type|}}}{{#if:{{{subtype|}}}| / {{{subtype}}}}} {{#if:{{{type|}}}|{{#if:{{{nocategory|}}}||[[Category:{{{type}}} component]]}} {{#if:{{{subtype|}}}|{{#if:{{{nocategory|}}}||[[Category:{{{type}}}-{{{subtype}}} component]]}}}}}} | ||
|- | |- | ||
{{#if:{{{gate-cost|}}}| | |||
! Gates | |||
{{!}} {{{gate-cost}}} | |||
{{!}}-}} | |||
{{#if:{{{delay-cost|}}}| | |||
! Delay | |||
{{!}} {{{delay-cost}}} | |||
{{!}}-}} | |||
{{#if:{{{prerequisite|}}}| | {{#if:{{{prerequisite|}}}| | ||
! Unlocked by | ! Unlocked by | ||
{{!}} {{Level|{{{prerequisite}}}}} | {{!}} {{Level|{{{prerequisite}}}}} | ||
{{!}}- | {{!}}-}} | ||
}} | {{#if:{{{internal-enum|}}}| | ||
|}[[Category:component]]<noinclude> | ! Internal ID | ||
{{!}} {{{internal-enum}}} {{#if:{{{internal-id|}}}|({{{internal-id}}})}} | |||
{{!}}-}} | |||
|}<includeonly>{{#if:{{{nocategory|}}}||[[Category:component]]}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:52, 7 February 2025
| File:Component Infobox component.png | |
| Type | |
|---|---|
This page has been transcluded from Template:Infobox component/Documentation.
Usage[edit source]
{{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[edit source]
{{Infobox component
| component = 8 Bit NAND
| internal-enum = Nand8
| image = Component Nand8.png
| bit-width = 8
| type = 8bit
| subtype = logic
| prerequisite = Logic Engine
}}
| |
| Width | 8 |
|---|---|
| Type | 8bit / logic |
| Unlocked by | Logic Engine |
| Internal ID | Nand8 |
Skeleton[edit source]
{{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 .-->}}
