Template:Computer specs full

From 68kMLA Wiki
Jump to: navigation, search
Although this template looks blank, it isn't... it's just very, very, well hidden!

Usage

Note: This template is not meant for direct inclusion. See Help:Templates for how to properly use this template.

Items will only be included in the list if you enter a value for them.

A note on style... please use the binary units and include a space between the value and the unit. For example use "2 MiB" rather than "2MB". The only case where you should use the SI units is for drive sizes as they are calculated in decimal.

Available parameters

The available parameters (with descriptions) are:

General

  • cpu-speed - The CPU Speed, e.g. "8MHz".
  • cpu-type - The CPU Type, e.g. "Motorola MC68000".
  • fpu-type - Whether the machine has an FPU, e.g. "Motorola MC68882" or "Integrated".
  • rom - The size of the machine's ROM, e.g. "128 kiB".
  • bus - The bus speed of the machine, e.g. "8 MHz".
  • data-path - The bus width of the machine, e.g. "32 bit".
  • ram-speed - The minimum RAM speed, e.g. "70 ns".
  • ram-type - The type of RAM the machine takes, e.g. "72-pin SIMM".
  • ram-std - The amount of RAM that shipped with the machine, e.g. "2 MiB".
  • ram-onboard - The amount of RAM soldered onto the machine's motherboard, e.g. "1 MiB".
  • ram-slots - The number of RAM slots, e.g. "1".
  • ram-max-apple - The amount of RAM specified as the max by Apple, e.g. "32 MiB".
  • ram-max-actual - The max if bigger SIMMs work in the machine than Apple specifies, e.g. "64 MiB".
  • cache - The size and type of the cache, e.g. "8 kiB (level 1)"

I/O & Expansion

  • ports-adb - The number of ADB ports, if any, e.g. "1".
  • ports-serial - The number of serial ports, if any, e.g. "2".
  • ports-scsi - The number and type of SCSI connectors, if any, e.g. "1 (DB-25)".
  • ports-floppy - The number of floppy connectors, if any, e.g. "1".
  • ports-ethernet - The number and type of ethernet connector, if any, e.g. "1 (AAUI-15)".
  • ports-modem - The type of modem, if any, e.g. "33 kbps".
  • audio-in - The quality and type of line in, e.g. "16 bit stereo (mini-jack)".
  • audio-out - The quality and type of line out, e.g. "16 bit stereo (mini-jack)".
  • speaker - The type of speaker if any, e.g. "Mono".
  • mic - The type of microphone if any, e.g. "Mono".
  • slots-pds - The type of PDS slots, e.g. "LCIII".
  • slots-nubus - The number of Nubus slots, e.g. "3".

Storage

  • hd-std - The size or range of hard drives that shipped as standard, e.g. "80 MB" or "230 MB - 1 GB".
  • hd-type - The type of the internal hard drive, e.g. "SCSI".
  • floppy - The type and number of the internal drives, e.g. "1.44 MB Superdrive (manual inject)" or "Two 800 kB (auto inject)".
  • cd-std - The optical drive if present, e.g. "CD-ROM".
  • cd-type - The type of the CD drive, e.g. "2x SCSI Caddy".

Video

  • display - Size of built in display is present,, e.g. "9" B&W".
  • resolution - The max resolution and colour depth supported, e.g. "512x342 (1 bit)".
  • vram-std - The VRAM that shipped with the machine, e.g. "1 MiB".
  • vram-onboard - Amount of VRAM soldered to the motherboard, e.g. "512 kiB".
  • vram-slots - The number of VRAM slots, e.g. "4".
  • vram-max - The max amount of VRAM, e.g. "2 MiB".
  • video-in - Video in ports if available, e.g. "S-video, composite".
  • video-out - Video out ports, e.g. "DA-15, composite".

Miscellaneous

  • model-no - Apple model number, e.g. "M0001".
  • codename - Apple code names - , e.g. "Aladdin, Chablis".
  • gestalt - The Gestalt ID of the machine, e.g. "24".
  • power - The rating of the PSU, e.g. "200 W".
  • pram - The type of PRAM battery, e.g. "3.6 V lithium ½-AA".
  • case-style - The machine that originally shipped in that style case, e.g. for a Centris 650 it would be "Macintosh IIvx".
  • width - The width of the case, e.g. "17.7"".
  • depth - The depth of the case, e.g. "14"".
  • height - The height of the case, e.g. "15.75"".
  • weight - The weight of the machine, e.g. "25.3 lbs.".
  • os-mac - The versions of Mac OS supported by the machine, e.g. "7.1 - 8.1".
  • os-aux - The versions of A/UX supported by the machine, e.g. "2.0 - 3.1.1".
  • os-other - Other support OSs, e.g. "Linux, NetBSD".
  • enabler - The enabler needed, if any - , e.g. "003".
  • born-year - The year the machine was introduced, e.g. "1993".
  • born-month - The month the machine was introduced, e.g. "July".
  • died-year - The year the machine was discontinued, e.g. "1994".
  • died-month - The year the machine was discontinued, e.g. "July".
  • msrp - Apple's suggested retail price, in multiple countries if known, e.g. "$6500 (US)".
  • chime-startup - Name of a sound file stored on the wiki for the machine's startup chime (see Category:Startup Chimes), e.g. "Macintosh_LC.mp3".
  • chime-death - Name of a sound file stored on the wiki for the machine's death chime (see Category:Death Chimes), e.g. "Macintosh LC (Death).mp3".
  • clone - If this machine is a clone, replica, or Apple-compatible, which machine or series is it based on?

Unused

The following parameters aren't used in this template but are included for copy/paste compatibility with Template:Computer specs infobox:

  • form-factor
  • alias
  • image
  • series

Template for use in pages

To save a lot of typing simply copy this template and fill in the values. It's fine to leave lines blank... so it's worth leaving them in to make it easier for someone else to fill in the missing values. I would also suggest you copy and paste the first two sections between this template and Template:Computer specs infobox to save typing -- they have been designed with this in mind.

{{computer specs full|
|form-factor=
|alias=
|series=
|image=

|cpu-speed=
|cpu-type=
|fpu-type=
|ram-type=
|ram-max-apple=
|ram-max-actual=
|slots-pds=
|slots-nubus=
|slots-other=
|os-mac=
|os-aux=
|os-other=
|born-month=
|born-year=
|died-month=
|died-year=
|msrp=
|clone=

|rom=
|bus=
|data-path=
|ram-speed=
|ram-std=
|ram-onboard=
|ram-slots=
|cache=

|ports-adb=
|ports-serial=
|ports-scsi=
|ports-floppy=
|ports-ethernet=
|ports-modem=
|audio-in=
|audio-out=
|speaker=
|mic=

|hd-std=
|hd-type=
|floppy=
|cd-std=
|cd-type=

|display=
|resolution=
|vram-std=
|vram-onboard=
|vram-slots=
|vram-max=
|video-in=
|video-out=

|model-no=
|codename=
|gestalt=
|power=
|pram=
|case-style=
|width=
|depth=
|height=
|weight=
|enabler=
|chime-startup=
|chime-death=
}}

Editing

To stop rogue new lines appearing when the template is used, but all the parameters aren't filled in, it's important not to have any line breaks in the template itself. To make it easier to edit, I've replaced the line breaks with html comments like this:

<!--
-->

Each parameter uses ParserFunctions so that it only appears if it's filled out on the template. On lines that only have a single parameter a simple #if is fine. For example:

{{ #if: {{{fpu|}}} | **FPU: ''{{{fpu|}}}'' }}

On lines that contain more than one parameter, the more complicated #ifexpr needs to be used since we either want to show the line if any one of the parameters is there (using the "or" operator) or if they're all there (using the "and" operator). Since the #ifexpr only checks mathematical statements, it's also necessary to use an #if statement to check if a parameter is set and return 1 or 0 depending on it's status. The complete code for a line with two parameters ends up something like this:

{{ #ifexpr: {{ #if: {{{cpu-speed|}}} | 1 | 0 }} or {{ #if: {{{cpu-type|}}} | 1 | 0 }} | **CPU: ''{{{cpu-speed|}}} {{{cpu-type|}}}'' }}

That is also how we check to see if a header should be shown. If you add more parameters in, it's important to also add them to the #ifexpr for the header, so that the header gets included if the parameter is set.

If editing this looks a bit daunting to you, feel free to suggest changes on the talk page and I'll make the changes for you! → ~tl (talk · contribs) 15:07, 21 August 2007 (UTC)