Difference between revisions of "Template:Infobox test"

From Angels Fall First Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
| header1 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
 
| header1 = {{#if:{{{origin|}}}{{{used_by|}}}{{{wars|}}}| Service}}
  
| label2 =  Place of origin
+
| label2 =  Place of origin
 
| data2 = {{{origin|}}}
 
| data2 = {{{origin|}}}
  
| label5 =  Used by
+
| label5 =  Used by
 
| data5 = {{{used_by|}}}
 
| data5 = {{{used_by|}}}
  
Line 33: Line 33:
 
| data10 = {{{manufacturer|}}}
 
| data10 = {{{manufacturer|}}}
  
| label11 =  Unit cost
+
| label11 =  Unit cost
 
| data11 = {{{unit_cost|{{#external_value:cbt}} Combat<br \>{{#external_value:sup}} Support<br \>{{#external_value:cmd}} Command}}}
 
| data11 = {{{unit_cost|{{#external_value:cbt}} Combat<br \>{{#external_value:sup}} Support<br \>{{#external_value:cmd}} Command}}}
  
Line 55: Line 55:
 
| data24 = {{{dmg|}}}
 
| data24 = {{{dmg|}}}
  
| label35 = Rate&nbsp;of&nbsp;fire
+
| label35 = Rate of fire
| data35 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{rate|}}} }}
+
| data35 = {{#if:{{{is_ranged|}}}| {{#expr: ( 1/{{#external_value:rate}} )round1 }} per s|{{{rate|}}} }}
  
| label37 = Optimal&nbsp;range
+
| label37 = Optimal range
 
| data37 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{range|}}} }}
 
| data37 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{range|}}} }}
  
| label39 = Alt Firing Mode
+
| label39 = Secondary Firing Mode
| data39 = {{#if:{{{is_ranged|}}}{{{is_explosive|}}}| {{{mode|}}} }}
+
| data39 = {{{mode|}}}
  
 
| label40 = Magazine
 
| label40 = Magazine
| data40 = {{#if:{{{is_ranged|}}}| {{{feed|}}} }}
+
| data40 = {{{feed|}}}
  
| label41 = Spare {{#if:{{{is_explosive|}}}| Units|Magazines}}
+
| label41 = Spare {{#if: {{{is_explosive|}}}| Units|Magazines}}
| data41 = {{#if:{{{is_ranged|}}}| {{{mags|}}} }}
+
| data41 = {{{mags|}}}
  
| label44 = Mod&nbsp;slots
+
| label44 = Mod slots
| data44 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| {{{slots|}}} }}
+
| data44 = {{{slots|}}}
|24
 
  
 
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
 
| data50 = {{#if:{{{boost|}}}{{{speed|}}}| <hr/> }}
  
 
}}
 
}}

Revision as of 18:05, 23 July 2020

Unit cost Error: no local variable "cbt" was set. Combat
Error: no local variable "sup" was set. Support
Error: no local variable "cmd" was set. Command