Jump to content

Template:Infobox hardware: Difference between revisions

From RetroTechCollection
Created page with "<includeonly> {| class="infobox" style="width: 300px; float:right; border:1px solid #ccc; background-color:#f9f9f9; font-family:Arial, Helvetica, sans-serif; font-size:90%; line-height:1.4em; margin:0 0 1em 1em; padding:0.2em;" |- ! colspan="2" style="font-size:120%; text-align:center; background-color:#ddeeff;" | {{{title|{{PAGENAME}}}}} {{#if:{{{image|}}}| |- | colspan="2" style="text-align:center;" | [[File:{{{image}}}|300px]]}} {{#if:{{{caption|}}}| |- | colspan="2"..."
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width: 300px; float:right; border:1px solid #ccc; background-color:#f9f9f9; font-family:Arial, Helvetica, sans-serif; font-size:90%; line-height:1.4em; margin:0 0 1em 1em; padding:0.2em;"
{| class="infobox" style="width: 300px; float: right; border-collapse: collapse; background-color: #f9f9f9; border: 1px solid #aaa; margin-left: 1em;"
! colspan="2" style="background-color: #606060; color: white; text-align: center;" | {{{title|{{PAGENAME}}}}}
|-
|-
! colspan="2" style="font-size:120%; text-align:center; background-color:#ddeeff;" | {{{title|{{PAGENAME}}}}}
{{#if: {{{image|}}} |
{{#if:{{{image|}}}|
| colspan="2" style="text-align: center;" | [[File:{{{image}}}|300px|alt={{{caption|}}}]]<br /><small>{{{caption|}}}</small>
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|300px]]}}
}}
{{#if:{{{caption|}}}|
{{#if: {{{type|}}} |
! scope="row" style="text-align: left; padding: 5px;" | Type
| style="padding: 5px;" | {{{type}}}
|-
|-
| colspan="2" style="text-align:center; font-size:85%; font-style:italic;" | {{{caption}}}}}
}}
{{#if:{{{type|}}}|
{{#if: {{{designer|}}} |
! scope="row" style="text-align: left; padding: 5px;" | Designer
| style="padding: 5px;" | {{{designer}}}
|-
|-
! Type
}}
| {{{type}}}}}
{{#if: {{{layers|}}} |
{{#if:{{{designer|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Layers
| style="padding: 5px;" | {{{layers}}}
|-
|-
! Designer
}}
| {{{designer}}}}}
{{#if: {{{compatibility|}}} |
{{#if:{{{layers|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Compatibility
| style="padding: 5px;" | {{{compatibility}}}
|-
|-
! Layers
}}
| {{{layers}}}}}
{{#if: {{{features|}}} |
{{#if:{{{compatibility|}}}|
! scope="row" style="text-align: left; padding: 5px;" | Features
|-
| style="padding: 5px;" | {{{features}}}
! Compatibility
|}}
| {{{compatibility}}}}}
{{#if:{{{features|}}}|
|-
! Features
| {{{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        = Hardware Name
| title        =  
| image        = image.jpg
| image        =  
| caption      = Caption for image
| caption      =  
| type          = Hardware Type
| type          =  
| designer      = Designer Name
| designer      =  
| layers        = Number of PCB Layers
| layers        =  
| compatibility = Compatible Hardware
| compatibility =  
| features      = Key features
| features      =  
}}
}}
</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 SE/30 Reloaded Logic Board
| caption      = Fully assembled board
| type          = Logic Board
| type          = Logic Board
| designer      = Community Designed
| designer      = Community Designed
Line 63: Line 65:
</pre>
</pre>


[[Category:Templates|Infobox hardware]]
</noinclude>
</noinclude>

Revision as of 19:11, 29 March 2025


Usage

Use this template to create consistent hardware infoboxes across your pages.

Syntax

{{Infobox hardware
| title         = 
| image         = 
| caption       = 
| type          = 
| designer      = 
| layers        = 
| compatibility = 
| features      = 
}}

Example

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