Difference between revisions of "Template:AmmoDetailsTable"
(Ignore blank header override) |
|||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable {{#if:{{#explode:{{{1|}}}|,|1}}|sortable}}" style="text-align:center" width="100%" | <includeonly>{| class="wikitable {{#if:{{#explode:{{{1|}}}|,|1}}|sortable}}" style="text-align:center" width="100%" | ||
− | ! colspan="13" | {{{2|{{#switch:({{{missile|}}},{{{proxy|}}})|(true,)=Missile|(,true)=Proximity-fused shell|#default=Shell | + | ! colspan="13" | {{#if:{{{2|}}}|{{{2|}}}|{{#switch:({{{missile|}}},{{{proxy|}}})|(true,)=Missile|(,true)=Proximity-fused shell|#default=Shell}}}} details |
|- | |- | ||
! rowspan="2" data-sort-type="text" | Ammunition | ! rowspan="2" data-sort-type="text" | Ammunition |
Latest revision as of 16:09, 27 January 2023
Description
This template inserts a standardised ammunition details table using values defined on the ammunition table page.
Parameters
- 1 - Comma-delimited list of shells to display. This should be set as "
{{{1|}}}
" when passing through the list of shells on an ammunition table page. - (optional) 2 - Override the table header text (to add custom text before "details").
- (optional) unnamed - Set as "true" to remove the "Type of warhead" column.
- (optional) missile - Set as "true" to add columns for the missile format (can be used together with
proxy=true
). - (optional) proxy - Set as "true" to add columns for the proximity-fused shell format (can be used together with
missile=true
). - (optional) TNTe - Change the units of the "Explosive mass (TNT equivalent)" column (i.e.
TNTe=kg
). Default is g. - (optional) fuseDelay - Change (or remove if left blank) the units of the "Fuse delay" column (i.e.
fuseDelay=s
orfuseDelay=
). Default is m.
Examples of use
Missile details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Ammunition | Type of warhead |
Velocity (m/s) |
Range (m) |
Projectile mass (kg) |
Fuse delay (m) |
Fuse sensitivity (mm) |
Arming distance (m) |
Trigger radius (m) |
Explosive mass (TNT equivalent) (kg) |
Ricochet | ||
0% | 50% | 100% | ||||||||||
MIM146 | ATGM | 1,027 | 10,000 | 51 | 0 | 0.1 | 300 | 6 | 7.86 | 79° | 80° | 81° |
MIM147 | ATGM | 1,028 | 10,001 | 52 | 1 | 0.2 | 301 | 7 | 7.87 | 79° | 80° | 81° |
{{#vardefine: MIM146 details | MIM146 & ATGM & 1,027 & 10,000 & 51 & 0 & 0.1 & 300 & 6 & 7.86 & 79° & 80° & 81°}}<!-- -->{{#vardefine: MIM147 details | MIM147 & ATGM & 1,028 & 10,001 & 52 & 1 & 0.2 & 301 & 7 & 7.87 & 79° & 80° & 81°}}<!-- -->{{AmmoDetailsTable|MIM146, MIM147|Missile|missile=true|proxy=true|TNTe=kg}}
This template inserts a standardised ammunition details table using values defined on the [[:Category:Ammunition tables|ammunition table page]].
Parameter | Description | Type | Status | |
---|---|---|---|---|
List of shells | 1 | Comma-delimited list of shells to display. This should be set as "<code><nowiki>{{{1|}}}</nowiki></code>" when passing through the list of shells on an ammunition table page.
| Line | required |
Custom header text | 2 | Override the table header text (to add custom text before " details").
| Line | optional |
Unnamed | unnamed | Set as "true" to remove the "Type of warhead" column.
| Line | suggested |
Missile | missile | Set as "true" to add columns for the missile format (can be used together with "Proximity-fused").
| Line | suggested |
Proximity-fused | proxy | Set as "true" to add columns for the proximity-fused shell format (can be used together with "Missile").
| Line | suggested |
Explosive mass units | TNTe | Change the units of the "Explosive mass (TNT equivalent)" column.
| Line | suggested |
Fuse delay units | fuseDelay | Change the units of the "Fuse delay" column. Leave blank to remove the units.
| Line | suggested |