Template:Printer specs full

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


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:


  • 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)"


  • ports-serial - The number of serial ports, if any, e.g. "2".
  • ports-ethernet - The number and type of ethernet connector, if any, e.g. "1 (AAUI-15)".


  • 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.".
  • 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)".
  • clone - If this machine is a clone, replica, or Apple-compatible, which machine or series is it based on?


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|






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)