Template:Infobox computer hardware/doc: Difference between revisions

Content deleted Content added
fix code
fix code
Line 5:
 
==Usage==
{{Parameter names example|name|logo|logo captionlogo_caption|logo-size|image|image-size|caption|invent-date|invent-name|conn1|via1_1|via1_2|via1_3|via1_4|via1_5|via1_6|via1_7|via1_8|via1_9|conn2|via2_1|via2_2|via2_3|via2_4|via2_5|via2_6|via2_7|via2_8|via2_9|conn3|via3_1|via3_2|via3_3|via3_4|via3_5|via3_6|via3_7|via3_8|via3_9|conn4|via4_1|via4_2|via4_3|via4_4|via4_5|via4_6|via4_7|via4_8|via4_9|class1|class-name|class2|class3|class4|class5|class6|manuf1|manuf2|manuf3|manuf4|manuf5|manuf6|manuf7|designfirm|manufacturer|introduced|discontinued|cost|type|processor|frequency|memory|coprocessor|connection|ports|power|weight|dimensions|rom|slots|color|dpi|speed|language}}
 
<pre style="overflow: auto;">
{{Infobox computer hardware
| name =
| logo =
| logo-size caption = =
| logo_caption =
| image =
| image-size =
| caption =
| invent-date =
Line 34 ⟶ 37:
| connection =
| ports =
| power =
| color =
| dpi =
| speed =
| language =
| power =
| weight =
| dimensions =
Line 49 ⟶ 52:
;name: Device name
;logo: Logo for the top of the infobox
;logo captionlogo_caption: Caption of the logo that appears below it. Should not be used to provide trivial captions, such as "This is the logo of X", which is automatically assumed. Reserved for special cases when a description beyond telling the obvious is needed, or for inserting {{tl|ffdc}} or {{tl|deletable image-caption}}.
;image: Image to show in the infobox
;caption: Caption for the image
;invent-date: Date of invention expressed in {{tlx|Start date and age|YYYY|MM|DD|df{{=}}yes/no}}. (See [[Template:Start date and age/doc]] for details.)
;invent-name: Name of inventor
:conn1: What the device connects to (range 1-34)
;via1_1: Possible interface for connection (range 1-9)
;class-name: Name of the subclassing method
;class1: First value in subclassing (range 1-56)
;manuf1: Common manufacturers of the device (range 1-57)
;designfirm: Often, but not always, the same as manufacturer
;manufacturer: Common manufacturers of the device
;introduced: Date of introduction expressed in {{tlx|Start date and age|YYYY|MM|DD|df{{=}}yes/no}}.
;discontinued: Date of discontinuation expressed in {{tlx|StartEnd date and age|YYYY|MM|DD|df{{=}}yes/no}}.
;cost: Introductory price
;type: Type of hardware (extension card/sound card/graphics card...)
Line 68 ⟶ 71:
;frequency: Speed of the processor
;memory: Amount of built in memory, if any, expressed in [[byte]]s or one of the derivative units such as [[kilobyte|kB]], [[Megabyte|MB]] or [[Gigabytes|GB]]
;slots:
;rom:
;coprocessor: Type of coprocessor
;connection: Connection (PCI/PCI-E/USB....)
;ports: Connections on the device, such as PATA, SCSI, SATA...
;power: Power consumption, expressed [[Kilowatt hour|W/kWh]]
;color:
;dpi:
;speed:
;language:
;weight: Device weight, expressed in [[kilogram|kg]]
;dimensions: Width, depth and height of the device, normally expressed in [[centimeters|cm]]
Line 77 ⟶ 86:
All fields, except 'name', are optional
 
The numbered attributes mean that there is allowance for multiples. The <code>via</code> attributes range from <code>via1_1</code> to <code>via3_9via4_9</code> where the first number corresponds to the appropriate connection number and the second number is the position in that connections 'via' list. For each connection (via_1, via_2, via_3 or via_3via_4), there can be up to 9 connectors, via#_1 through via#_9.
 
== Examples ==
Line 85 ⟶ 94:
| conn1 = Motherboard
| via1_1 = cpu socket
| classnameclass-name = Architectures
| class1 = x86
| manuf1 = Intel
Line 95 ⟶ 104:
| conn1 = Motherboard
| via1_1 = cpu socket
| classnameclass-name = Architectures
| class1 = x86
| manuf1 = Intel
Line 140 ⟶ 149:
| via3_1 = Meh
| via3_2 = Yeah
| classnameclass-name = Interfaces
| class1 = IDE
| class2 = ATA
Line 159 ⟶ 168:
| via3_1 = Meh
| via3_2 = Yeah
| classnameclass-name = Interfaces
| class1 = IDE
| class2 = ATA