Jump to content

Template:Infobox computer: Difference between revisions

From RetroTechCollection
No edit summary
No edit summary
 
(11 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;">
{| class="infobox" style="width:300px; float:right; margin-left:10px; background:#f9f9f9; border:1px solid #aaa; padding:5px; font-size:90%; line-height:1.5em;"
 
|+ '''{{{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
<!-- 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>}}
| colspan="2" style="text-align:center;" | {{{image|[[File:logo.svg|250px]]}}}
 
|-
<tr><th>Manufacturer</th><td>{{{manufacturer|Unknown}}}</td></tr>
| colspan="2" style="text-align:center;" | {{{image|[[File:No_image.svg|250px]]}}}
<tr><th>Type</th><td>{{{type|Personal computer}}}</td></tr>
|-
{{#if:{{{release_date|{{{release date|}}}}}}|<tr><th>Released</th><td>{{{release_date|{{{release date}}}}}}</td></tr>}}
! Manufacturer
{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td>{{{discontinued}}}</td></tr>}}
| {{{manufacturer|Unknown}}}
{{#if:{{{price|}}}|<tr><th>Intro&nbsp;price</th><td>{{{price}}}</td></tr>}}
|-
{{#if:{{{units_sold|}}}|<tr><th>Units&nbsp;sold</th><td>{{{units_sold}}}</td></tr>}}
! Type
<tr><th>CPU</th><td>{{{cpu|}}}</td></tr>
| {{{type|Personal Computer}}}
<tr><th>Memory</th><td>{{{memory|}}}</td></tr>
|-
<tr><th>Storage</th><td>{{{storage|}}}</td></tr>
! Release Date
<tr><th>Display</th><td>{{{display|}}}</td></tr>
| {{{release date|Unknown}}}
<tr><th>Sound</th><td>{{{sound|}}}</td></tr>
|-
{{#if:{{{dimensions|}}}|<tr><th>Dimensions</th><td>{{{dimensions}}}</td></tr>}}
! Discontinued
{{#if:{{{weight|}}}|<tr><th>Weight</th><td>{{{weight}}}</td></tr>}}
| {{{discontinued|Unknown}}}
<tr><th>OS&nbsp;/ Firmware</th><td>{{{os|}}}</td></tr>
|-
{{#if:{{{predecessor|}}}|<tr><th>Predecessor</th><td>{{{predecessor}}}</td></tr>}}
! Introductory Price
{{#if:{{{successor|}}}|<tr><th>Successor</th><td>{{{successor}}}</td></tr>}}
| {{{price|Unknown}}}
{{#if:{{{codename|}}}|<tr><th>Codename</th><td>{{{codename}}}</td></tr>}}
|-
{{#if:{{{model|}}}|<tr><th>Model&nbsp;no.</th><td>{{{model}}}</td></tr>}}</table></includeonly><noinclude>
! CPU
| {{{cpu|Unknown}}}
|-
! Memory
| {{{memory|Unknown}}}
|-
! Storage
| {{{storage|Unknown}}}
|-
! Display
| {{{display|Unknown}}}
|-
! Sound
| {{{sound|Unknown}}}
|-
! Dimensions
| {{{dimensions|Unknown}}}
|-
! Weight
| {{{weight|Unknown}}}
|-
! OS
| {{{os|Unknown}}}
|-
! Predecessor
| {{{predecessor|None}}}
|-
! Successor
| {{{successor|None}}}
|-
! Codename
| {{{codename|Unknown}}}
|-
! Model
| {{{model|Unknown}}}
|}
</includeonly><noinclude>
== Usage ==
== Usage ==
To use this template on a page, copy and paste the following:
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         = Macintosh 128K
| name         = Apple I
| logo       = [[File:Macintosh128K.jpg|250px]]
| logo         = [[File:Apple Computer Inc Logo.svg|90px]]
| image       = [[File:Macintosh128K.jpg|250px]]
| image         = [[File:Apple_I_motherboard.jpg|260px|frameless]]
| manufacturer = Apple Computer, Inc.
| caption      = Original “NTI” board
| type         = Personal Computer
| developer    = Apple Computer Company
| release date = January 24, 1984
| manufacturer = Apple Computer Company
| discontinued = October 1, 1985
| type         = Single‑board personal computer
| price       = US$2,495
| release_date  = April 11, 1976
| cpu         = Motorola 68000 @ 7.83 MHz
| discontinued = September 1977
| memory       = 128 KB RAM (not expandable)
| price         = US$666.66
| storage     = 400 KB 3.5" floppy drive
| cpu           = MOS 6502 @ 1 MHz
| display     = 9" monochrome CRT (512×342 pixels)
| memory       = 4 KB RAM (expandable to 48 KB)
| sound        = Monaural 8-bit, 22 kHz (4-voice)
| storage       = Cassette interface @ 1200 baud
| dimensions  = 13.6" H × 9.6" W × 10.9" D
| display       = Composite video, 40 × 24 text
| weight      = 16.5 lbs (7.5 kg)
| os           = WOZ Monitor ROM
| os           = System 1.0 – System 3.2
| successor     = [[Apple II]]
| predecessor  = None
| model         = Byte Shop & NTI revisions
| successor   = [[Macintosh 512K]]
| codename    = Annie, Mac, Twiggy Mac
| model       = M0001
}}
}}
</pre>
</pre></noinclude>
</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
}}