Template:DeviceInfoBox: Difference between revisions
From Night Vision Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Info box for a device", | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the device", | |||
"required": true, | |||
"suggested": true, | |||
"example": "AN/PVS-14", | |||
"type": "string" | |||
}, | |||
"manufacturer": { | |||
"label": "Manufacturer #1", | |||
"description": "Page of the manufacturer of the device", | |||
"required": true, | |||
"suggested": true, | |||
"example": "L3Harris", | |||
"type": "wiki-page-name" | |||
}, | |||
"manufacturer-name": { | |||
"label": "Manufacturer #1 Device Name", | |||
"description": "Name of the device as used by the manufacturer", | |||
"required": false, | |||
"suggested": true, | |||
"example": "M914A", | |||
"type": "string" | |||
}, | |||
"manufacturer-2": { | |||
"label": "Manufacturer #2", | |||
"inherits": "manufacturer" | |||
}, | |||
"manufacturer-name-2": { | |||
"label": "Manufacturer #2 Device Name", | |||
"inherits": "manufacturer-name" | |||
}, | |||
"manufacturer-3": { | |||
"label": "Manufacturer #3", | |||
"inherits": "manufacturer" | |||
}, | |||
"manufacturer-name-3": { | |||
"label": "Manufacturer #3 Device Name", | |||
"inherits": "manufacturer-name" | |||
}, | |||
"page": { | |||
"label": "Product page", | |||
"description": "The main product page of the device", | |||
"required": false, | |||
"suggested": true, | |||
"example": "https://www.abnightvision.com/pages/rnvg-ruggedized-night-vision-goggle", | |||
"type": "url" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image of the device", | |||
"example": "File:RNVG.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"type": {}, | |||
"format": {}, | |||
"fov-ver": {}, | |||
"fov-hor": {}, | |||
"mount": {}, | |||
"objectives": {}, | |||
"eyepieces": {}, | |||
"weight": {} | |||
}, | |||
"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" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> |
Revision as of 20:29, 22 February 2023
Info box for a device
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the device
| String | required |
Manufacturer #1 | manufacturer | Page of the manufacturer of the device
| Page name | required |
Manufacturer #1 Device Name | manufacturer-name | Name of the device as used by the manufacturer
| String | suggested |
Manufacturer #2 | manufacturer-2 | Page of the manufacturer of the device
| Page name | required |
Manufacturer #2 Device Name | manufacturer-name-2 | Name of the device as used by the manufacturer
| String | suggested |
Manufacturer #3 | manufacturer-3 | Page of the manufacturer of the device
| Page name | required |
Manufacturer #3 Device Name | manufacturer-name-3 | Name of the device as used by the manufacturer
| String | suggested |
Product page | page | The main product page of the device
| URL | suggested |
Image | image | Image of the device
| File | suggested |
type | type | no description | Unknown | optional |
format | format | no description | Unknown | optional |
fov-ver | fov-ver | no description | Unknown | optional |
fov-hor | fov-hor | no description | Unknown | optional |
mount | mount | no description | Unknown | optional |
objectives | objectives | no description | Unknown | optional |
eyepieces | eyepieces | no description | Unknown | optional |
weight | weight | no description | Unknown | optional |
Parameters
image
(optional): Name of an image on the wiki (withoutFile:
prefix)
name
: Name of the devicemanufacturer
: Page of the manufacturermanufacturer-name
(optional): Manufacturer-specific name of the devicemanufacturer
(optional): Page of the second manufacturermanufacturer-name
(optional): Second manufacturer-specific name of the devicemanufacturer
(optional): Page of the third manufacturermanufacturer-name
(optional): Third manufacturer-specific name of the devicepage
(optional): Product page URLtype
: Housing type, should be one of TODOformat
: Format, should be one of TODOfov-ver
: Horizontal field of view (numeric)fov-hor
: Vertical field of view (numeric)mount
: Type of mount, should be one of TODOobjectives
: Type of objectiveseyepieces
: Type of eyepiecesweight
: Weight in g (numeric)