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

From blackwiki
Jump to navigation Jump to search
imported>Hairy Dude
(use sentence case)
imported>DevUrandom
(Added website field, copied from Template:Infobox software)
 
(17 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 250px;"
+
{{ infobox
| 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> }}
+
| title    = {{{name|}}}
|-
+
| subheader = {{{fullname|}}}
{{#if: {{{image|}}}|
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}}  
{{!}} colspan="2" style="text-align: center; background-color: #fff;" {{!}} [[Image:{{{image}}}|200px]]<br><small>{{{caption|}}}</small>
+
| caption  = {{{caption|}}}
}}
 
|-
 
{{#if: {{{invent-date|}}}|
 
{{!}} '''Year created:'''
 
{{!}}{{{invent-date}}}
 
}}
 
|-
 
{{#if: {{{invent-name|}}}|
 
{{!}} '''Created by:'''
 
{{!}}{{{invent-name}}}
 
}}
 
|-
 
{{#if: {{{super-name|}}}|
 
{{!}} '''Superseded by:'''
 
{{!}}{{{super-name}}} {{ #if: {{{super-date|}}} | ({{{super-date}}}) }}
 
}}
 
|-
 
{{#if: {{{invent-date|{{{invent-name|{{{super-name|}}}}}}}}}|
 
{{!}} colspan="2" {{!}} <hr>  <!-- Divider. Only show if one of the top fields exists -->
 
}}
 
|-
 
{{#if: {{{width|}}}|
 
{{!}} '''Width:'''
 
{{!}}{{PLURAL:{{{width}}}|1 [[bit]]|{{{width}}} [[bit]]s}}
 
}}
 
|-
 
{{#if: {{{numdev|}}}|
 
{{!}} '''Number of devices:'''
 
{{!}}{{{numdev}}}
 
}}
 
|-
 
{{#if: {{{speed|{{{capacity|}}}}}}|
 
{{!}} '''Capacity'''
 
{{!}}{{{speed|{{{capacity}}}}}}
 
}}
 
|-
 
{{#if: {{{style|}}}|
 
{{!}} '''Style:'''
 
{{!}}{{ #switch: {{{style|}}} | s = [[Serial communications|Serial]] | p = [[Parallel communications|Parallel]] | {{{style|}}} }}
 
}}
 
|-
 
{{#if: {{{hotplug|}}}|
 
{{!}} '''Hotplugging?'''
 
{{!}}{{{hotplug}}}
 
|
 
{{!}} '''Hotplugging?'''
 
{{!}}no
 
}}
 
|-
 
{{#if: {{{external|}}}|
 
{{!}} '''External?'''
 
{{!}}{{{external}}}
 
|
 
{{!}} '''External?'''
 
{{!}}no
 
}}
 
|}<noinclude>
 
{{esoteric}}
 
  
This template is for computer busses. 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 Generic]].
+
| label1    = Year created
 +
| data1    = {{{invent-date|}}}
 +
| label2    = Created by
 +
| data2    = {{{invent-name|}}}
 +
| label3    = Supersedes
 +
| data3    = {{{replaces|}}}
 +
| label4    = Superseded by
 +
| data4    = {{{super-name|}}} {{#if:{{{super-date|}}}|({{{super-date}}})}}
 +
| label5    = Width in bits
 +
| data5    = {{{width|}}}
 +
| label6    = {{abbr|No.|Number}} of devices
 +
| data6    = {{{numdev|}}}
 +
| label7    = Speed
 +
| data7    = {{{speed|{{{capacity|}}} }}}
 +
| label8    = Style
 +
| data8    = {{#switch:{{{style|}}}|s=[[Serial communication|Serial]]|p=[[Parallel communication|Parallel]]|{{{style|}}} }}
 +
| label9    = Hotplugging interface
 +
| data9    = {{{hotplug|}}}
 +
| label10  = External interface
 +
| data10    = {{{external|}}}
 +
| label11    = Website
 +
| data11    = {{#if:{{{website|}}}
 +
                  |{{#ifeq:{{{website|}}}|hide||{{{website|}}} }}
 +
                  |{{#if:{{#property:P856}}
 +
                    |{{URL|{{#property:P856}}}}|
 +
                  }}
 +
              }}
  
== Usage ==
+
}}<noinclude>{{doc}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
<pre>
 
{{Infobox Computer Hardware Bus
 
| name        = Bus Name
 
| fullname    = Full name
 
| image      = An image to show in the infobox
 
| 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
 
| 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)
 
}}
 
</pre>
 
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.
 
 
 
[[Category:Computing infobox templates|Computer Hardware Bus]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
 
 
[[ko:틀:컴퓨터 하드웨어 버스 정보]]
 
</noinclude>
 

Latest revision as of 17:13, 30 December 2017

WebsiteTemplate:URL

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

50px 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.