Difference between revisions of "Template:Infobox car"

From LFS Manual
Jump to navigationJump to search
(above style)
(subsections and more info)
Line 6: Line 6:
 
| caption2 = {{{car_image_caption|}}}
 
| caption2 = {{{car_image_caption|}}}
  
| abovestyle = background-color: #dedede
+
| abovestyle = background-color: #dedede
 
| headerstyle = background-color: #dedede
 
| headerstyle = background-color: #dedede
 +
 +
 +
| header1 = Overview
  
 
| label1  = Short name
 
| label1  = Short name
 
| data1  = {{{short_name|}}}
 
| data1  = {{{short_name|}}}
| label2  = Drive
+
 
| data2  = {{#switch:{{{drive|}}}
+
| label2  = {{#if:{{{license|}}}|License}}
|front=[[:Category:Front-wheel drive cars|front-wheel drive]]
+
| data2  = {{#if:{{{license|}}}|[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
|rear=[[:Category:Rear-wheel drive cars|rear-wheel drive]]
+
 
|all=[[:Category:All-wheel drive cars|all-wheel drive]]
+
| label3  = Introduced
 +
| data3  = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
 +
 
 +
| label5  = Resemblance
 +
| data5  = {{#switch:{{{resemblance|}}}
 +
|fictional=[[:Category:Fictional cars|fictional]]
 +
|real=[[:Category:Real cars|real]]
 
}}
 
}}
| label3 = Class
+
 
| data3   = {{#switch:{{{class|}}}
+
 
 +
| header10 = Body and chassis
 +
 
 +
| label10 = Class
 +
| data10   = {{#switch:{{{class|}}}
 
|fr=[[:Category:FR cars|FR]]
 
|fr=[[:Category:FR cars|FR]]
 
|fwdgtr=[[:Category:FWD GTR cars|FWD GTR]]
 
|fwdgtr=[[:Category:FWD GTR cars|FWD GTR]]
Line 27: Line 40:
 
|unclassified=[[:Category:Unclassified cars|unclassified]]
 
|unclassified=[[:Category:Unclassified cars|unclassified]]
 
}}
 
}}
| label4 = {{#if:{{{license|}}}|License}}
+
 
| data4   = {{#if:{{{license|}}}|[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
+
| label11 = {{#if:{{{body_style|}}}|Body style}}
| label5  = Resemblance
+
| data11   = {{#if:{{{body_style|}}}|{{{body_style}}}}}
| data5  = {{#switch:{{{resemblance|}}}
+
 
|fictional=[[:Category:Fictional cars|fictional]]
+
| label12  = Layout
|real=[[:Category:Real cars|real]]
+
| data12  = {{#switch:{{{engine_placement|}}}
 +
|front=[[:Category:Front-engined cars|front-engine]]
 +
|rear=[[:Category:Rear-engined cars|rear-engine]]
 +
|mid=[[:Category:Mid-engined cars|mid-engine]]
 +
}}
 +
{{#switch:{{{drive|}}}
 +
|front=[[:Category:Front-wheel drive cars|front-wheel drive]]
 +
|rear=[[:Category:Rear-wheel drive cars|rear-wheel drive]]
 +
|all=[[:Category:All-wheel drive cars|all-wheel drive]]
 
}}
 
}}
| label6  = Introduced
 
| data6  = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
 
  
| header9 = Specifications
+
| label13 = {{#if:{{{seats|}}}|Seats}}
| label9 = Engine
+
| data13  = {{#if:{{{seats|}}}|{{{seats|}}}}}
| data9   = {{#if:{{{engine|}}}|{{{engine}}}}}
+
 
| label10 = {{#if:{{{power_kw|}}}|Power}}
+
| label14 = {{#if:{{{related|}}}|Related}}
| data10   = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
+
| data14  = {{#if:{{{related|}}}|{{{related|}}}}}
| label11 = {{#if:{{{torque_nm|}}}|Torque}}
+
 
| data11   = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
+
 
| label12 = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
+
| header20 = Suspension and wheels
| data12   = {{#if:{{{powerweight_w_kg|}}}|{{{powerweight_w_kg|}}} W/kg {{#if:{{{powerweight_bhp_ton|}}}|({{{powerweight_bhp_ton|}}} bhp/ton)}}}}
+
 
| label13 = {{#if:{{{weight_dist_front|}}}|Weight distribution}}
+
| label20  = {{#if:{{{suspension_front|}}}|Suspension}}
| data13   = {{#if:{{{weight_dist_front|}}}|{{{weight_dist_front|}}} F {{#expr: 100-{{{weight_dist_front|}}}}} R}}
+
| data20  = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
| label14  = {{#if:{{{fuel_capacity|}}}|{{#ifeq:{{{fuel_unit|}}}|kWh|Battery capacity|Fuel capacity}}}}
+
 
| data14   = {{#if:{{{fuel_capacity|}}}|{{{fuel_capacity|}}} {{#ifeq:{{{fuel_unit|}}}|kWh|kWh|L}}}}
+
| label21 = {{#if:{{{tyres|}}}|Tyre compounds}}
| label15 = {{#if:{{{total_mass_kg|}}}|Total mass}}
+
| data21  = {{#if:{{{tyres|}}}|{{{tyres}}}}}
| data15   = {{#if:{{{total_mass_kg|}}}|{{{total_mass_kg}}} kg ({{#expr: {{{total_mass_kg|}}}*2.20462 round 0}} lbs)}}
+
 
| label16 = {{#if:{{{suspension_front|}}}|Suspension}}
+
| label22 = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
| data16   = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
+
| data22  = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
| label17  = {{#if:{{{transmission_gears|}}}|Transmission|{{#if:{{{transmission_type|}}}|Transmission}}}}
+
 
| data17  = {{#if:{{{transmission_gears|}}}|{{{transmission_gears}}}-speed {{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}|{{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}}}
+
 
| label18 = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
+
| header30 = Powertrain
| data18   = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
+
 
| label19 = {{#if:{{{tyres|}}}|Tyre compounds}}
+
| label30 = Engine
| data19  = {{#if:{{{tyres|}}}|{{{tyres}}}}}
+
| data30   = {{#if:{{{engine|}}}|{{{engine}}}}}
| label20 = {{#if:{{{abs|}}}|ABS}}
+
 
| data20 = {{#if:{{{abs|}}}|{{#ifeq:{{{abs}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| label31 = {{#if:{{{power_kw|}}}|Power}}
| label21 = {{#if:{{{tc|}}}|Traction control}}
+
| data31   = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
| data21 = {{#if:{{{tc|}}}|{{#ifeq:{{{tc}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
 
| label22 = {{#if:{{{pit_limiter|}}}|Pit speed limiter}}
+
| label32 = {{#if:{{{torque_nm|}}}|Torque}}
| data22 = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| data32   = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
| label23 = {{#if:{{{seats|}}}|Seats}}
+
 
| data23  = {{#if:{{{seats|}}}|{{{seats|}}}}}
+
| label33 = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
 +
| data33   = {{#if:{{{powerweight_w_kg|}}}|{{{powerweight_w_kg|}}} W/kg {{#if:{{{powerweight_bhp_ton|}}}|({{{powerweight_bhp_ton|}}} bhp/ton)}}}}
 +
 
 +
| label34 = {{#if:{{{transmission_gears|}}}|Transmission|{{#if:{{{transmission_type|}}}|Transmission}}}}
 +
| data34   = {{#if:{{{transmission_gears|}}}|{{{transmission_gears}}}-speed {{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}|{{#if:{{{transmission_type|}}}|{{{transmission_type|}}}}}}}
 +
 
 +
 
 +
| header40 = Dimensions
 +
 
 +
| label40  = {{#if:{{{wheelbase_mm|}}}|Wheelbase}}
 +
| data40   = {{#if:{{{wheelbase_mm|}}}|{{{wheelbase_mm}}} mm ({{#expr: {{{wheelbase_mm|}}}*0.0393700787 round 0}} in)}}
 +
 
 +
| label41 = {{#if:{{{length_mm|}}}|Length}}
 +
| data41   = {{#if:{{{length_mm|}}}|{{{length_mm}}} mm ({{#expr: {{{length_mm|}}}*0.0393700787 round 0}} in)}}
 +
 
 +
| label42 = {{#if:{{{width_mm|}}}|Width}}
 +
| data42   = {{#if:{{{width_mm|}}}|{{{width_mm}}} mm ({{#expr: {{{width_mm|}}}*0.0393700787 round 0}} in)}}
 +
 
 +
| label43  = {{#if:{{{height_mm|}}}|Height}}
 +
| data43  = {{#if:{{{height_mm|}}}|{{{height_mm}}} mm ({{#expr: {{{height_mm|}}}*0.0393700787 round 0}} in)}}
 +
 
 +
| label44  = {{#if:{{{total_mass_kg|}}}|Kerb weight}}
 +
| data44  = {{#if:{{{total_mass_kg|}}}|{{{total_mass_kg}}} kg ({{#expr: {{{total_mass_kg|}}}*2.20462 round 0}} lbs)}}
 +
 
 +
| label45 = {{#if:{{{weight_dist_front|}}}|Weight distribution}}
 +
| data45   = {{#if:{{{weight_dist_front|}}}|{{{weight_dist_front|}}} F {{#expr: 100-{{{weight_dist_front|}}}}} R}}
 +
 
 +
| label46  = {{#if:{{{fuel_capacity|}}}|{{#ifeq:{{{fuel_unit|}}}|kWh|Battery capacity|Fuel capacity}}}}
 +
| data46  = {{#if:{{{fuel_capacity|}}}|{{{fuel_capacity|}}} {{#ifeq:{{{fuel_unit|}}}|kWh|kWh|L}}}}
 +
 
 +
 
 +
| header50 = Features
 +
 
 +
| label50 = {{#if:{{{abs|}}}|ABS}}
 +
| data50 = {{#if:{{{abs|}}}|{{#ifeq:{{{abs}}}|yes|{{Yes check}}|{{No mark}}}}}}
 +
 
 +
| label51 = {{#if:{{{tc|}}}|Traction control}}
 +
| data51 = {{#if:{{{tc|}}}|{{#ifeq:{{{tc}}}|yes|{{Yes check}}|{{No mark}}}}}}
 +
 
 +
| label52 = {{#if:{{{pit_limiter|}}}|Pit speed limiter}}
 +
| data52 = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{Yes check}}|{{No mark}}}}}}
 +
 
  
 
| 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>

Revision as of 12:06, 27 January 2024

Template Info-Icon.png

Template documentation

View - Edit

Formula XR
FOX.png
Car image caption
Overview
Short name FOX
License S2
Introduced 0.5P
Resemblance fictional
Body and chassis
Class single-seater
Body style open single-seater
Layout

mid-engine

rear-wheel drive
Seats 1
Related Formula BMW FB02
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)
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
Dimensions
Wheelbase 3500 mm (138 in)
Length 4000 mm (157 in)
Width 1823 mm (72 in)
Height 1134 mm (45 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
Formula XR on LFS.net