Template:DeviceInfoBox: Difference between revisions
From Night Vision Wiki
No edit summary |
No edit summary |
||
(71 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
<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", | |||
"required": false | |||
}, | |||
"manufacturer-name-2": { | |||
"label": "Manufacturer #2 Device Name", | |||
"inherits": "manufacturer-name" | |||
}, | |||
"manufacturer-3": { | |||
"label": "Manufacturer #3", | |||
"inherits": "manufacturer", | |||
"required": false | |||
}, | |||
"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 (without File: prefix)", | |||
"example": "RNVG.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"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> | |||
</noinclude><includeonly> | |||
<templatestyles src="Template:Infobox/styles.css" /> | <templatestyles src="Template:Infobox/styles.css" /> | ||
<table class="infobox> | <table class="infobox> | ||
<tr class="infobox-header ext-infobox-header"> | <tr class="infobox-header ext-infobox-header"> | ||
<th colspan=2> | <th colspan=2>{{{name}}}</th> | ||
{{{name}}} | |||
</th> | |||
</tr> | </tr> | ||
{{#if: {{{image|}}}| | |||
<tr> | <tr> | ||
< | <td colspan=2 style="margin: 0; padding:0;">[[File:{{{image}}}|alt={{{name}}} image|frameless]]</td> | ||
[[File:{{{image}}}|alt={{{name}}} image| | </tr>|}} | ||
</ | |||
</tr> | {{#if: {{{page|}}}| | ||
<tr> | |||
<td colspan=2>[[Product page::{{{page}}}|Product Page]]</td> | |||
</tr>|}} | |||
<tr> | <tr> | ||
<td><b>Manufacturer(s)</b></td> | |||
<td> | <td> | ||
Manufacturer | {{#if: {{{manufacturer|}}}| | ||
</ | <div> | ||
< | [[Manufacturer::{{{manufacturer}}}]] {{#if: {{{manufacturer-name|}}}| ({{{manufacturer-name}}})|}} | ||
{{{manufacturer}}} | </div>|}}{{#if: {{{manufacturer-2|}}}| | ||
<div> | |||
[[Manufacturer::{{{manufacturer-2}}}]] {{#if: {{{manufacturer-name-2|}}}| ({{{manufacturer-name-2}}})|}} | |||
</div>|}}{{#if: {{{manufacturer-3|}}}| | |||
<div> | |||
[[Manufacturer::{{{manufacturer-3}}}]] {{#if: {{{manufacturer-name-3|}}}| ({{{manufacturer-name-3}}})|}} | |||
</div>|}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
<tr> | |||
<td><b>[[Housing|Type]]</b></td> | |||
<td>[[Housing Type::{{{type}}}]]</td> | |||
</tr> | |||
<tr> | |||
<td><b>[[Image Intensifier#Formats|Tube Format]]</b></td> | |||
<td>[[Tube Format::{{{format}}}]]</td> | |||
</tr> | |||
<tr> | |||
<td><b>FoV</b></td> | |||
<td>[[Vertical Field of View::{{{fov-ver}}}]]° / [[Horizontal Field of View::{{{fov-hor}}}]]° </td> | |||
</tr> | |||
<tr> | |||
<td><b>[[Mount]]</b></td> | |||
<td>[[Mount::{{{mount}}}]]</td> | |||
</tr> | |||
<tr> | |||
<td><b>Objective(s)</b></td> | |||
<td>{{{objectives}}}</td> | |||
</tr> | |||
<tr> | |||
<td><b>Eyepiece(s)</b></td> | |||
<td>{{{eyepieces}}}</td> | |||
</tr> | |||
{{#if: {{{weight|}}}| | |||
<tr> | |||
<td><b>Weight</b></td> | |||
<td>[[Weight::{{{weight}}}]] g {{#if: {{{weight-src|}}}|{{#tag:ref|{{{weight-src}}}}}|}}</td> | |||
</tr>|}} | |||
</table> | </table> | ||
</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 |