Template:Infobox computer hardware: Difference between revisions

Create Infobox computer hardware template — modelled on Infobox computer with processor/IC-specific fields
 
Collapse all blank lines inside <includeonly> — they were generating empty paragraphs that pushed content down on transcluding pages
 
Line 1: Line 1:
<includeonly><table class="infobox" style="width:320px; float:right; margin-left:10px; background:#f9f9f9; border:1px solid #aaa; font-size:90%; line-height:1.4em;">
<includeonly><table class="infobox" style="width:320px; float:right; margin-left:10px; background:#f9f9f9; border:1px solid #aaa; font-size:90%; line-height:1.4em;"><caption style="font-size:125%; font-weight:bold; text-align:center;">{{{name|Hardware Component}}}</caption>{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align:center;">{{{logo}}}</td></tr>}}<tr><td colspan="2" style="text-align:center;">{{{image|[[File:No_image.svg|260px|frameless]]}}}</td></tr>{{#if:{{{caption|}}}|<tr><td colspan="2" style="text-align:center; font-size:85%;">''{{{caption}}}''</td></tr>}}<tr><th colspan="2" style="background:#ddd;">Specifications</th></tr>{{#if:{{{developer|}}}|<tr><th style="width:40%;">Developer</th><td>{{{developer}}}</td></tr>}}<tr><th>Manufacturer</th><td>{{{manufacturer|Unknown}}}</td></tr><tr><th>Type</th><td>{{{type|Microprocessor}}}</td></tr>{{#if:{{{introduced|{{{release_date|{{{release date|}}}}}}}}}|<tr><th>Introduced</th><td>{{{introduced|{{{release_date|{{{release date}}}}}}}}}</td></tr>}}{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td>{{{discontinued}}}</td></tr>}}{{#if:{{{arch|{{{architecture|}}}}}}|<tr><th>Architecture</th><td>{{{arch|{{{architecture}}}}}}</td></tr>}}{{#if:{{{data_width|{{{datawidth|}}}}}}|<tr><th>Data&nbsp;width</th><td>{{{data_width|{{{datawidth}}}}}}</td></tr>}}{{#if:{{{address_width|{{{addresswidth|}}}}}}|<tr><th>Address&nbsp;width</th><td>{{{address_width|{{{addresswidth}}}}}}</td></tr>}}{{#if:{{{clock|{{{frequency|}}}}}}|<tr><th>Clock&nbsp;rate</th><td>{{{clock|{{{frequency}}}}}}</td></tr>}}{{#if:{{{cache|}}}|<tr><th>Cache</th><td>{{{cache}}}</td></tr>}}{{#if:{{{process|}}}|<tr><th>Process</th><td>{{{process}}}</td></tr>}}{{#if:{{{transistors|}}}|<tr><th>Transistors&nbsp;/ gates</th><td>{{{transistors}}}</td></tr>}}{{#if:{{{package|}}}|<tr><th>Package</th><td>{{{package}}}</td></tr>}}{{#if:{{{socket|}}}|<tr><th>Socket</th><td>{{{socket}}}</td></tr>}}{{#if:{{{voltage|{{{vcc|}}}}}}|<tr><th>Voltage</th><td>{{{voltage|{{{vcc}}}}}}</td></tr>}}{{#if:{{{power|}}}|<tr><th>Power</th><td>{{{power}}}</td></tr>}}{{#if:{{{instruction_set|{{{isa|}}}}}}|<tr><th>Instruction&nbsp;set</th><td>{{{instruction_set|{{{isa}}}}}}</td></tr>}}{{#if:{{{used_in|{{{application|}}}}}}|<tr><th>Used&nbsp;in</th><td>{{{used_in|{{{application}}}}}}</td></tr>}}{{#if:{{{predecessor|}}}|<tr><th>Predecessor</th><td>{{{predecessor}}}</td></tr>}}{{#if:{{{successor|}}}|<tr><th>Successor</th><td>{{{successor}}}</td></tr>}}{{#if:{{{codename|}}}|<tr><th>Codename</th><td>{{{codename}}}</td></tr>}}{{#if:{{{model|{{{part|}}}}}}|<tr><th>Part&nbsp;number</th><td>{{{model|{{{part}}}}}}</td></tr>}}</table></includeonly><noinclude>
 
<!-- Title --><caption style="font-size:125%; font-weight:bold; text-align:center;">{{{name|Hardware Component}}}</caption><!-- Logo (optional) -->{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align:center;">{{{logo}}}</td></tr>}}
 
<!-- Main image --><tr><td colspan="2" style="text-align:center;">{{{image|[[File:No_image.svg|260px|frameless]]}}}</td></tr>{{#if:{{{caption|}}}|<tr><td colspan="2" style="text-align:center; font-size:85%;">''{{{caption}}}''</td></tr>}}<!-- Header --><tr><th colspan="2" style="background:#ddd;">Specifications</th></tr><!-- Spec rows (each row appears only if the parameter is not blank) -->{{#if:{{{developer|}}}|<tr><th style="width:40%;">Developer</th><td>{{{developer}}}</td></tr>}}
 
<tr><th>Manufacturer</th><td>{{{manufacturer|Unknown}}}</td></tr>
<tr><th>Type</th><td>{{{type|Microprocessor}}}</td></tr>
{{#if:{{{introduced|{{{release_date|{{{release date|}}}}}}}}}|<tr><th>Introduced</th><td>{{{introduced|{{{release_date|{{{release date}}}}}}}}}</td></tr>}}
{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td>{{{discontinued}}}</td></tr>}}
{{#if:{{{arch|{{{architecture|}}}}}}|<tr><th>Architecture</th><td>{{{arch|{{{architecture}}}}}}</td></tr>}}
{{#if:{{{data_width|{{{datawidth|}}}}}}|<tr><th>Data&nbsp;width</th><td>{{{data_width|{{{datawidth}}}}}}</td></tr>}}
{{#if:{{{address_width|{{{addresswidth|}}}}}}|<tr><th>Address&nbsp;width</th><td>{{{address_width|{{{addresswidth}}}}}}</td></tr>}}
{{#if:{{{clock|{{{frequency|}}}}}}|<tr><th>Clock&nbsp;rate</th><td>{{{clock|{{{frequency}}}}}}</td></tr>}}
{{#if:{{{cache|}}}|<tr><th>Cache</th><td>{{{cache}}}</td></tr>}}
{{#if:{{{process|}}}|<tr><th>Process</th><td>{{{process}}}</td></tr>}}
{{#if:{{{transistors|}}}|<tr><th>Transistors&nbsp;/ gates</th><td>{{{transistors}}}</td></tr>}}
{{#if:{{{package|}}}|<tr><th>Package</th><td>{{{package}}}</td></tr>}}
{{#if:{{{socket|}}}|<tr><th>Socket</th><td>{{{socket}}}</td></tr>}}
{{#if:{{{voltage|{{{vcc|}}}}}}|<tr><th>Voltage</th><td>{{{voltage|{{{vcc}}}}}}</td></tr>}}
{{#if:{{{power|}}}|<tr><th>Power</th><td>{{{power}}}</td></tr>}}
{{#if:{{{instruction_set|{{{isa|}}}}}}|<tr><th>Instruction&nbsp;set</th><td>{{{instruction_set|{{{isa}}}}}}</td></tr>}}
{{#if:{{{used_in|{{{application|}}}}}}|<tr><th>Used&nbsp;in</th><td>{{{used_in|{{{application}}}}}}</td></tr>}}
{{#if:{{{predecessor|}}}|<tr><th>Predecessor</th><td>{{{predecessor}}}</td></tr>}}
{{#if:{{{successor|}}}|<tr><th>Successor</th><td>{{{successor}}}</td></tr>}}
{{#if:{{{codename|}}}|<tr><th>Codename</th><td>{{{codename}}}</td></tr>}}
{{#if:{{{model|{{{part|}}}}}}|<tr><th>Part&nbsp;number</th><td>{{{model|{{{part}}}}}}</td></tr>}}</table></includeonly><noinclude>
== Usage ==
== Usage ==
Infobox template for hardware components (microprocessors, chipsets, controllers, expansion cards). Place the infobox '''as the very first line''' of the article with no blank lines above it; otherwise MediaWiki will create an empty paragraph that pushes content down.
Infobox template for hardware components (microprocessors, chipsets, controllers, expansion cards). Place the infobox '''as the very first line''' of the article with no blank lines above it; otherwise MediaWiki will create an empty paragraph that pushes content down.
Line 53: Line 27:
| used_in          = [[IBM PC (5150)]], NEC PC-9801, Olivetti M24
| used_in          = [[IBM PC (5150)]], NEC PC-9801, Olivetti M24
| successor        = [[Intel 80186|80186]], [[Intel 80286|80286]]
| successor        = [[Intel 80186|80186]], [[Intel 80286|80286]]
| codename        = (none)
| model            = 8086
| model            = 8086
}}
}}
Line 66: Line 39:
| name || Component name shown as the infobox title
| name || Component name shown as the infobox title
|-
|-
| logo || Optional logo image (e.g. manufacturer logo)
| logo || Optional logo image
|-
|-
| image || Main image of the component
| image || Main image of the component
Line 82: Line 55:
| discontinued || Discontinuation date
| discontinued || Discontinuation date
|-
|-
| arch (or architecture) || Architecture family (x86, 6502, PALM, etc.)
| arch (or architecture) || Architecture family
|-
|-
| data_width || Data path bit width
| data_width || Data path bit width
Line 98: Line 71:
| package || IC package type
| package || IC package type
|-
|-
| socket || CPU socket type (if applicable)
| socket || CPU socket type
|-
|-
| voltage (or vcc) || Operating voltage
| voltage (or vcc) || Operating voltage
Line 114: Line 87:
| codename || Internal development codename
| codename || Internal development codename
|-
|-
| model (or part) || Part number / model number
| model (or part) || Part number
|}
|}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>