Difference between revisions of "Template:Infobox test"

From Angels Fall First Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
 
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
  
| label1 = Type
+
| label1 = Type
 
| data1 = {{{type|}}}
 
| data1 = {{{type|}}}
  
| header1 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
+
| header20 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
  
| label2 = Place of origin
+
| label21 = Place of origin
| data2 = {{{origin|}}}
+
| data21 = {{{origin|}}}
  
| label5 = Used by
+
| label22 = Used by
| data5 = {{{used_by|}}}
+
| data22 = {{{used_by|}}}
  
| label6 = Wars
+
| label23 = Wars
| data6 = {{{wars|}}}
+
| data23 = {{{wars|[[Event_Second_Antarean_War|Second Antarean War]]}}}
  
| header9 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
+
| header30 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
  
| label10 = Manufacturer
+
| label31 = Manufacturer
| data10 = {{{manufacturer|}}}
+
| data31 = {{{manufacturer|}}}
  
| label11 = Unit cost
+
| label32 = Unit cost
| data11 = {{{unit_cost|}}}
+
| data132 = {{#if:{{{is_ranged|}}}| {{{unit_cost|{{#external_value:cbt}} Combat<br \>{{#external_value:sup}} Support<br \>{{#external_value:cmd}} Command}}} }}
  
| label12 = Variants
+
| label33 = Variants
| data12 = {{{variants|}}}
+
| data133 = {{{variants|}}}
  
| header13 = {{#if:{{{weight|}}}{{{cartridge|}}}{{{action|}}}| Specifications}}
+
| header40 = {{#if:{{{weight|}}}{{{cartridge|}}}{{{action|}}}| Specifications}}
  
| label14 = Weight
+
| label41 = Weight
| data14 = {{{weight|}}}
+
| data41 = {{#if:{{{is_ranged|}}}| {{{weight| {{#expr: (0.1+2*{{#external_value:mass}})round1 }} kg}}} }}
  
| label19 = {{#if:{{{is_artillery|}}}| Shell|Cartridge}}
+
| label42 = Cartridge
| data19 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{cartridge|}}} }}
+
| data142 = {{{cartridge|}}}
  
| label21 = Action
+
| label43 = Action
| data21 = {{#if:{{{is_ranged|{{#expr: ( {{#external_value:range}}/24 )round0 }} m}}} }}
+
| data43 = {{{action|}}}
  
| header23 = {{#if:{{{dmg|}}}{{{rate|}}}{{{range|}}}{{{mode|}}}{{{feed|}}}{{{mags|}}}{{{slots|}}}| Operation }}
+
| header50 = {{#if:{{{dmg|}}}{{{rate|}}}{{{range|}}}{{{mode|}}}{{{feed|}}}{{{mags|}}}{{{slots|}}}| Operation}}
  
| label24 = Damage Inflicted
+
| label51 = Damage Inflicted
| data24 = {{{dmg|}}}
+
| data51 = {{#if:{{{is_ranged|}}}| {{{dmg|{{#external_value:dmg}} }}} }}
  
| label35 = Rate&nbsp;of&nbsp;fire
+
| label52 = Rate of fire
| data35 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{rate|}}} }}
+
| data52 = {{#if:{{{is_ranged|}}}| {{{rate| {{#expr: ( 1/{{#external_value:rate}} )round1 }} per s }}} }}
  
| label37 = Optimal&nbsp;range
+
| label53 = Optimal range
| data37 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{range|}}} }}
+
| data53 = {{#if:{{{is_ranged|}}}| {{{range| {{#expr: ( {{#external_value:range}}/24 )round0 }} m }}} }}
  
| label39 = Secondary Firing Mode
+
| label54 = Secondary Firing Mode
| data39 = {{#if:{{{is_ranged|}}}{{{is_explosive|}}}| {{{mode|}}} }}
+
| data54 = {{#if:{{{is_ranged|}}}| {{{mode| {{#external_value:mode}} }}} }}
  
| label40 = Magazine
+
| label55 = Magazine
| data40 = {{#if:{{{is_ranged|}}}| {{{feed|}}} }}
+
| data55 = {{#if:{{{is_ranged|}}}| {{{feed| {{#external_value:ammo}} rounds }}} }}
  
| label41 = Spare {{#if:{{{is_explosive|}}}| Units|Magazines}}
+
| label56 = Spare Magazines
| data41 = {{#if:{{{is_ranged|}}}| {{{mags|}}} }}
+
| data56 = {{#if:{{{is_ranged|}}}| {{{mags| {{#external_value:spares}} }}} }}
  
| label44 = Mod&nbsp;slots
+
| label57 = Mod slots
| data44 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{slots|}}} }}
+
| data57 = {{{slots|}}}
  
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
+
| data60 = <hr/>{{{desc|}}}
  
}}
+
}}<noinclude>{{Infobox test
<noinclude>{{Infobox test
 
 
|name=A420
 
|name=A420
 
|image=[[Image:nfc-a420.jpg|300px]]
 
|image=[[Image:nfc-a420.jpg|300px]]
Line 83: Line 82:
  
 
|used_by=Private Military Corporations<br \>[[Misc_Antarean_Imperial_Army|Antarean Imperial Army]]<br \>[[Misc_United_League_Army|United League Army]]
 
|used_by=Private Military Corporations<br \>[[Misc_Antarean_Imperial_Army|Antarean Imperial Army]]<br \>[[Misc_United_League_Army|United League Army]]
 +
|wars=[[Event_Second_Antarean_War|Second Antarean War]]
  
 
|manufacturer=[[Manufacturer_nfc_Taldis|Taldis]]
 
|manufacturer=[[Manufacturer_nfc_Taldis|Taldis]]

Revision as of 21:17, 23 July 2020

Wars Second Antarean War

A420
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
Specifications
Weight (0.1+2* external_value:mass )round1 kg
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

external_value:cbt Combat
external_value:sup Support
external_value:cmd Command
GAR 8.13mm

test text