Template:Infobox computer2: Difference between revisions

From Sinclair Wiki
Jump to navigation Jump to search
(Fancier version of Template:Infobox computer, which disappears empty rows)
 
(At least we can make the title bit work)
 
Line 1: Line 1:
<div style="float:right">
<div style="float:right">
<div style="text-align:center">'''Infobox: {{#if: {{{name}}} | {{{name}}} | {{PAGENAME}}}}'''</div>
<div style="text-align:center">'''Infobox: {{{name|{{PAGENAME}}}}}'''</div>
{| border="1" cellspacing="0" cellpadding="5" style="text-align:center"
{| border="1" cellspacing="0" cellpadding="5" style="text-align:center"
|-{{#if: {{{manu}}}|{{#!:| Manufacturer || {{{manu}}}}}|}}
|-{{#if: {{{manu}}}|{{#!:| Manufacturer || {{{manu}}}}}|}}

Latest revision as of 20:19, 3 June 2011

Infobox: Infobox computer2

Fancier version of Template:Infobox computer, which disappears empty rows.

This template won't work unless/until the ParserFunctions and Pipe Escape extensions are installed. (If it still doesn't work then, it means I've screwed up)

Parameters (all optional):

  • name - the name of the computer the infobox is about. If not supplied, the page name is used.
  • manu - the manufacturer (eg. Sinclair Research)
  • volume - the volume manufactured. E.g. "4M units", "Large scale", or "Prototype only"
  • cpu - the CPU
  • rom - size of ROM
  • ram - size of RAM

If we ever get this template working, add the remaining items from Template:Infobox computer