Difference between revisions of "Template:Infobox test"

From Angels Fall First Wiki
Jump to navigation Jump to search
Line 23: Line 23:
  
 
| label5 =  Used by
 
| label5 =  Used by
| data5 = {{{used_by|}}}
+
| data5 = {{{used_by|[[Misc_Antarean_Imperial_Army|Antarean Imperial Army]]<br \>[[Misc_United_League_Army|United League Army]]}}}
  
 
| label6 =  Wars
 
| label6 =  Wars
| data6 = {{{wars|}}}
+
| data6 = {{{wars|[[Event_Second_Antarean_War|Second Antarean War]]}}}
  
 
| header9 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
 
| header9 = {{#if:{{{manufacturer|}}}{{{unit_cost|}}}{{{variants|}}}| Production}}
Line 34: Line 34:
  
 
| label11 =  Unit cost
 
| label11 =  Unit cost
| data11 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data11 = {{#if:{{{is_ranged|}}}| {{#external_value:cbt}} Combat<br \>{{#external_value:sup}} Support<br \>{{#external_value:cmd}} Command|{{{range|}}} }}
  
 
| label12 =  Variants
 
| label12 =  Variants
Line 42: Line 42:
  
 
| label14 =  Weight
 
| label14 =  Weight
| data14 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data14 = {{#if:{{{is_ranged|}}}| {{#expr: (0.1+2*{{#external_value:mass}})round1 }} kg|{{{range|}}} }}
  
 
| label19 = Cartridge
 
| label19 = Cartridge
Line 53: Line 53:
  
 
| label24 = Damage Inflicted
 
| label24 = Damage Inflicted
| data24 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data24 = {{#if:{{{is_ranged|}}}| {{#external_value:dmg}}|{{{range|}}} }}
  
 
| label35 = Rate of fire
 
| label35 = Rate of fire
Line 59: Line 59:
  
 
| label37 = Optimal range
 
| label37 = Optimal range
| data37 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data37 = {{#if:{{{is_ranged|}}}| {{#expr: ( {{#external_value:range}}/24 )round0 }} m|{{{range|}}} }}
  
 
| label39 = Secondary Firing Mode
 
| label39 = Secondary Firing Mode
| data39 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data39 = {{#if:{{{is_ranged|}}}| {{#external_value:mode}}|{{{range|}}} }}
  
 
| label40 = Magazine
 
| label40 = Magazine
| data40 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data40 = {{#if:{{{is_ranged|}}}| {{#external_value:ammo}} rounds|{{{range|}}} }}
  
 
| label41 = Spare {{#if: {{{is_explosive|}}}| Units|Magazines}}
 
| label41 = Spare {{#if: {{{is_explosive|}}}| Units|Magazines}}
| data41 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data41 = {{#if:{{{is_ranged|}}}| {{#external_value:spares}}|{{{range|}}} }}
  
 
| label44 = Mod slots
 
| label44 = Mod slots
| data44 = {{#if:{{{is_ranged|}}}| sssssssssssssss|{{{range|}}} }}
+
| data44 = {{#if:{{{is_ranged|}}}| |{{{range|}}} }}
  
 
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
 
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
  
 
}}
 
}}

Revision as of 18:21, 23 July 2020