Jump to content

Template:Infobox hardware: Difference between revisions

From RetroTechCollection
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 300px; float: right; border-collapse: collapse; background-color: #f9f9f9; border: 1px solid #aaa; margin-left: 1em;"
{| class="infobox" style="width:25em; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9; margin:0.5em 1em 0.5em 0; padding:0.2em; float:right; clear:right;"
! colspan="2" style="background-color: #606060; color: white; text-align: center;" | {{{title|{{PAGENAME}}}}}
! colspan="2" style="background-color:#ccccff; font-size:120%; text-align:center;" | {{{title|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
|-
|-
{{#if: {{{image|}}} |
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|300px|center]]
| colspan="2" style="text-align: center;" | [[File:{{{image}}}|300px|alt={{{caption|}}}]]<br /><small>{{{caption|}}}</small>
}}
{{#if:{{{caption|}}}|
|-
| colspan="2" style="text-align:center; font-style:italic;" | {{{caption}}}
}}
{{#if:{{{type|}}}|
|-
! style="text-align:left; width:35%; background-color:#eeeeff;" | Type
| {{{type}}}
}}
{{#if:{{{designer|}}}|
|-
! style="text-align:left; background-color:#eeeeff;" | Designer
| {{{designer}}}
}}
{{#if:{{{manufacturer|}}}|
|-
|-
! style="text-align:left; background-color:#eeeeff;" | Manufacturer
| {{{manufacturer}}}
}}
}}
{{#if: {{{type|}}} |
{{#if:{{{layers|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Type
| style="padding: 5px;" | {{{type}}}
|-
|-
! style="text-align:left; background-color:#eeeeff;" | Layers
| {{{layers}}}
}}
}}
{{#if: {{{designer|}}} |
{{#if:{{{release_date|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Designer
| style="padding: 5px;" | {{{designer}}}
|-
|-
! style="text-align:left; background-color:#eeeeff;" | Release Date
| {{{release_date}}}
}}
}}
{{#if: {{{layers|}}} |
{{#if:{{{compatibility|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Layers
| style="padding: 5px;" | {{{layers}}}
|-
|-
! style="text-align:left; background-color:#eeeeff;" | Compatibility
| {{{compatibility}}}
}}
}}
{{#if: {{{compatibility|}}} |
{{#if:{{{features|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Compatibility
| style="padding: 5px;" | {{{compatibility}}}
|-
|-
! style="text-align:left; background-color:#eeeeff;" | Features
| {{{features}}}
}}
}}
{{#if: {{{features|}}} |
! scope="row" style="text-align: left; padding: 5px;" | Features
| style="padding: 5px;" | {{{features}}}
|}}
|}
|}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Use this template to create consistent hardware infoboxes across your pages.
=== Syntax ===
<pre>
<pre>
{{Infobox hardware
{{Infobox hardware
| title        =  
| title        = Name of the Hardware
| image        =  
| image        = example.jpg
| caption      =  
| caption      = Description of the image
| type          =  
| type          = Type of hardware (e.g., Logic Board, CPU, GPU)
| designer      =  
| designer      = Who designed it
| layers        =  
| manufacturer  = Manufacturer name (optional)
| compatibility =  
| layers        = PCB layer count or other relevant info
| features      =  
| release_date  = Date of release (optional)
| compatibility = Compatible devices or models
| features      = Main features or highlights
}}
}}
</pre>
</pre>


=== Example ===
== Example ==
<pre>
<pre>
{{Infobox hardware
{{Infobox hardware
| title        = Macintosh SE/30 Reloaded Logic Board
| title        = Macintosh SE/30 Reloaded Logic Board
| image        = SE30_Reloaded_Board.jpg
| image        = SE30_Reloaded_Board.jpg
| caption      = Fully assembled board
| caption      = Fully assembled SE/30 Reloaded Logic Board
| type          = Logic Board
| type          = Logic Board
| designer      = Community Designed
| designer      = Community Designed
Line 64: Line 78:
}}
}}
</pre>
</pre>
[[Category:Templates|Infobox hardware]]
</noinclude>
</noinclude>

Revision as of 19:17, 29 March 2025


Usage

{{Infobox hardware
| title         = Name of the Hardware
| image         = example.jpg
| caption       = Description of the image
| type          = Type of hardware (e.g., Logic Board, CPU, GPU)
| designer      = Who designed it
| manufacturer  = Manufacturer name (optional)
| layers        = PCB layer count or other relevant info
| release_date  = Date of release (optional)
| compatibility = Compatible devices or models
| features      = Main features or highlights
}}

Example

{{Infobox hardware
| title         = Macintosh SE/30 Reloaded Logic Board
| image         = SE30_Reloaded_Board.jpg
| caption       = Fully assembled SE/30 Reloaded Logic Board
| type          = Logic Board
| designer      = Community Designed
| layers        = 4-layer PCB
| compatibility = Macintosh SE/30
| features      = Modern design, Original Apple ASIC integration
}}