Template:DeviceInfoBox: Difference between revisions

From Night Vision Wiki
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 2: Line 2:
<templatedata>
<templatedata>
{
{
  "description": "Info box for a device",
"description": "Info box for a device",
  "params": {
"params": {
      "name": {
"name": {
        "label": "Name",
"label": "Name",
        "description": "Name of the device",
"description": "Name of the device",
        "required": true,
"required": true,
        "suggested": true,
"suggested": true,
        "example": "AN/PVS-14",
"example": "AN/PVS-14",
        "type": "string"
"type": "string"
      },
},
      "manufacturer": {
"manufacturer": {
        "label": "Manufacturer #1",
"label": "Manufacturer #1",
        "description": "Page of the manufacturer of the device",
"description": "Page of the manufacturer of the device",
        "required": true,
"required": true,
        "suggested": true,
"suggested": true,
        "example": "L3Harris",
"example": "L3Harris",
        "type": "wiki-page-name"
"type": "wiki-page-name"
      },
},
      "manufacturer-name": {
"manufacturer-name": {
        "label": "Manufacturer #1 Device Name",
"label": "Manufacturer #1 Device Name",
        "description": "Name of the device as used by the manufacturer",
"description": "Name of the device as used by the manufacturer",
        "required": false,
"required": false,
        "suggested": true,
"suggested": true,
        "example": "M914A",
"example": "M914A",
        "type": "string"
"type": "string"
      },
},
      "manufacturer-2": {
"manufacturer-2": {
        "label": "Manufacturer #2",
"label": "Manufacturer #2",
        "inherits": "manufacturer"
"inherits": "manufacturer",
      },
"required": false
      "manufacturer-name-2": {
},
        "label": "Manufacturer #2 Device Name",
"manufacturer-name-2": {
        "inherits": "manufacturer-name"
"label": "Manufacturer #2 Device Name",
      },
"inherits": "manufacturer-name"
      "manufacturer-3": {
},
        "label": "Manufacturer #3",
"manufacturer-3": {
        "inherits": "manufacturer"
"label": "Manufacturer #3",
      },
"inherits": "manufacturer",
      "manufacturer-name-3": {
"required": false
        "label": "Manufacturer #3 Device Name",
},
        "inherits": "manufacturer-name"
"manufacturer-name-3": {
      },
"label": "Manufacturer #3 Device Name",
      "page": {
"inherits": "manufacturer-name"
        "label": "Product page",
},
        "description": "The main product page of the device",
"page": {
        "required": false,
"label": "Product page",
        "suggested": true,
"description": "The main product page of the device",
        "example": "https://www.abnightvision.com/pages/rnvg-ruggedized-night-vision-goggle",
"required": false,
        "type": "url"
"suggested": true,
      }
"example": "https://www.abnightvision.com/pages/rnvg-ruggedized-night-vision-goggle",
  },
"type": "url"
  "paramOrder": [
},
      "name",
"image": {
      "manufacturer",
"label": "Image",
      "manufacturer-name",
"description": "Image of the device (without File: prefix)",
      "manufacturer-2",
"example": "RNVG.jpg",
      "manufacturer-name-2",
"type": "wiki-file-name",
      "manufacturer-3",
"suggested": true
      "manufacturer-name-3",
},
      "page"
"type": {
  ]
"label": "Housing Type",
"description": "Housing Type",
"type": "string",
"required": true,
"suggested": true
},
"format": {
"label": "Tube Format",
"description": "Image intensifier format used by the device",
"example": "MX-10160",
"type": "string",
"required": true,
"suggested": true
},
"fov-ver": {
"label": "Vertical Field of View",
"description": "The vertical field of view produced by the device",
"example": "40",
"type": "number",
"suggested": true,
"required": true
},
"fov-hor": {
"label": "Horizontal Field of View",
"description": "The horizontal field of view produced by the device",
"example": "40",
"type": "number",
"suggested": true,
"required": true
},
"mount": {
"label": "Mount",
"description": "The type of mount compatible to the device",
"example": "Wilcox Dovetail",
"type": "string",
"suggested": true,
"required": true
},
"objectives": {
"label": "Objectives",
"description": "The type of objectives used by the device",
"example": "PVS-14 threaded",
"required": true,
"suggested": true
},
"eyepieces": {
"label": "Eyepieces",
"description": "The type of eyepieces used by the device",
"example": "PVS-14/AVS threaded",
"type": "string",
"required": true,
"suggested": true
},
"weight": {
"label": "Weight",
"description": "The weight of the device in grams",
"type": "number",
"suggested": true
},
"weight-src": {
"label": "Weight Source",
"description": "A link providing a reference to the weight",
"type": "url"
}
},
"paramOrder": [
"name",
"manufacturer",
"manufacturer-name",
"manufacturer-2",
"manufacturer-name-2",
"manufacturer-3",
"manufacturer-name-3",
"page",
"image",
"type",
"format",
"fov-ver",
"fov-hor",
"mount",
"objectives",
"eyepieces",
"weight",
"weight-src"
]
}
}
</templatedata>
</templatedata>
== Parameters ==
# <code>image</code> (optional): Name of an image on the wiki (without <code>File:</code> prefix)
# <code>name</code>: Name of the device
# <code>manufacturer</code>: Page of the manufacturer
# <code>manufacturer-name</code> (optional): Manufacturer-specific name of the device
# <code>manufacturer</code> (optional): Page of the second manufacturer
# <code>manufacturer-name</code> (optional): Second manufacturer-specific name of the device
# <code>manufacturer</code> (optional): Page of the third manufacturer
# <code>manufacturer-name</code> (optional): Third manufacturer-specific name of the device
# <code>page</code> (optional): Product page URL
# <code>type</code>: Housing type, should be one of TODO
# <code>format</code>: Format, should be one of TODO
# <code>fov-ver</code>: Horizontal field of view (numeric)
# <code>fov-hor</code>: Vertical field of view (numeric)
# <code>mount</code>: Type of mount, should be one of TODO
# <code>objectives</code>: Type of objectives
# <code>eyepieces</code>: Type of eyepieces
# <code>weight</code>: Weight in g (numeric)
</noinclude><includeonly>
</noinclude><includeonly>
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Infobox/styles.css" />
Line 95: Line 159:
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
<tr>
<tr>
<td colspan=2>
<td colspan=2 style="margin: 0; padding:0;">[[File:{{{image}}}|alt={{{name}}} image|frameless]]</td>
[[File:{{{image}}}|alt={{{name}}} image|frameless]]
</td>
</tr>|}}
</tr>|}}


Line 122: Line 184:


<tr>
<tr>
<td><b>Type</b></td>
<td><b>[[Housing|Type]]</b></td>
<td>[[Housing Type::{{{type}}}]]</td>
<td>[[Housing Type::{{{type}}}]]</td>
</tr>
</tr>


<tr>
<tr>
<td><b>Tube Format</b></td>
<td><b>[[Image Intensifier#Formats|Tube Format]]</b></td>
<td>[[Tube Format::{{{format}}}]]</td>
<td>[[Tube Format::{{{format}}}]]</td>
</tr>
</tr>
Line 137: Line 199:


<tr>
<tr>
<td><b>Mount</b></td>
<td><b>[[Mount]]</b></td>
<td>[[Mount::{{{mount}}}]]</td>
<td>[[Mount::{{{mount}}}]]</td>
</tr>
</tr>
Line 154: Line 216:
<tr>
<tr>
<td><b>Weight</b></td>
<td><b>Weight</b></td>
<td>[[Weight::{{{weight}}}]] g</td>
<td>[[Weight::{{{weight}}}]] g {{#if: {{{weight-src|}}}|{{#tag:ref|{{{weight-src}}}}}|}}</td>
</tr>|}}
</tr>|}}


</table>
</table>
</includeonly>
</includeonly>

Latest revision as of 10:43, 3 June 2024

Info box for a device

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of the device

Example
AN/PVS-14
Stringrequired
Manufacturer #1manufacturer

Page of the manufacturer of the device

Example
L3Harris
Page namerequired
Manufacturer #1 Device Namemanufacturer-name

Name of the device as used by the manufacturer

Example
M914A
Stringsuggested
Manufacturer #2manufacturer-2

Page of the manufacturer of the device

Example
L3Harris
Page namesuggested
Manufacturer #2 Device Namemanufacturer-name-2

Name of the device as used by the manufacturer

Example
M914A
Stringsuggested
Manufacturer #3manufacturer-3

Page of the manufacturer of the device

Example
L3Harris
Page namesuggested
Manufacturer #3 Device Namemanufacturer-name-3

Name of the device as used by the manufacturer

Example
M914A
Stringsuggested
Product pagepage

The main product page of the device

Example
https://www.abnightvision.com/pages/rnvg-ruggedized-night-vision-goggle
URLsuggested
Imageimage

Image of the device (without File: prefix)

Example
RNVG.jpg
Filesuggested
Housing Typetype

Housing Type

Stringrequired
Tube Formatformat

Image intensifier format used by the device

Example
MX-10160
Stringrequired
Vertical Field of Viewfov-ver

The vertical field of view produced by the device

Example
40
Numberrequired
Horizontal Field of Viewfov-hor

The horizontal field of view produced by the device

Example
40
Numberrequired
Mountmount

The type of mount compatible to the device

Example
Wilcox Dovetail
Stringrequired
Objectivesobjectives

The type of objectives used by the device

Example
PVS-14 threaded
Unknownrequired
Eyepieceseyepieces

The type of eyepieces used by the device

Example
PVS-14/AVS threaded
Stringrequired
Weightweight

The weight of the device in grams

Numbersuggested
Weight Sourceweight-src

A link providing a reference to the weight

URLoptional