Difference between revisions of "Template:AmmoDetailsTable"

From War Thunder Wiki
Jump to: navigation, search
(Ignore blank header override)
 
(2 intermediate revisions by the same user not shown)
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}} details
+
! 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
Line 9: Line 9:
 
! rowspan="2" | Fuse delay{{#if:{{{fuseDelay|m}}}|<br>({{{fuseDelay|m}}})}}
 
! rowspan="2" | Fuse delay{{#if:{{{fuseDelay|m}}}|<br>({{{fuseDelay|m}}})}}
 
! rowspan="2" | Fuse sensitivity<br>(mm)
 
! rowspan="2" | Fuse sensitivity<br>(mm)
{{#if: {{{proxy|}}}|! rowspan="2" {{!}} Arming distance<br>(m)
+
{{#if: {{{proxy|}}}|! rowspan="2" {{!}} Arming<br>distance (m)
! rowspan="2" {{!}} Trigger radius<br>(m)}}
+
! rowspan="2" {{!}} Trigger<br>radius (m)}}
 
! rowspan="2" | Explosive mass<br>(TNT equivalent) ({{{TNTe|g}}})
 
! rowspan="2" | Explosive mass<br>(TNT equivalent) ({{{TNTe|g}}})
 
! colspan="3" | Ricochet
 
! colspan="3" | Ricochet

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 or fuseDelay=). 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}}