Jump to content

Template:Infobox computer: Difference between revisions

From RetroTechCollection
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<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;">
<!-- =========================================================
    Generic Infobox for RetroTechCollection computer articles
    Fields left empty are automatically suppressed.
    ========================================================= -->
{| class="infobox" style="width:320px; float:right; margin-left:10px; background:#f9f9f9; border:1px solid #aaa; font-size:90%; line-height:1.45em;"


|+ style="font-size:125%; font-weight:bold;" | {{{name|Computer Model}}}
<!-- Title --><caption style="font-size:125%; font-weight:bold; text-align:center;">{{{name|Computer Model}}}</caption><!-- Logo (optional) -->{{#if:{{{logo|}}}|<tr><td colspan="2" style="text-align:center;">{{{logo}}}</td></tr>}}


<!-- Logo (optional) -->
<!-- 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>}}
{{#if:{{{logo|}}}
|-
| colspan="2" style="text-align:center;" | {{{logo}}}
}}


<!-- Main image -->
<tr><th>Manufacturer</th><td>{{{manufacturer|Unknown}}}</td></tr>
|-
<tr><th>Type</th><td>{{{type|Personal computer}}}</td></tr>
| colspan="2" style="text-align:center;" |
{{#if:{{{release_date|{{{release date|}}}}}}|<tr><th>Released</th><td>{{{release_date|{{{release date}}}}}}</td></tr>}}
  {{#if:{{{image|}}}
{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td>{{{discontinued}}}</td></tr>}}
  | {{{image}}}
{{#if:{{{price|}}}|<tr><th>Intro&nbsp;price</th><td>{{{price}}}</td></tr>}}
  | [[File:No_image.svg|260px]]
{{#if:{{{units_sold|}}}|<tr><th>Units&nbsp;sold</th><td>{{{units_sold}}}</td></tr>}}
  }}
<tr><th>CPU</th><td>{{{cpu|—}}}</td></tr>
{{#if:{{{caption|}}}
<tr><th>Memory</th><td>{{{memory|—}}}</td></tr>
|-
<tr><th>Storage</th><td>{{{storage|—}}}</td></tr>
| colspan="2" style="font-size:85%; text-align:center;" | ''{{{caption}}}''
<tr><th>Display</th><td>{{{display|—}}}</td></tr>
}}
<tr><th>Sound</th><td>{{{sound|—}}}</td></tr>
 
{{#if:{{{dimensions|}}}|<tr><th>Dimensions</th><td>{{{dimensions}}}</td></tr>}}
<!-- Separator -->
{{#if:{{{weight|}}}|<tr><th>Weight</th><td>{{{weight}}}</td></tr>}}
|-
<tr><th>OS&nbsp;/ Firmware</th><td>{{{os|—}}}</td></tr>
| colspan="2" style="background:#ddd; text-align:center; font-weight:bold;" | Specifications
{{#if:{{{predecessor|}}}|<tr><th>Predecessor</th><td>{{{predecessor}}}</td></tr>}}
 
{{#if:{{{successor|}}}|<tr><th>Successor</th><td>{{{successor}}}</td></tr>}}
<!-- Two‑column spec rows – each suppressed if blank -->
{{#if:{{{codename|}}}|<tr><th>Codename</th><td>{{{codename}}}</td></tr>}}
{{#if:{{{developer|}}}
{{#if:{{{model|}}}|<tr><th>Model&nbsp;no.</th><td>{{{model}}}</td></tr>}}</table></includeonly><noinclude>
|-
! style="width:40%;" | Developer
| {{{developer}}}
}}
|-
! Manufacturer
| {{{manufacturer|Unknown}}}
|-
! Type
| {{{type|Personal computer}}}
{{#if:{{{release_date|}}}
|-
! Released
| {{{release_date}}}
}}
{{#if:{{{discontinued|}}}
|-
! Discontinued
| {{{discontinued}}}
}}
{{#if:{{{price|}}}
|-
! Intro price
| {{{price}}}
}}
|-
! CPU
| {{{cpu|—}}}
|-
! Memory
| {{{memory|—}}}
|-
! Storage
| {{{storage|—}}}
|-
! Display
| {{{display|—}}}
|-
! Sound
| {{{sound|—}}}
{{#if:{{{dimensions|}}}
|-
! Dimensions
| {{{dimensions}}}
}}
{{#if:{{{weight|}}}
|-
! Weight
| {{{weight}}}
}}
|-
! OS / Firmware
| {{{os|—}}}
{{#if:{{{predecessor|}}}
|-
! Predecessor
| {{{predecessor}}}
}}
{{#if:{{{successor|}}}
|-
! Successor
| {{{successor}}}
}}
{{#if:{{{codename|}}}
|-
! Codename
| {{{codename}}}
}}
{{#if:{{{model|}}}
|-
! Model no.
| {{{model}}}
}}
 
|}<!-- end infobox -->
</includeonly>
 
<noinclude>
== Usage ==
== Usage ==
Paste the following skeleton into any computer article and fill in the fields you have—empty parameters are hidden automatically:
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.Example skeleton – supply only the fields you need (blank ones are hidden automatically):


<pre>
<pre>
{{Infobox computer
{{Infobox computer
| name          = Apple I
| name          = Apple I
| logo          = [[File:Apple Computer Inc Logo.svg|100px]]
| logo          = [[File:Apple Computer Inc Logo.svg|90px]]
| image        = [[File:Apple_I_motherboard.jpg|260px]]
| image        = [[File:Apple_I_motherboard.jpg|260px|frameless]]
| caption      = Original “NTI” board
| caption      = Original “NTI” board
| developer    = Apple Computer Company
| developer    = Apple Computer Company
Line 125: Line 38:
| discontinued  = September 1977
| discontinued  = September 1977
| price        = US$666.66
| price        = US$666.66
| cpu          = MOS 6502 @ 1 MHz
| cpu          = MOS 6502 @ 1 MHz
| memory        = 4 KB RAM (expandable to 48 KB)
| memory        = 4 KB RAM (expandable to 48 KB)
| storage      = Cassette interface @ 1200 baud
| storage      = Cassette interface @ 1200 baud
| display      = Composite video, 40 × 24 text
| display      = Composite video, 40 × 24 text
| sound        = None
| dimensions    = 15 in × 9 in PCB
| weight        = ≈ 1.6 lb
| os            = WOZ Monitor ROM
| os            = WOZ Monitor ROM
| predecessor  = —
| successor    = [[Apple II]]
| successor    = [[Apple II]]
| codename      = Apple‑1
| model        = Byte Shop & NTI revisions
| model        = Byte Shop & NTI revisions
}}
}}
</pre>
</pre></noinclude>
 
Feel free to add or remove parameters as your articles require.
</noinclude>

Latest revision as of 22:22, 19 April 2025

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.Example skeleton – supply only the fields you need (blank ones are hidden automatically):

{{Infobox computer
| name          = Apple I
| logo          = [[File:Apple Computer Inc Logo.svg|90px]]
| image         = [[File:Apple_I_motherboard.jpg|260px|frameless]]
| caption       = Original “NTI” board
| developer     = Apple Computer Company
| manufacturer  = Apple Computer Company
| type          = Single‑board personal computer
| release_date  = April 11, 1976
| discontinued  = September 1977
| price         = US$666.66
| cpu           = MOS 6502 @ 1 MHz
| memory        = 4 KB RAM (expandable to 48 KB)
| storage       = Cassette interface @ 1200 baud
| display       = Composite video, 40 × 24 text
| os            = WOZ Monitor ROM
| successor     = [[Apple II]]
| model         = Byte Shop & NTI revisions
}}