Difference between revisions of "Template:Infobox test"

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

Latest 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
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