Difference between revisions of "Template:Infobox weapon"

From Angels Fall First Wiki
Jump to navigation Jump to search
 
(29 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
| bodyclass = vcard
 
| bodyclass = vcard
 
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}}
 
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}}
 
 
| aboveclass = hproduct
 
| aboveclass = hproduct
 
| abovestyle = {{WPMILHIST Infobox style|header_raw}}
 
| abovestyle = {{WPMILHIST Infobox style|header_raw}}
Line 14: Line 13:
 
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
 
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
  
| label1 = Type
+
| is_range=
 +
| is_explosive=
 +
 
 +
| label1 = Type
 
| data1 = {{{type|}}}
 
| data1 = {{{type|}}}
  
| label2 =  Place of origin
+
| header20 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
| data2 = {{{origin|}}}
 
 
 
| header3 = {{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}}| Service history}}
 
 
 
| label4 =  In service
 
| data4 = {{{service|}}}
 
 
 
| label5 =  Used by
 
| data5 = {{{used_by|}}}
 
 
 
| label6 =  Wars
 
| data6 = {{{wars|}}}
 
 
 
| header7 = {{#if:{{{designer|}}}{{{design_date|}}}{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production history }}
 
 
 
| label8 =  Designer
 
| data8 = {{{designer|}}}
 
 
 
| label9 =  Designed
 
| data9 = {{{design_date|}}}
 
 
 
| label10 =  Manufacturer
 
| data10 = {{{manufacturer|}}}
 
 
 
| label11 =  Unit cost
 
| data11 = {{{unit_cost|}}}
 
  
| label14 = Variants
+
| label21 = Place of origin
| data14 = {{{variants|}}}
+
| data21 = {{{origin|}}}
  
| header15 = {{#if:{{{weight|}}}{{{length|}}}{{{height|}}}{{{width|}}}{{{crew|}}}{{{cartridge|}}}{{{caliber|}}}{{{action|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{slots|}}}{{{yield|}}}{{{armour|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{boost|}}}{{{speed|}}}| Specifications {{#if:{{{spec_label|}}}| ({{{spec_label}}})}} }}
+
| label22 = Used by
 +
| data22 = {{{used_by|[[Misc_Antarean_Imperial_Army|Antarean Imperial Army]]<br \>[[Misc_United_League_Army|United League Army]]}}}
  
| label16 = Weight
+
| label23 = Wars
| data16 = {{{weight|}}}
+
| data23 = {{{wars|[[Event_Second_Antarean_War|Second Antarean War]]}}}
  
| label17 = Length
+
| header30 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
| data17 = {{{length|}}}
 
  
| label18 = Height
+
| label31 = Manufacturer
| data18 = {{{height|}}}
+
| data31 = {{{manufacturer|}}}
  
| label19 = Width
+
| label32 = Unit cost
| data19 = {{{width|}}}
+
| data32 = {{#if:{{{is_ranged|}}}| {{{unit_cost|{{#external_value:cbt}} Combat<br \>{{#external_value:sup}} Support<br \>{{#external_value:cmd}} Command}}}| {{{unit_cost|}}} }}
  
| label22 = Crew
+
| label33 = Variants
| data22 = {{{crew|}}}
+
| data33 = {{{variants|}}}
  
| data24 = {{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{crew|}}}|
+
| header40 = {{#if:{{{weight|}}}{{{cartridge|}}}{{{action|}}}| Specifications}}
{{#if:{{{is_ranged|}}}{{{is_artillery|}}}{{{is_bladed|}}}{{{is_explosive|}}}|{{#if:{{{cartridge|}}}{{{caliber|}}}{{{action|}}}{{{rate|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{slots|}}}{{{detonation|}}}{{{yield|}}}| <hr/> }}}}}}
 
  
| label25 = {{#if:{{{is_artillery|}}}| Shell|Cartridge}}
+
| label41 = Weight
| data25 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{cartridge|}}} }}
+
| data41 = {{#if:{{{is_ranged|}}}| {{{weight| {{#expr: (0.1+2*{{#external_value:mass}})round1 }} kg}}}| {{{weight|}}} }}
  
| label27 = Calibre
+
| label42 = Cartridge
| data27 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{caliber|}}} }}
+
| data42 = {{{cartridge|}}}
  
| label29 = Action
+
| label43 = Action
| data29 = {{#if:{{{is_ranged|}}}| {{{action|}}} }}
+
| data43 = {{{action|}}}
  
| label35 = Rate&nbsp;of&nbsp;fire
+
| header50 = {{#if:{{{dmg|}}}{{{rate|}}}{{{range|}}}{{{mode|}}}{{{feed|}}}{{{mags|}}}{{{slots|}}}| Operation}}
| data35 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{rate|}}} }}
 
  
| label37 = Effective&nbsp;firing&nbsp;range
+
| label51 = Damage Inflicted
| data37 = {{#if:{{{is_ranged|}}} {{{is_explosive|}}}{{{is_artillery|}}}| {{{range|}}} }}
+
| data51 = {{#if:{{{is_ranged|}}}| {{{dmg|{{#external_value:dmg}} }}}| {{{dmg|}}} }}
  
| label38 = Maximum&nbsp;firing&nbsp;range
+
| label52 = Rate of fire
| data38 = {{#if:{{{is_ranged|}}}{{{is_explosive|}}}{{{is_artillery|}}}| {{{max_range|}}} }}
+
| data52 = {{#if:{{{is_ranged|}}}| {{{rate| {{#expr: ( 1/{{#external_value:rate}} )round1 }} per second }}}| {{{rate|}}} }}
  
| label39 = Magazine
+
| label53 = Optimal range
| data39 = {{#if:{{{is_ranged|}}}| {{{feed|}}} }}
+
| data53 = {{#if:{{{is_ranged|}}}| {{{range| {{#expr: ( {{#external_value:range}}/24 )round0 }} m }}}| {{{range|}}} }}
  
| label40 = Mod&nbsp;slots
+
| label54 = Secondary Firing Mode
| data40 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{slots|}}} }}
+
| data54 = {{#if:{{{is_ranged|}}}| {{{mode| {{#external_value:mode}} }}}| {{{mode|}}} }}
  
| label48 = <div style="line-height:1.25em">Detonation<br/>mechanism</div>
+
| label55 = Magazine
| data48 = {{#if:{{{is_explosive|}}}{{{is_missile|}}}| {{{detonation|}}} }}
+
| data55 = {{#if:{{{is_ranged|}}}| {{{feed| {{#external_value:ammo}} rounds }}}| {{{feed|}}} }}
  
| label49 = Blast&nbsp;Range
+
| label56 = Spare Magazines
| data49 = {{#if:{{{is_explosive|}}}{{{is_missile|}}}| {{{yield|}}} }}
+
| data56 = {{#if:{{{is_ranged|}}}| {{{mags| {{#external_value:spares}} }}}| {{{mags|}}} }}
  
| data50 = {{#if:{{{is_vehicle|}}}{{{is_missile|}}}| {{#if:{{{armour|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{boost|}}}{{{speed|}}}| <hr/> }}}}
+
| label57 = Mod slots
 +
| data57 = {{{slots|}}}
  
| label51 = Armour
+
| data60 = <hr/>{{{desc|}}}
| data51 = {{#if:{{{is_vehicle|}}}| {{{armour|}}} }}
 
  
| label52 = <div style="line-height:1.25em">Main<br/>armament</div>
+
}}<noinclude>{{Infobox weapon
| data52 = {{#if:{{{is_vehicle|}}}| {{{primary_armament|}}} }}
+
|name=A420 'Boxer'
 +
|image=[[Image:nfc-a420.jpg|300px]]
 +
|caption=A420
 +
|type=Carbine
 +
|is_ranged=1
  
| label53 = <div style="line-height:1.25em">Secondary<br/>armament</div>
+
|used_by=Private Military Corporations<br \>[[Misc_Antarean_Imperial_Army|Antarean Imperial Army]]<br \>[[Misc_United_League_Army|United League Army]]
| data53 = {{#if:{{{is_vehicle|}}}| {{{secondary_armament|}}} }}
+
|wars=[[Event_Second_Antarean_War|Second Antarean War]]
  
| label66 = Boost time
+
|manufacturer=[[Manufacturer_nfc_Taldis|Taldis]]
| data66 = {{#if:{{{is_missile|}}}| {{{boost|}}} }}
+
|unit_cost=external_value:cbt Combat<br \>external_value:sup Support<br \>external_value:cmd Command
  
| label68 = Speed
+
|weight=(0.1+2* external_value:mass )round1 kg
| data68 = {{#if:{{{is_vehicle|}}}{{{is_missile|}}}| {{{speed|}}} }}
+
|cartridge=[[Ammunition_ULA_GAR|GAR 8.13mm]]
  
}}<noinclude>
+
|dmg=external_value:dmg
{{Documentation}}
+
|rate= ( 1/external_value:rate )round1  per s
</noinclude>
+
|range=( external_value:range/24 )round0  m
 +
|mode=external_value:mode
 +
|feed=external_value:ammo
 +
|mags=external_value:spares
 +
|slots=1x Sights<br \>1x Barrel<br \>1x Magazine<br \>1x Body
 +
}}
 +
test text</noinclude>

Latest revision as of 23:16, 23 July 2020

Used by Antarean Imperial Army
United League Army
Wars Second Antarean War

A420 'Boxer'
Nfc-a420.jpg
A420
Type Carbine
Service
Used by Private Military Corporations
Antarean Imperial Army
United League Army
Wars Second Antarean War
Production
Manufacturer Taldis
Unit cost external_value:cbt Combat
external_value:sup Support
external_value:cmd Command
Specifications
Weight (0.1+2* external_value:mass )round1 kg
Cartridge GAR 8.13mm
Operation
Damage Inflicted external_value:dmg
Rate of fire ( 1/external_value:rate )round1 per s
Optimal range ( external_value:range/24 )round0 m
Secondary Firing Mode external_value:mode
Magazine external_value:ammo
Spare Magazines external_value:spares
Mod slots 1x Sights
1x Barrel
1x Magazine
1x Body

test text