Template:Device: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Created page with "<noinclude> {{#template_params: name (label=Device Name) |type (label=Type) |manufacturer (label=Manufacturer) |model (label=Model) |hardware_version (label=Hardware Version)...")
 
No edit summary
Line 3: Line 3:
name (label=Device Name)
name (label=Device Name)
|type (label=Type)
|type (label=Type)
|manufacturer (label=Manufacturer)
|model (label=Model)
|hardware_version (label=Hardware Version)
|firmware_version (label=Firmware Version)
|serial_number (label=Serial Number)
|image_file (label=Image File)
|configuration_file (label=Configuration File)
|description (label=Description)
|wan_ports (holds template=Device WAN Port)
|lan_switches (holds template=Device LAN Switch)
|lan_ports (holds template=Device LAN Port)
|wireless_aps (holds template=Device Wireless AP)
|guest_network (holds template=Device Guest Network)
|documents (holds template=Device Documents)
}}
}}


Line 22: Line 8:
|name=String
|name=String
|type=String (allowed values=Gateway, Router, Switch, AP, Workstation, Laptop, PLC, printer)
|type=String (allowed values=Gateway, Router, Switch, AP, Workstation, Laptop, PLC, printer)
|manufacturer=String
|model=String
|hardware_version=String
|firmware_version=String
|serial_number=String
|image_file=String
|configuration_file=String
|description=Text
}}
}}


Line 36: Line 14:
|name={{{name|}}}
|name={{{name|}}}
|type={{{type|}}}
|type={{{type|}}}
|manufacturer={{{manufacturer|}}}
|model={{{model|}}}
|hardware_version={{{hardware_version|}}}
|firmware_version={{{firmware_version|}}}
|serial_number={{{serial_number|}}}
|image_file={{{image_file|}}}
|configuration_file={{{configuration_file|}}}
|description={{{description|}}}
}} {{#css:Template:Device CSS}} __NOEDITSECTION__
}} {{#css:Template:Device CSS}} __NOEDITSECTION__
<table id="infobox">
  <tr>
    <td colspan="2">[[File:{{{image_file|}}}|thumb|center|File:{{{image_file|}}}]]</td>
  </tr>
  <tr>
    <th>Type of Device</th>
    <td>{{{type|}}}</td>
  </tr>
  <tr>
    <th>Manufacturer</th>
    <td>{{{manufacturer|}}}</td>
  </tr>
  <tr>
    <th>Model</th>
    <td>{{{model|}}}</td>
  </tr>
  <tr>
    <th>Hardware Version</th>
    <td>{{{hardware_version|}}}</td>
  </tr>
  <tr>
    <th>Firmware Version</th>
    <td>{{{firmware_version|}}}</td>
  </tr>
  <tr>
    <th>Serial Number</th>
    <td>{{{serial_number|}}}</td>
  </tr>
  <tr>
    <th>Configuration File</th>
    <td>[[File:{{{configuration_file|}}}]]</td>
  </tr>
</table>
<div id="description-text">
{{{description|}}}
</div>
<div style="clear: both"></div>
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
|Gateway=
|Gateway=

Revision as of 18:05, July 22, 2021

This is the "Device" template.

It should be called in the following format:

{{Device
|name=
|type=
}}

Edit the page to see the template text.

This template defines the table "devices". This table has not been created yet.