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|}}}
  
| header20 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
+
| header1 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
  
| label21 = Place of origin
+
| label2 = Place of origin
| data21 = {{{origin|}}}
+
| data2 = {{{origin|}}}
  
| label22 = Used by
+
| label5 = Used by
| data22 = {{{used_by|}}}
+
| data5 = {{{used_by|}}}
  
| label23 = Wars
+
| label6 = Wars
| data23 = {{{wars|[[Event_Second_Antarean_War|Second Antarean War]]}}}
+
| data6 = {{{wars|}}}
  
| header30 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
+
| header9 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
  
| label31 = Manufacturer
+
| label10 = Manufacturer
| data31 = {{{manufacturer|}}}
+
| data10 = {{{manufacturer|}}}
  
| label32 = Unit cost
+
| label11 = Unit cost
| data32 = {{{unit_cost|}}}
+
| data11 = {{{unit_cost|}}}
  
| label33 = Variants
+
| label12 = Variants
| data33 = {{{variants|}}}
+
| data12 = {{{variants|}}}
  
| header40 = {{#if:{{{weight|}}}{{{cartridge|}}}{{{action|}}}| Specifications}}
+
| header13 = {{#if:{{{weight|}}}{{{cartridge|}}}{{{action|}}}| Specifications}}
  
| label41 = Weight
+
| label14 = Weight
| data41 = {{#if:{{{is_ranged|}}}| {{#expr: (0.1+2*{{#external_value:mass}})round1 }} kg|{{{weight|}}} }}
+
| data14 = {{{weight|}}}
  
| label42 = Cartridge
+
| label19 = {{#if:{{{is_artillery|}}}| Shell|Cartridge}}
| data42 = {{{cartridge|}}}
+
| data19 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{cartridge|}}} }}
  
| label43 = Action
+
| label21 = Action
| data43 = {{{action|}}}
+
| data21 = {{#if:{{{is_ranged|{{#expr: ( {{#external_value:range}}/24 )round0 }} m}}} }}
  
| header50 = {{#if:{{{dmg|}}}{{{rate|}}}{{{range|}}}{{{mode|}}}{{{feed|}}}{{{mags|}}}{{{slots|}}}| Operation}}
+
| header23 = {{#if:{{{dmg|}}}{{{rate|}}}{{{range|}}}{{{mode|}}}{{{feed|}}}{{{mags|}}}{{{slots|}}}| Operation }}
  
| label51 = Damage Inflicted
+
| label24 = Damage Inflicted
| data51 = {{#if:{{{is_ranged|}}}|{{{dmg|{{#external_value:dmg}} }}} }}
+
| data24 = {{{dmg|}}}
  
| label52 = Rate of fire
+
| label35 = Rate of fire
| data52 = {{#if:{{{is_ranged|}}}| {{#expr: ( 1/{{#external_value:rate}} )round1 }} per s|{{{rate|}}} }}
+
| data35 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{rate|}}} }}
  
| label53 = Optimal range
+
| label37 = Optimal range
| data53 = {{#if:{{{is_ranged|}}}| {{#expr: ( {{#external_value:range}}/24 )round0 }} m|{{{range|}}} }}
+
| data37 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{range|}}} }}
  
| label54 = Secondary Firing Mode
+
| label39 = Secondary Firing Mode
| data54 = {{#if:{{{is_ranged|}}}| {{#external_value:mode}}|{{{mode|}}} }}
+
| data39 = {{#if:{{{is_ranged|}}}{{{is_explosive|}}}| {{{mode|}}} }}
  
| label55 = Magazine
+
| label40 = Magazine
| data55 = {{#if:{{{is_ranged|}}}| {{#external_value:ammo}} rounds|{{{feed|}}} }}
+
| data40 = {{#if:{{{is_ranged|}}}| {{{feed|}}} }}
  
| label56 = Spare Magazines
+
| label41 = Spare {{#if:{{{is_explosive|}}}| Units|Magazines}}
| data56 = {{#if:{{{is_ranged|}}}| {{#external_value:spares}}|{{{mags|}}} }}
+
| data41 = {{#if:{{{is_ranged|}}}| {{{mags|}}} }}
  
| label57 = Mod slots
+
| label44 = Mod slots
| data57 = {{{slots|}}}
+
| data44 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{slots|}}} }}
  
| data60 = <hr/>{{{desc|}}}
+
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
  
 
}}
 
}}
Line 83: Line 83:
  
 
|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]]
|unit_cost=
+
|unit_cost=external_value:cbt Combat<br \>external_value:sup Support<br \>external_value:cmd Command
  
 
|weight=(0.1+2* external_value:mass )round1 kg
 
|weight=(0.1+2* external_value:mass )round1 kg

Revision as of 21:07, 23 July 2020

A420
Nfc-a420.jpg
A420
Service
Used by Private Military Corporations
Antarean Imperial Army
United League Army
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