Difference between revisions of "Template:Infobox car"

From LFS Manual
Jump to navigationJump to search
(subsections and more info)
(added categories of cars with abs / pit limiter)
 
(21 intermediate revisions by one other user not shown)
Line 15: Line 15:
 
| data1  = {{{short_name|}}}
 
| data1  = {{{short_name|}}}
  
| label2  = {{#if:{{{license|}}}|License}}
+
| label2 = [[:Category:Cars by class|Class]]
| data2   = {{#if:{{{license|}}}|[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
+
| data2  = {{#switch:{{{class|}}}
 +
|fr={{#if:{{{nocat|}}}||[[Category:FR cars]]}}[[:Category:FR cars|FR]]
 +
|fwdgtr={{#if:{{{nocat|}}}||[[Category:FWD GTR cars]]}}[[:Category:FWD GTR cars|FWD GTR]]
 +
|gtr={{#if:{{{nocat|}}}||[[Category:GTR cars]]}}[[:Category:GTR cars|GTR]]
 +
|lrf={{#if:{{{nocat|}}}||[[Category:LRF cars]]}}[[:Category:LRF cars|LRF]]
 +
|ss={{#if:{{{nocat|}}}||[[Category:Single-seaters]]}}[[:Category:Single-seaters|single-seater]]
 +
|tbo={{#if:{{{nocat|}}}||[[Category:TBO cars]]|}}[[:Category:TBO cars|TBO]]
 +
|unclassified={{#if:{{{nocat|}}}||[[Category:Unclassified cars]]}}[[:Category:Unclassified cars|unclassified]]
 +
}}
 +
 
 +
| label3 = {{#if:{{{license|}}}|[[:Category:Cars by license|License]]}}
 +
| data3   = {{#if:{{{license|}}}|{{#if:{{{nocat|}}}||[[Category:{{{license|}}} cars]]}}[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
  
| label3 = Introduced
+
| label4 = Introduced
| data3   = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
+
| data4   = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
  
| label5  = Resemblance
+
| label5  = [[:Category:Cars by resemblance to reality|Resemblance]]
 
| data5  = {{#switch:{{{resemblance|}}}
 
| data5  = {{#switch:{{{resemblance|}}}
|fictional=[[:Category:Fictional cars|fictional]]
+
|fictional={{#if:{{{nocat|}}}||[[Category:Fictional cars]]}}[[:Category:Fictional cars|fictional]]
|real=[[:Category:Real cars|real]]
+
|real={{#if:{{{nocat|}}}||[[Category:Real cars]]}}[[:Category:Real cars|real]]
 
}}
 
}}
  
Line 30: Line 41:
 
| header10 = Body and chassis
 
| header10 = Body and chassis
  
| label10 = Class
+
| label10  = {{#if:{{{body_style|}}}|Body style}}
| data10  = {{#switch:{{{class|}}}
+
| data10   = {{#if:{{{body_style|}}}|{{{body_style}}}}}
|fr=[[:Category:FR cars|FR]]
 
|fwdgtr=[[:Category:FWD GTR cars|FWD GTR]]
 
|gtr=[[:Category:GTR cars|GTR]]
 
|lrf=[[:Category:LRF cars|LRF]]
 
|ss=[[:Category:Single-seaters|single-seater]]
 
|tbo=[[:Category:TBO cars|TBO]]
 
|unclassified=[[:Category:Unclassified cars|unclassified]]
 
}}
 
 
 
| label11 = {{#if:{{{body_style|}}}|Body style}}
 
| data11   = {{#if:{{{body_style|}}}|{{{body_style}}}}}
 
  
 
| label12  = Layout
 
| label12  = Layout
 
| data12  = {{#switch:{{{engine_placement|}}}
 
| data12  = {{#switch:{{{engine_placement|}}}
|front=[[:Category:Front-engined cars|front-engine]]
+
|front={{#if:{{{nocat|}}}||[[Category:Front-engined cars]]}}[[:Category:Front-engined cars|front-engine]]
|rear=[[:Category:Rear-engined cars|rear-engine]]
+
|rear={{#if:{{{nocat|}}}||[[Category:Rear-engined cars]]}}[[:Category:Rear-engined cars|rear-engine]]
|mid=[[:Category:Mid-engined cars|mid-engine]]
+
|mid={{#if:{{{nocat|}}}||[[Category:Mid-engined cars]]}}[[:Category:Mid-engined cars|mid-engine]]
}}
+
}} {{#switch:{{{drive|}}}
{{#switch:{{{drive|}}}
+
|front={{#if:{{{nocat|}}}||[[Category:Front-wheel drive cars]]}} [[:Category:Front-wheel drive cars|front-wheel drive]]
|front=[[:Category:Front-wheel drive cars|front-wheel drive]]
+
|rear={{#if:{{{nocat|}}}||[[Category:Rear-wheel drive cars]]}} [[:Category:Rear-wheel drive cars|rear-wheel drive]]
|rear=[[:Category:Rear-wheel drive cars|rear-wheel drive]]
+
|all={{#if:{{{nocat|}}}||[[Category:All-wheel drive cars]]}} [[:Category:All-wheel drive cars|all-wheel drive]]
|all=[[:Category:All-wheel drive cars|all-wheel drive]]
 
 
}}
 
}}
  
| label13 = {{#if:{{{seats|}}}|Seats}}
+
| label13 = {{#if:{{{configs|}}}|Configurations}}
| data13 = {{#if:{{{seats|}}}|{{{seats|}}}}}
+
| data13  = {{#if:{{{configs|}}}|{{{configs}}}}}
 +
 
 +
| label14 = {{#if:{{{seats|}}}|Seats}}
 +
| data14 = {{#if:{{{seats|}}}|{{{seats|}}}}}
  
| label14 = {{#if:{{{related|}}}|Related}}
+
| label15 = {{#if:{{{related|}}}|Related}}
| data14 = {{#if:{{{related|}}}|{{{related|}}}}}
+
| data15 = {{#if:{{{related|}}}|{{{related|}}}}}
  
  
| header20 = Suspension and wheels
+
| header20 = Powertrain
  
| label20  = {{#if:{{{suspension_front|}}}|Suspension}}
+
| label20  = Engine
| data20  = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
+
| data20  = {{#if:{{{engine|}}}|{{{engine}}}}}
  
| label21 = {{#if:{{{tyres|}}}|Tyre compounds}}
+
| label21 = {{#if:{{{power_kw|}}}|Power}}
| data21 = {{#if:{{{tyres|}}}|{{{tyres}}}}}
+
| data21   = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
  
| label22 = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
+
| label22 = {{#if:{{{torque_nm|}}}|Torque}}
| data22 = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
+
| data22   = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
  
 +
| label23  = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
 +
| data23  = {{#if:{{{powerweight_w_kg|}}}|{{{powerweight_w_kg|}}} W/kg {{#if:{{{powerweight_bhp_ton|}}}|({{{powerweight_bhp_ton|}}} bhp/ton)}}}}
  
| header30 = Powertrain
+
| label24  = {{#if:{{{transmission_gears|}}}|Transmission|{{#if:{{{transmission_type|}}}|Transmission}}}}
 +
| data24  = {{#if:{{{transmission_gears|}}}|{{{transmission_gears}}}-speed {{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}|{{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}}}
  
| label30  = Engine
 
| data30  = {{#if:{{{engine|}}}|{{{engine}}}}}
 
  
| label31  = {{#if:{{{power_kw|}}}|Power}}
+
| header30 = Suspension and wheels
| data31  = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
 
  
| label32 = {{#if:{{{torque_nm|}}}|Torque}}
+
| label30 = {{#if:{{{suspension_front|}}}|Suspension}}
| data32   = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
+
| data30   = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
  
| label33  = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
+
| label31 = {{#if:{{{tyres|}}}|Tyre compounds}}
| data33  = {{#if:{{{powerweight_w_kg|}}}|{{{powerweight_w_kg|}}} W/kg {{#if:{{{powerweight_bhp_ton|}}}|({{{powerweight_bhp_ton|}}} bhp/ton)}}}}
+
| data31  = {{#if:{{{tyres|}}}|{{{tyres}}}}}
  
| label34  = {{#if:{{{transmission_gears|}}}|Transmission|{{#if:{{{transmission_type|}}}|Transmission}}}}
+
| label32 = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
| data34  = {{#if:{{{transmission_gears|}}}|{{{transmission_gears}}}-speed {{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}|{{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}}}
+
| data32  = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
  
  
Line 96: Line 98:
  
 
| label40  = {{#if:{{{wheelbase_mm|}}}|Wheelbase}}
 
| label40  = {{#if:{{{wheelbase_mm|}}}|Wheelbase}}
| data40  = {{#if:{{{wheelbase_mm|}}}|{{{wheelbase_mm}}} mm ({{#expr: {{{wheelbase_mm|}}}*0.0393700787 round 0}} in)}}
+
| data40  = {{#if:{{{wheelbase_mm|}}}|{{{wheelbase_mm}}} mm ({{#expr: {{{wheelbase_mm|}}}*0.0393700787 round 1}} in)}}
  
 
| label41  = {{#if:{{{length_mm|}}}|Length}}
 
| label41  = {{#if:{{{length_mm|}}}|Length}}
| data41  = {{#if:{{{length_mm|}}}|{{{length_mm}}} mm ({{#expr: {{{length_mm|}}}*0.0393700787 round 0}} in)}}
+
| data41  = {{#if:{{{length_mm|}}}|{{{length_mm}}} mm ({{#expr: {{{length_mm|}}}*0.0393700787 round 1}} in)}}
  
 
| label42  = {{#if:{{{width_mm|}}}|Width}}
 
| label42  = {{#if:{{{width_mm|}}}|Width}}
| data42  = {{#if:{{{width_mm|}}}|{{{width_mm}}} mm ({{#expr: {{{width_mm|}}}*0.0393700787 round 0}} in)}}
+
| data42  = {{#if:{{{width_mm|}}}|{{{width_mm}}} mm ({{#expr: {{{width_mm|}}}*0.0393700787 round 1}} in)}}
  
 
| label43  = {{#if:{{{height_mm|}}}|Height}}
 
| label43  = {{#if:{{{height_mm|}}}|Height}}
| data43  = {{#if:{{{height_mm|}}}|{{{height_mm}}} mm ({{#expr: {{{height_mm|}}}*0.0393700787 round 0}} in)}}
+
| data43  = {{#if:{{{height_mm|}}}|{{{height_mm}}} mm ({{#expr: {{{height_mm|}}}*0.0393700787 round 1}} in)}}
  
 
| label44  = {{#if:{{{total_mass_kg|}}}|Kerb weight}}
 
| label44  = {{#if:{{{total_mass_kg|}}}|Kerb weight}}
Line 119: Line 121:
 
| header50 = Features
 
| header50 = Features
  
| label50 = {{#if:{{{abs|}}}|ABS}}
+
| label50 = {{#if:{{{abs|}}}|[[:Category:Cars with ABS|ABS]]}}
| data50  = {{#if:{{{abs|}}}|{{#ifeq:{{{abs}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| data50  = {{#if:{{{abs|}}}|{{#ifeq:{{{abs}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with ABS]]}}{{Yes check}}|{{No mark}}}}}}
 +
 
 +
| label51 = {{#if:{{{tc|}}}|[[:Category:Cars with traction control|Traction control]]}}
 +
| data51  = {{#if:{{{tc|}}}|{{#ifeq:{{{tc}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with traction control]]}}{{Yes check}}|{{No mark}}}}}}
  
| label51 = {{#if:{{{tc|}}}|Traction control}}
+
| label52 = {{#if:{{{pit_limiter|}}}|[[:Category:Cars with pit speed limiter|Pit speed limiter]]}}
| data51 = {{#if:{{{tc|}}}|{{#ifeq:{{{tc}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| data52 = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with pit speed limiter]]}}{{Yes check}}|{{No mark}}}}}}
  
| label52 = {{#if:{{{pit_limiter|}}}|Pit speed limiter}}
+
| header90 = {{#if:{{{prev|}}}{{{next|}}}|Cars navigation}}
| data52  = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{Yes check}}|{{No mark}}}}}}
 
  
 +
| belowleft = {{#if:{{{prev|}}}|'''Previous car'''<br />{{{prev}}}}}
 +
| belowright = {{#if:{{{next|}}}|'''Next car'''<br />{{{next}}}}}
  
 
| belowstyle = background: #dedede;
 
| belowstyle = background: #dedede;
 
| below  = {{#if:{{{short_name|}}}|[https://www.lfs.net/cars/{{{short_name|}}} {{{name|{{BASEPAGENAME}}}}} on LFS.net]}}
 
| below  = {{#if:{{{short_name|}}}|[https://www.lfs.net/cars/{{{short_name|}}} {{{name|{{BASEPAGENAME}}}}} on LFS.net]}}
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 10:12, 3 April 2024

Template Info-Icon.png

Template documentation

View - Edit

Formula XR
FOX.png
Car image caption
Overview
Short name FOX
Class single-seater
License S2
Introduced 0.5P
Resemblance fictional
Body and chassis
Body style open single-seater
Layout mid-engine rear-wheel drive
Configurations config one
config two
Seats 1
Related Formula BMW FB02
Powertrain
Engine 2.0 L inline 4
Power 142 kW (190 bhp)
@ 7031 RPM
Torque 221 Nm (163 lbft)
@ 4980 RPM
Power/weight 290 W/kg (395 bhp/ton)
Transmission 6-speed sequential with ignition cut
Suspension and wheels
Suspension Front: double wishbone
Rear: double wishbone
Tyre compounds slick R1
slick R2
slick R3
slick R4
Steering wheel rotation 900° (2.5 turns)
Dimensions
Wheelbase 3500 mm (137.8 in)
Length 4000 mm (157.5 in)
Width 1823 mm (71.8 in)
Height 1134 mm (44.6 in)
Kerb weight 490 kg (1080 lbs)
Weight distribution 45 F 55 R
Fuel capacity 38 L
Features
ABS  Yes
Traction control  No
Pit speed limiter  Yes
Cars navigation
Previous car
Formula BMW FB02
Next car
Formula V8
Formula XR on LFS.net