Template:DeviceInfoBox: Difference between revisions
From Night Vision Wiki
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 31: | Line 31: | ||
"label": "Manufacturer #2", | "label": "Manufacturer #2", | ||
"inherits": "manufacturer", | "inherits": "manufacturer", | ||
"required": false | "required": false | ||
}, | }, | ||
"manufacturer-name-2": { | "manufacturer-name-2": { | ||
Line 40: | Line 40: | ||
"label": "Manufacturer #3", | "label": "Manufacturer #3", | ||
"inherits": "manufacturer", | "inherits": "manufacturer", | ||
"required": false | "required": false | ||
}, | }, | ||
"manufacturer-name-3": { | "manufacturer-name-3": { | ||
Line 95: | Line 95: | ||
"label": "Mount", | "label": "Mount", | ||
"description": "The type of mount compatible to the device", | "description": "The type of mount compatible to the device", | ||
"example": "Dovetail", | "example": "Wilcox Dovetail", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"required": true | |||
}, | }, | ||
"objectives": { | "objectives": { | ||
"label": "Objectives", | "label": "Objectives", | ||
"description": "The type of objectives used by the device", | "description": "The type of objectives used by the device", | ||
"example": " | "example": "PVS-14 threaded", | ||
"required": true, | "required": true, | ||
"suggested": true | "suggested": true | ||
Line 109: | Line 110: | ||
"label": "Eyepieces", | "label": "Eyepieces", | ||
"description": "The type of eyepieces used by the device", | "description": "The type of eyepieces used by the device", | ||
"example": " | "example": "PVS-14/AVS threaded", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
Line 119: | Line 120: | ||
"type": "number", | "type": "number", | ||
"suggested": true | "suggested": true | ||
}, | |||
"weight-src": { | |||
"label": "Weight Source", | |||
"description": "A link providing a reference to the weight", | |||
"type": "url" | |||
} | } | ||
}, | }, | ||
Line 138: | Line 144: | ||
"objectives", | "objectives", | ||
"eyepieces", | "eyepieces", | ||
"weight" | "weight", | ||
"weight-src" | |||
] | ] | ||
} | } | ||
Line 152: | 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 179: | 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 194: | 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 211: | 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
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 | suggested |
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 | suggested |
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 (without File: prefix)
| File | suggested |
Housing Type | type | Housing Type | String | required |
Tube Format | format | Image intensifier format used by the device
| String | required |
Vertical Field of View | fov-ver | The vertical field of view produced by the device
| Number | required |
Horizontal Field of View | fov-hor | The horizontal field of view produced by the device
| Number | required |
Mount | mount | The type of mount compatible to the device
| String | required |
Objectives | objectives | The type of objectives used by the device
| Unknown | required |
Eyepieces | eyepieces | The type of eyepieces used by the device
| String | required |
Weight | weight | The weight of the device in grams | Number | suggested |
Weight Source | weight-src | A link providing a reference to the weight | URL | optional |