Difference between revisions of "Template:Infobox computer hardware bus"

From blackwiki
Jump to navigation Jump to search
imported>H2g2bob
(alt text)
imported>Thumperward
(modernise this)
Line 1: Line 1:
<noinclude>{{Intricate template}}</noinclude>
+
{{ infobox
{| class="infobox" style="width: 250px;"
+
| title    = {{{name|}}}
| style="background-color: #CCF; text-align: center; font-size: larger; padding: 1px 3px;" colspan="2" | '''{{{name}}}''' {{ #if: {{{fullname|}}} | <br><span style="font-size: small;">''{{{fullname}}}''</span> }}
+
| subheader = {{{fullname|}}}
|-
+
| image    = {{#if:{{{image|}}}|[[file:{{{image}}}|200px|alt={{{alt|}}}}}]]}}
{{#if: {{{image|}}}|
+
| caption  = {{{caption|}}}
{{!}} colspan="2" style="text-align: center; background-color: #fff;" {{!}} [[File:{{{image}}}|200px{{#if:{{{alt|}}}|{{!}}alt={{{alt|}}}}}]]<br><small>{{{caption|}}}</small>
+
 
}}
+
| label1    = Year created
|-
+
| data1    = {{{invent-date|}}}
{{#if: {{{invent-date|}}}|
+
| label2    = Created by
{{!}} '''Year created:'''
+
| data2    = {{{invent-name|}}}
{{!}}{{{invent-date}}}
+
| label3    = Supersedes
}}
+
| data3    = {{{replaces|}}}
|-
+
| label4    = Superseded by
{{#if: {{{invent-name|}}}|
+
| data4    = {{{super-name|}}} {{#if:{{{super-date|}}}|({{{super-date}}})}}
{{!}} '''Created by:'''
+
| label5    = Width in bits
{{!}}{{{invent-name}}}
+
| data5    = {{{width|}}}
}}
+
| label6    = Number of devices
|-
+
| data6    = {{{numdev|}}}
{{#if: {{{replaces|}}}|
+
| label7    = Capacity
{{!}} '''Supersedes:'''
+
| data7    = {{{speed|{{{capacity|}}} }}}
{{!}}{{{replaces}}}
+
| label8    = Style
}}
+
| data8    = {{#switch:{{{style|}}}|s=[[Serial communication|Serial]]|p=[[Parallel communication|Parallel]]|{{{style|}}} }}
|-
+
| label9    = Hotplugging interface
{{#if: {{{super-name|}}}|
+
| data9    = {{{hotplug|}}}
{{!}} '''Superseded by:'''
+
| label10  = External interface
{{!}}{{{super-name}}} {{ #if: {{{super-date|}}} | ({{{super-date}}}) }}
+
| data10    = {{{external|}}}
}}
+
 
|-
+
}}<noinclude>{{doc}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
{{#if: {{{invent-date|{{{invent-name|{{{super-name|}}}}}}}}}|
 
{{!}} colspan="2" {{!}} <hr>  <!-- Divider. Only show if one of the top fields exists -->
 
}}
 
|-
 
{{#if: {{{width|}}}|
 
{{!}} '''Width in bits:'''
 
{{!}}{{{width}}}
 
}}
 
|-
 
{{#if: {{{numdev|}}}|
 
{{!}} '''Number of devices:'''
 
{{!}}{{{numdev}}}
 
}}
 
|-
 
{{#if: {{{speed|{{{capacity|}}}}}}|
 
{{!}} '''Capacity'''
 
{{!}}{{{speed|{{{capacity}}}}}}
 
}}
 
|-
 
{{#if: {{{style|}}}|
 
{{!}} '''Style:'''
 
{{!}}{{ #switch: {{{style|}}} | s = [[Serial communication|Serial]] | p = [[Parallel communication|Parallel]] | {{{style|}}} }}
 
}}
 
|-
 
{{#if: {{{hotplug|}}}|
 
{{!}} '''Hotplugging?'''
 
{{!}}{{{hotplug}}}
 
|
 
{{!}} '''Hotplugging?'''
 
{{!}}no
 
}}
 
|-
 
{{#if: {{{external|}}}|
 
{{!}} '''External?'''
 
{{!}}{{{external}}}
 
|
 
{{!}} '''External?'''
 
{{!}}no
 
}}
 
|}<noinclude>
 
{{Documentation}}
 
</noinclude>
 

Revision as of 12:02, 16 March 2010

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

This template is for computer buses. You could probably also use it for network hardware systems such as Ethernet, although a separate infobox for networks might be a better idea. For generic hardware components, see Template:Infobox computer hardware.

Usage

Template:Parameter names example

{{Infobox computer hardware bus
| name        = Bus Name
| fullname    = Full name
| image       = An image to show in the infobox
| image_size  = Size of the image
| alt         = Description of image for those who cannot see the image (see WP:ALT).
| caption     = A caption for the image
| invent-date = Year of Invention
| invent-name = Name of Inventor
| super-name  = What superseded this bus
| super-date  = When this bus was superseded
| replaces    = What this bus superseded
| width       = Width of the bus in bits
| numdev      = Number of simultaneous connected devices
| speed       = Speed of the bus
| style       = 's' for serial, 'p' for Parallel, or plain text
| hotplug     = Does this bus support Hot-Plugging? (default: no)
| external    = Is this bus external? (default: no)
| website     = Website of the technology or consortium, if available
}}

All fields, except 'name' are optional.

See the talk page for some examples which show the full usage of this infobox in a few combinations.