Difference between revisions of "Template:Device Infobox/Begin"
Malvineous (Talk | contribs) (Move code here from Device Infobox) |
Malvineous (Talk | contribs) (Add SCSI versions) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<div style="text-align:center; font-size: 120%;" itemprop="name">'''{{PAGENAME}}'''</div> | <div style="text-align:center; font-size: 120%;" itemprop="name">'''{{PAGENAME}}'''</div> | ||
<div id="infobox-image" style="text-align:center;">{{#ifexist: Image:{{{Image|{{PAGENAME}}.jpg}}}|[[Image:{{{Image|{{PAGENAME}}.jpg}}}|320px]]<meta itemprop="thumbnailUrl" content="{{fullurl:{{{Image|{{PAGENAME}}.jpg}}}}}" /><br />|''There is no image of this device — <span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{{Image|{{PAGENAMEE}}.jpg}}}}} upload one]</span>!''<includeonly>{{#ifeq:{{{IsInfoboxPage|N}}} | N | [[Category:Devices missing photos]] }}</includeonly>}}</div><table> | <div id="infobox-image" style="text-align:center;">{{#ifexist: Image:{{{Image|{{PAGENAME}}.jpg}}}|[[Image:{{{Image|{{PAGENAME}}.jpg}}}|320px]]<meta itemprop="thumbnailUrl" content="{{fullurl:{{{Image|{{PAGENAME}}.jpg}}}}}" /><br />|''There is no image of this device — <span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{{Image|{{PAGENAMEE}}.jpg}}}}} upload one]</span>!''<includeonly>{{#ifeq:{{{IsInfoboxPage|N}}} | N | [[Category:Devices missing photos]] }}</includeonly>}}</div><table> | ||
− | {{ | + | {{Device Infobox/Item | Bus type | {{#if:{{{Bus type|}}}|[[Bus type::{{{Bus type}}}]]|''Unknown''}} }} |
− | + | ||
− | + | ||
− | + | ||
− | {{# | + | {{#if:{{{Bus version|}}}| |
− | {{Infobox Item | | + | {{Device Infobox/Item | Bus version | [[Bus version::{{{Bus version}}}]] }} |
}} | }} | ||
− | < | + | {{#switch:{{{Bus type|Unknown}}}/{{{Bus version|NA}}} |
− | {{ | + | | IDE/PIO-0 = |
+ | {{Device Infobox/Item | Bus width | [[Bus width::{{{Bus width|Unknown}}}]] }} | ||
+ | {{#switch:{{{Bus width|Unknown}}} | ||
+ | | 8-bit = {{Device Infobox/Item | Bus speed | [[Bus speed::1.66 MHz]] (1.66 MB/sec) }} | ||
+ | | 16-bit = {{Device Infobox/Item | Bus speed | [[Bus speed::1.66 MHz]] (3.33 MB/sec) }} | ||
+ | | #default = <big>ERROR: Only 8-bit and 16-bit are valid <tt>Bus speed</tt> values for IDE type PIO-0 | ||
+ | }} | ||
+ | | IDE/PIO-1 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::2.61 MHz]] (5.22 MB/sec) }} | ||
+ | | IDE/PIO-2 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::4.16 MHz]] (8.33 MB/sec) }} | ||
+ | | IDE/PIO-3 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::5.55 MHz]] (11.11 MB/sec) }} | ||
+ | | IDE/PIO-4 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::8.33 MHz]] (16.66 MB/sec) }} | ||
+ | | IDE/UDMA-0 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::4.16 MHz]] (16.66 MB/sec) }} | ||
+ | | IDE/UDMA-1 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::6.25 MHz]] (25 MB/sec) }} | ||
+ | | IDE/UDMA-2 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::8.33 MHz]] (33.33 MB/sec) }} | ||
+ | | IDE/UDMA-3 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::11.11 MHz]] (44.44 MB/sec) }} | ||
+ | | IDE/UDMA-4 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::16.66 MHz]] (66.66 MB/sec) }} | ||
+ | | IDE/UDMA-5 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::25 MHz]] (100 MB/sec) }} | ||
+ | | IDE/UDMA-6 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::33 MHz]] (133 MB/sec) }} | ||
+ | | SCSI/SCSI-1 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::8-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::5 MHz]] (5 MB/sec) }} | ||
+ | | SCSI/SCSI-2 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::8-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::10 MHz]] (10 MB/sec) }} | ||
+ | | SCSI/SCSI-2W = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::10 MHz]] (20 MB/sec) }} | ||
+ | | SCSI/SCSI-3 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::20 MHz]] (40 MB/sec) }} | ||
+ | | SCSI/SCSI-U80 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::40 MHz]] (80 MB/sec) }} | ||
+ | | SCSI/SCSI-U160 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::80 MHz]] (160 MB/sec) }} | ||
+ | | SCSI/SCSI-U320 = | ||
+ | {{Device Infobox/Item | Bus width | [[Bus width::16-bit]] }} | ||
+ | {{Device Infobox/Item | Bus speed | [[Bus speed::160 MHz]] (320 MB/sec) }} | ||
+ | | #default = | ||
+ | {{Device Infobox/Item | Bus width | {{#if:{{{Bus width|}}}|[[Bus width::{{{Bus width}}}]]|Unknown}} }} | ||
+ | {{Device Infobox/Item | Bus speed | {{#if:{{{Bus speed|}}}|[[Bus speed::{{{Bus speed}}}]]|Unknown}} }} | ||
+ | }} | ||
− | {{#ifeq:{{{Bus type}}}| | + | <!-- Set the "8-bit ISA compatible" option to: Yes if the "Bus type" is ISA/8-bit, No if the "Bus type" is not ISA, otherwise the value of the "8-bit ISA compatible" parameter. --> |
− | + | {{#ifeq:{{{Bus type|ISA}}}|ISA| | |
− | + | {{#switch:{{{Bus width|16-bit}}} | |
+ | | 8-bit = {{#set:Is 8-bit ISA compatible = Yes}} | ||
+ | | #default = {{Device Infobox/Item | 8-bit ISA compatible? | [[Is 8-bit ISA compatible::{{{8-bit ISA compatible|Unknown}}}]] }} | ||
+ | }} | ||
+ | | {{#set:Is 8-bit ISA compatible = No}} <!-- Non ISA buses can have this set to No --> | ||
}} | }} | ||
− | {{Infobox Item | Manufacturer | [[Manufacturer::{{#if:{{{Manufacturer|}}}|{{{Manufacturer}}}|Unknown}}]] }} | + | {{#ifeq:{{{Bus type|PCI}}}|PCI| |
− | {{Infobox Item | Chipset | [[Chipset::{{#if:{{{Chipset|}}}|{{{Chipset}}}|Unknown}}]] }} | + | {{Device Infobox/Item | PCI 5V tolerant? | [[Is PCI 5V tolerant::{{#if:{{{PCI 5V|}}}|{{{PCI 5V}}}|Unknown}}]] }} |
+ | {{Device Infobox/Item | PCI 3.3V tolerant? | [[Is PCI 3.3V tolerant::{{#if:{{{PCI 3.3V|}}}|{{{PCI 3.3V}}}|Unknown}}]] }} | ||
+ | }} | ||
+ | |||
+ | {{Device Infobox/Item | Manufacturer | [[Manufacturer::{{#if:{{{Manufacturer|}}}|{{{Manufacturer}}}|Unknown}}]] }} | ||
+ | {{Device Infobox/Item | Chipset | [[Chipset::{{#if:{{{Chipset|}}}|{{{Chipset}}}|Unknown}}]] }} | ||
{{#if:{{{Compatible with|}}}| | {{#if:{{{Compatible with|}}}| | ||
− | {{Infobox Item | Compatible with | {{{Compatible with}}} }} | + | {{Device Infobox/Item | Compatible with | {{{Compatible with}}} }} |
}} | }} | ||
− | {{Infobox Item | Connectors | {{#if:{{{Connectors|}}}|{{{Connectors}}}|''Unknown''}} }} | + | {{Device Infobox/Item | Connectors | {{#if:{{{Connectors|}}}|{{{Connectors}}}|''Unknown''}} }} |
{{{Extra fields|}}} | {{{Extra fields|}}} | ||
− | {{Infobox Item | Requires -5VDC? | [[Requires -5VDC::{{#if:{{{Requires -5VDC|}}}|{{{Requires -5VDC}}}|Unknown}}]] }} | + | {{Device Infobox/Item | Requires -5VDC? | [[Requires -5VDC::{{#if:{{{Requires -5VDC|}}}|{{{Requires -5VDC}}}|Unknown}}]] }} |
− | {{Infobox Item | Requires -12VDC? | [[Requires -12VDC::{{#if:{{{Requires -12VDC|}}}|{{{Requires -12VDC}}}|Unknown}}]] }} | + | {{Device Infobox/Item | Requires -12VDC? | [[Requires -12VDC::{{#if:{{{Requires -12VDC|}}}|{{{Requires -12VDC}}}|Unknown}}]] }} |
− | {{Infobox Item | Config method | {{{Config|''Unknown''}}} }} | + | |
+ | <!-- The "config method" is only shown for these device types, since PCI etc. configures resources automatically --> | ||
+ | {{#switch:{{{Bus type|ISA}}} | ISA | MCA | EISA | VLB = | ||
+ | {{Device Infobox/Item | Config method | {{{Config|''Unknown''}}} }} | ||
+ | }} | ||
<noinclude> | <noinclude> | ||
{{Device Infobox/End}} | {{Device Infobox/End}} | ||
− | </noinclude | + | </noinclude><noinclude><!-- do not put any newlines before noinclude otherwise it puts paragraph markers after the infobox on inclusion pages. |
− | + | ||
− | --><i>This template is used to build a more specific infobox for particular types of devices. See [[ | + | --><i>This template is used to build a more specific infobox for particular types of devices. See [[Accton EN1640]] for example use, and [[:Category:Infoboxes]] for device types that can be placed inside this infobox.</i> |
Valid parameters and examples are: | Valid parameters and examples are: | ||
{|class="wikitable" | {|class="wikitable" | ||
− | ! Parameter | + | ! Parameter !! Meaning |
+ | |- | ||
+ | | Image = Image.jpg || Photo of the device. '''Use the default name''' wherever possible (i.e. do not use this option unless you have to). If there are characters that cannot be used in a filename (e.g. a forward slash), try to find a Unicode equivalent to use instead (e.g. mathematical division slash) which are allowed in filenames and look the same. | ||
+ | |- | ||
+ | | Bus type = ''Value'' || {{Property:Bus type}} | ||
|- | |- | ||
− | | | + | | Bus version = ''Value'' || {{Property:Bus version}} |
|- | |- | ||
− | | Bus | + | | Bus width = ''Value'' || {{Property:Bus width}} |
|- | |- | ||
− | | Bus | + | | Bus speed = ''Value'' || {{Property:Bus speed}} |
|- | |- | ||
− | | | + | | 8-bit ISA compatible = ''Value'' || 16-bit ISA only: {{Property:Is 8-bit ISA compatible}} |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | | + | | PCI 5V = ''Value'' || PCI only: {{Property:Is PCI 5V tolerant}} |
|- | |- | ||
− | | PCI | + | | PCI 3.3V = ''Value'' || PCI only: {{Property:Is PCI 3.3V tolerant}} |
|- | |- | ||
− | | | + | | Manufacturer = ''Value'' || {{Property:Manufacturer}} |
|- | |- | ||
− | | | + | | Chipset = ''Value'' || {{Property:Chipset}} |
|- | |- | ||
− | | | + | | Compatible with = ''Value'' || {{Property:Compatible with}} |
|- | |- | ||
− | | | + | | Connectors = ''Value'' || {{Property:Has connector}} |
|- | |- | ||
− | | | + | | Extra fields = ''Value'' || Additional infobox fields for more specific infoboxes to use. Zero or more whitespace-separated instances of [[Template:Device Infobox/Item]]. |
|- | |- | ||
− | | | + | | Requires -5VDC = ''Value'' || {{Property:Requires -5VDC}} |
|- | |- | ||
− | | Requires - | + | | Requires -12VDC = ''Value'' || {{Property:Requires -12VDC}} |
|- | |- | ||
− | | | + | | Config = ''Value'' || {{Property:Config method}} |
|- | |- | ||
− | | | + | | Manual = ''Wikicode'' || ''This item is placed in the <tt>Device Infobox/End</tt> block.'' Link to a PDF of the manual. Avoid multiple links - if it is important to have multiple downloads, put them in a 'downloads' section in the article. Example: '''<nowiki>Manual = [http://example.com/example.pdf example.com]</nowiki>''' |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | Driver = '' | + | | Driver = ''Wikicode'' || ''This item is placed in the <tt>Device Infobox/End</tt> block.'' Link to latest driver download. Avoid multiple links - if it is important to have multiple downloads, put them in a 'downloads' section in the article. Example: '''<nowiki>Driver = [http://example.com/example.zip example.com]</nowiki>''' |
|- | |- | ||
− | | IsInfoboxPage = ''Value'' || Internal use only, do not use | + | | IsInfoboxPage = ''Value'' || Internal use only, do not use. This value is set to '''Y''' for the demo sections of the infobox pages, to avoid the infoboxes themselves being added to categories like 'missing images'. |
|} | |} | ||
Latest revision as of 23:24, 17 April 2016
Bus type | Unknown |
---|---|
Bus width | Unknown |
Bus speed | Unknown |
8-bit ISA compatible? | Unknown |
PCI 5V tolerant? | Unknown |
PCI 3.3V tolerant? | |
Manufacturer | Unknown |
Chipset | Unknown |
Connectors | Unknown |
Requires -5VDC? | Unknown |
Requires -12VDC? | Unknown |
Config method | Unknown |
Driver | Missing download URL |
This template is used to build a more specific infobox for particular types of devices. See Accton EN1640 for example use, and Category:Infoboxes for device types that can be placed inside this infobox.
Valid parameters and examples are:
Parameter | Meaning |
---|---|
Image = Image.jpg | Photo of the device. Use the default name wherever possible (i.e. do not use this option unless you have to). If there are characters that cannot be used in a filename (e.g. a forward slash), try to find a Unicode equivalent to use instead (e.g. mathematical division slash) which are allowed in filenames and look the same. |
Bus type = Value | The bus type is a text field containing only one of the following permitted values:
Other buses should be added to this list as needed. If a device is available with more than one bus type, a different page should be created for each version of the device, as technically those cards are slightly different models. If a card has multiple bus connections (e.g. some POST cards support both PCI and ISA on different edges of the card) then pick the oldest one, and list the others in the article text using code similar to this: This card also has a [[Bus type::PCI]] connector. |
Bus version = Value | Text value containing the version of the bus in use. The value used depends on the bus. Valid values split by bus type are:
|
Bus width = Value | The bus type is a text field containing only one of the following permitted values, which vary depending on the bus type:
|
Bus speed = Value | Rated maximum bus speed of the device. The values depend on the bus type:
|
8-bit ISA compatible = Value | 16-bit ISA only: This boolean property is Yes if a 16-bit ISA card is known to work in an 8-bit ISA slot. It is No if the card is known not to work in an 8-bit slot. If the value is not set, then the card has not yet been tested in an 8-bit slot. If the card is an 8-bit card then this value is automatically set to Yes so it can be omitted. It is likewise automatically set to No for non-ISA buses so it can be omitted there as well.
This is useful for those working with XT and older computers, which only have 8-bit slots. Knowing a particular 16-bit card will work in a machine with only 8-bit slots saves the hassle of trying to find an 8-bit card to use. If a card does not natively work in an 8-bit slot but can be made to do so with different drivers, then this value should be set to Yes, but an explanation should be given on the device's page. |
PCI 5V = Value | PCI only: Boolean value indicating whether the card will work in a 5 VDC PCI slot. Yes, No or Unknown. |
PCI 3.3V = Value | PCI only: Boolean value indicating whether the card will work in a 3.3 VDC PCI slot. Yes, No or Unknown. |
Manufacturer = Value | Page for the manufacturer's company name. Be consistent so all cards with the same manufacturer are grouped together. |
Chipset = Value | Text value containing the name of the primary chipset. Be consistent so all cards with the same chipset are grouped together. If there is more than one large chip, try to pick the biggest or the one most related to the card's primary function. |
Compatible with = Value | Generic interfaces that can be used to control this card. Valid values depend on the device type, see the device-specific infobox pages for examples. Each interface has a page of its own. |
Connectors = Value | Which externally accessible connectors are on the card? Comma separated list of Has connector page elements. Valid values depend on the device type, see Has connector for a list. An example is [[Has connector::VGA]], [[Has connector::RS232/DB25]]
Internal connectors are typically specified elsewhere in the infobox. |
Extra fields = Value | Additional infobox fields for more specific infoboxes to use. Zero or more whitespace-separated instances of Template:Device Infobox/Item. |
Requires -5VDC = Value | Boolean value indicating whether the device requires -5VDC present to function correctly. Yes, No or Unknown. This can be important since most modern power supplies no longer deliver -5VDC. |
Requires -12VDC = Value | Boolean value indicating whether the device requires -12VDC present to function correctly. Yes, No or Unknown. |
Config = Value | Configuration method used to set card resources (addresses, IRQ, etc.). Comma separated list, one or more of:
|
Manual = Wikicode | This item is placed in the Device Infobox/End block. Link to a PDF of the manual. Avoid multiple links - if it is important to have multiple downloads, put them in a 'downloads' section in the article. Example: Manual = [http://example.com/example.pdf example.com] |
Driver = Wikicode | This item is placed in the Device Infobox/End block. Link to latest driver download. Avoid multiple links - if it is important to have multiple downloads, put them in a 'downloads' section in the article. Example: Driver = [http://example.com/example.zip example.com] |
IsInfoboxPage = Value | Internal use only, do not use. This value is set to Y for the demo sections of the infobox pages, to avoid the infoboxes themselves being added to categories like 'missing images'. |
Default values are shown if the parameter is omitted, so do not use any parameters unless the value is known (most of the defaults say "unknown")