Difference between revisions of "Template:Infobox car"

From LFS Manual
Jump to navigationJump to search
(license field not included if not given (useful for mod cars, we dont want to link to "S3 cars" category))
(kerb weight -> dry weight)
 
(57 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
| caption2 = {{{car_image_caption|}}}
 
| caption2 = {{{car_image_caption|}}}
  
 +
| 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  = [[:Category:Cars by vehicle type|Vehicle type]]
|front=[[:Category:Front-wheel drive cars|front-wheel drive]]
+
| data2  = {{#switch:{{{vehicle_type|}}}
|rear=[[:Category:Rear-wheel drive cars|rear-wheel drive]]
+
|object={{#if:{{{nocat|}}}||[[Category:Objects]]}}[[:Category:Objects|object]]
|all=[[:Category:All-wheel drive cars|all-wheel drive]]
+
|touring={{#if:{{{nocat|}}}||[[Category:Touring cars]]}}[[:Category:Touring cars|touring car]]
 +
|saloon={{#if:{{{nocat|}}}||[[Category:Saloon cars]]}}[[:Category:Saloon cars|saloon]]
 +
|buggy={{#if:{{{nocat|}}}||[[Category:Buggy cars]]}}[[:Category:Buggy cars|buggy]]
 +
|formula={{#if:{{{nocat|}}}||[[Category:Formula cars]]}}[[:Category:Formula cars|formula]]
 +
|gt={{#if:{{{nocat|}}}||[[Category:GT cars]]|}}[[:Category:GT cars|GT]]
 +
|kart={{#if:{{{nocat|}}}||[[Category:Karts]]}}[[:Category:Karts|kart]]
 +
|bike={{#if:{{{nocat|}}}||[[Category:Bikes]]}}[[:Category:Bikes|bike]]
 +
|van={{#if:{{{nocat|}}}||[[Category:Vans]]}}[[:Category:Vans|van]]
 +
|truck={{#if:{{{nocat|}}}||[[Category:Trucks]]}}[[:Category:Trucks|truck]]
 +
|f1={{#if:{{{nocat|}}}||[[Category:F1 cars]]}}[[:Category:F1 cars|{{abbr|F1|Formula 1}}]]
 +
|fsae={{#if:{{{nocat|}}}||[[Category:FSAE cars]]}}[[:Category:FSAE cars|{{abbr|FSAE|Formula SAE student design competition car}}]]
 +
|bus={{#if:{{{nocat|}}}||[[Category:Buses]]}}[[:Category:Buses|bus]]
 +
|prototype={{#if:{{{nocat|}}}||[[Category:Prototype cars]]}}[[:Category:Prototype cars|prototype]]
 
}}
 
}}
| label3  = Class
+
 
 +
| label3  = [[:Category:Cars by class|Class]]
 
| data3  = {{#switch:{{{class|}}}
 
| data3  = {{#switch:{{{class|}}}
|fr=[[:Category:FR cars|FR]]
+
|std={{#if:{{{nocat|}}}||[[Category:STD cars]]}}[[:Category:STD cars|STD]]
|fwdgtr=[[:Category:FWD GTR cars|FWD GTR]]
+
|fwdgtr={{#if:{{{nocat|}}}||[[Category:FWD GTR cars]]}}[[:Category:FWD GTR cars|FWD GTR]]
|gtr=[[:Category:GTR cars|GTR]]
+
|gtr={{#if:{{{nocat|}}}||[[Category:GTR cars]]}}[[:Category:GTR cars|GTR]]
|lrf=[[:Category:LRF cars|LRF]]
+
|lrf={{#if:{{{nocat|}}}||[[Category:LRF cars]]}}[[:Category:LRF cars|LRF]]
|ss=[[:Category:Single-seaters|single-seater]]
+
|ss={{#if:{{{nocat|}}}||[[Category:Single-seaters]]}}[[:Category:Single-seaters|single-seater]]
|tbo=[[:Category:TBO cars|TBO]]
+
|tbo={{#if:{{{nocat|}}}||[[Category:TBO cars]]|}}[[:Category:TBO cars|TBO]]
|unclassified=[[:Category:Unclassified cars|unclassified]]
+
|unclassified={{#if:{{{nocat|}}}||[[Category:Unclassified cars]]}}[[:Category:Unclassified cars|unclassified]]
 +
}}
 +
 
 +
| label4  = {{#if:{{{license|}}}|[[:Category:Cars by license|License]]}}
 +
| data4  = {{#if:{{{license|}}}|{{#if:{{{nocat|}}}||[[Category:{{{license|}}} cars]]}}[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
 +
 
 +
| label5  = Introduced
 +
| data5  = {{#ifeq:{{{introduced|}}}|never|?[[Category:Unreleased cars]]|{{LFS version|{{{introduced}}}}}}}
 +
 
 +
| label6  = Last updated
 +
| data6  = {{#if:{{{last_updated|}}}|{{LFS version|{{{last_updated}}}}}}}
 +
 
 +
| label7  = [[:Category:Cars by resemblance to reality|Resemblance]]
 +
| data7  = {{#switch:{{{resemblance|}}}
 +
|fictional={{#if:{{{nocat|}}}||[[Category:Fictional cars]]}}[[:Category:Fictional cars|fictional]]
 +
|real={{#if:{{{nocat|}}}||[[Category:Real cars]]}}[[:Category:Real cars|real]]
 
}}
 
}}
| label4 = {{#if:{{{license|}}}|License}}
+
 
| data4   = {{#if:{{{license|}}}|[[:Category:{{{license|}}} cars|{{{license|}}}]]}}
+
| label8  = {{#if:{{{designer|}}}|[[:Category:Cars by designer|Designer]]}}
| label5  = Resemblance
+
| data8  = {{{designer|}}}
| data5  = {{#switch:{{{resemblance|}}}
+
 
|fictional=[[:Category:Fictional cars|fictional]]
+
| label9 = {{#if:{{{related|}}}|Related}}
|real=[[:Category:Real cars|real]]
+
| data9  = {{#if:{{{related|}}}|{{{related|}}}}}
 +
 
 +
 
 +
| header10 = Body and chassis
 +
 
 +
| label10 = {{#if:{{{body_style|}}}|Body style}}
 +
| data10   = {{#if:{{{body_style|}}}|{{{body_style}}}}}
 +
 
 +
| label12  = Layout
 +
| data12  = {{#switch:{{{engine_placement|}}}
 +
|front={{#if:{{{nocat|}}}||[[Category:Front-engined cars]]}}[[:Category:Front-engined cars|front-engine]]
 +
|rear={{#if:{{{nocat|}}}||[[Category:Rear-engined cars]]}}[[:Category:Rear-engined cars|rear-engine]]
 +
|mid={{#if:{{{nocat|}}}||[[Category:Mid-engined cars]]}}[[:Category:Mid-engined cars|mid-engine]]
 +
}} {{#switch:{{{drive|}}}
 +
|front={{#if:{{{nocat|}}}||[[Category:Front-wheel drive cars]]}} [[:Category:Front-wheel drive cars|front-wheel drive]]
 +
|rear={{#if:{{{nocat|}}}||[[Category:Rear-wheel drive cars]]}} [[:Category:Rear-wheel drive cars|rear-wheel drive]]
 +
|all={{#if:{{{nocat|}}}||[[Category:All-wheel drive cars]]}} [[:Category:All-wheel drive cars|all-wheel drive]]
 
}}
 
}}
| label6  = Introduced
 
| data6  = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
 
  
| header9 = Specifications
+
| label13 = {{#if:{{{default_color1|}}}|Default colours}}
| label9  = Engine
+
| data13 = {{#if:{{{default_color1|}}}|{{color|{{{default_color1}}}|{{{default_color1b}}}}}}} {{#if:{{{default_color2|}}}|{{color|{{{default_color2}}}|{{{default_color2b}}}}}}} {{#if:{{{default_color3|}}}|{{color|{{{default_color3}}}|{{{default_color3b}}}}}}} {{#if:{{{default_color4|}}}|{{color|{{{default_color4}}}|{{{default_color4b}}}}}}} {{#if:{{{default_color5|}}}|{{color|{{{default_color5}}}|{{{default_color5b}}}}}}} {{#if:{{{default_color6|}}}|{{color|{{{default_color6}}}|{{{default_color6b}}}}}}} {{#if:{{{default_color7|}}}|{{color|{{{default_color7}}}|{{{default_color7b}}}}}}} {{#if:{{{default_color8|}}}|{{color|{{{default_color8}}}|{{{default_color8b}}}}}}} {{#if:{{{default_color9|}}}|{{color|{{{default_color9}}}|{{{default_color9b}}}}}}}
| data9  = {{#if:{{{engine|}}}|{{{engine}}}}}
+
 
| label10 = {{#if:{{{power_kw|}}}|Power}}
+
| label14 = {{#if:{{{default_setups|}}}|Default setups}}
| data10  = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
+
| data14  = {{#if:{{{default_setups|}}}|{{{default_setups}}}}}
| label11  = {{#if:{{{torque_nm|}}}|Torque}}
+
 
| data11  = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
+
| label15 = {{#if:{{{configs|}}}|Configurations}}
| label12  = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
+
| data15 = {{#if:{{{configs|}}}|{{{configs}}}}}
| 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}}
+
| label16 = {{#if:{{{seats|}}}|Seats}}
| data13  = {{#if:{{{weight_dist_front|}}}|{{{weight_dist_front|}}} F {{#expr: 100-{{{weight_dist_front|}}}}} R}}
+
| data16 = {{#if:{{{seats|}}}|{{{seats|}}}}}
| label14  = {{#if:{{{fuel_capacity|}}}|{{#ifeq:{{{fuel_unit|}}}|kWh|Battery capacity|Fuel capacity}}}}
+
 
| data14  = {{#if:{{{fuel_capacity|}}}|{{{fuel_capacity|}}} {{#ifeq:{{{fuel_unit|}}}|kWh|kWh|L}}}}
+
| label17 = {{#if:{{{driver_position|}}}|Driver position}}
| label15 = {{#if:{{{total_mass_kg|}}}|Total mass}}
+
| data17  = {{#if:{{{driver_position|}}}|{{{driver_position|}}}}}
| data15   = {{#if:{{{total_mass_kg|}}}|{{{total_mass_kg}}} kg ({{#expr: {{{total_mass_kg|}}}*2.20462 round 0}} lbs)}}
+
 
| label16 = {{#if:{{{suspension_front|}}}|Suspension}}
+
 
| data16  = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
+
| header20 = Powertrain
| 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|}}}}}}}
+
| label20  = Engine
| label18  = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
+
| data20  = {{#if:{{{engine|}}}|{{{engine}}}}}
| data18  = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
+
 
| label19 = {{#if:{{{tyres|}}}|Tyre compounds}}
+
| label21 = {{#if:{{{power_kw|}}}|Power}}
| data19 = {{#if:{{{tyres|}}}|{{{tyres}}}}}
+
| data21  = {{#if:{{{power_kw|}}}| {{convert|{{{power_kw|}}}|kw|bhp}} }}{{#if:{{{power_at_rpm|}}}|<br>@ {{{power_at_rpm|}}} RPM}}
| label20 = {{#if:{{{abs|}}}|ABS}}
+
 
| data20  = {{#if:{{{abs|}}}|{{#ifeq:{{{abs}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| label22  = {{#if:{{{torque_nm|}}}|Torque}}
| label21 = {{#if:{{{tc|}}}|Traction control}}
+
| data22  = {{#if:{{{torque_nm|}}}| {{convert|{{{torque_nm|}}}|nm|lbft}} }}{{#if:{{{torque_at_rpm|}}}|<br>@ {{{torque_at_rpm|}}} RPM}}
| data21  = {{#if:{{{tc|}}}|{{#ifeq:{{{tc}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
 
| label22 = {{#if:{{{pit_limiter|}}}|Pit speed limiter}}
+
| label23  = {{#if:{{{powerweight_w_kg|}}}|Power/weight}}
| data22  = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{Yes check}}|{{No mark}}}}}}
+
| data23  = {{#if:{{{powerweight_w_kg|}}}|{{{powerweight_w_kg|}}} W/kg {{#if:{{{powerweight_bhp_ton|}}}|({{{powerweight_bhp_ton|}}} bhp/ton)}}}}
 +
 
 +
| 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|}}}}}}}
 +
 
 +
 
 +
| header30 = Suspension and wheels
 +
 
 +
| label30  = {{#if:{{{suspension_front|}}}|Suspension}}
 +
| data30  = {{#if:{{{suspension_front|}}}|Front: {{Infobox car/suspension|{{{suspension_front|}}}}}}}{{#if:{{{suspension_rear|}}}|<br>Rear: {{Infobox car/suspension|{{{suspension_rear|}}}}}}}
 +
 
 +
| label31 = {{#if:{{{tyres|}}}|Tyre compounds}}
 +
| data31  = {{#if:{{{tyres|}}}|{{{tyres}}}}}
 +
 
 +
| label32  = {{#if:{{{tyre_spec_front|}}}|Tyre specification}}
 +
| data32  = {{#if:{{{tyre_spec_front|}}}|Front: {{{tyre_spec_front|}}}}}{{#if:{{{tyre_spec_rear|}}}|<br>Rear: {{{tyre_spec_rear|}}}}}
 +
 
 +
| label33 = {{#if:{{{steering_rotation|}}}|Steering wheel rotation}}
 +
| data33  = {{#if:{{{steering_rotation|}}}|{{{steering_rotation}}}° ({{#expr: {{{steering_rotation}}} / 360 round 1}} turns)}}
 +
 
 +
| label34 = {{#if:{{{maximum_lock|}}}|Maximum lock}}
 +
| data34  = {{#if:{{{maximum_lock|}}}|{{{maximum_lock}}}°}}
 +
 
 +
| label35 = {{#if:{{{maximum_lock|}}}|{{#if:{{{steering_rotation|}}}|Steering ratio}}}}
 +
| data35  = {{#if:{{{maximum_lock|}}}|{{#if:{{{steering_rotation|}}}| {{#expr: {{{steering_rotation}}} / 2 / {{{maximum_lock}}} round 1}} : 1 }}}}
 +
 
 +
 
 +
| header40 = Dimensions
 +
 
 +
| label40  = {{#if:{{{wheelbase_mm|}}}|Wheelbase}}
 +
| data40  = {{#if:{{{wheelbase_mm|}}}|{{{wheelbase_mm}}} mm ({{#expr: {{{wheelbase_mm|}}}*0.0393700787 round 1}} in)}}
 +
 
 +
| label41  = {{#if:{{{length_mm|}}}|Length}}
 +
| data41  = {{#if:{{{length_mm|}}}|{{{length_mm}}} mm ({{#expr: {{{length_mm|}}}*0.0393700787 round 1}} in)}}
 +
 
 +
| label42  = {{#if:{{{width_mm|}}}|Width}}
 +
| data42  = {{#if:{{{width_mm|}}}|{{{width_mm}}} mm ({{#expr: {{{width_mm|}}}*0.0393700787 round 1}} in)}}
 +
 
 +
| label43  = {{#if:{{{height_mm|}}}|Height}}
 +
| data43  = {{#if:{{{height_mm|}}}|{{{height_mm}}} mm ({{#expr: {{{height_mm|}}}*0.0393700787 round 1}} in)}}
 +
 
 +
| label44  = {{#if:{{{total_mass_kg|}}}|{{abbr|Dry weight|total weight of a vehicle without any fluids, passengers, or cargo}}}}
 +
| 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|}}}|[[:Category:Cars with ABS|ABS]]}}
 +
| 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}}}}}}
 +
 
 +
| label52 = {{#if:{{{pit_limiter|}}}|[[:Category:Cars with pit speed limiter|Pit speed limiter]]}}
 +
| data52  = {{#if:{{{pit_limiter|}}}|{{#ifeq:{{{pit_limiter}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with pit speed limiter]]}}{{Yes check}}|{{No mark}}}}}}
 +
 
 +
| label53 = {{#if:{{{horn|}}}|[[:Category:Cars with horn|Horn]]}}
 +
| data53  = {{#if:{{{horn|}}}|{{#ifeq:{{{horn}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with horn]]}}{{Yes check}}|{{No mark}}}}}}
 +
 
 +
| label54 = {{#if:{{{handbrake|}}}|[[:Category:Cars with handbrake|Handbrake]]}}
 +
| data54  = {{#if:{{{handbrake|}}}|{{#ifeq:{{{handbrake}}}|yes|{{#if:{{{nocat|}}}||[[Category:Cars with handbrake]]}}{{Yes check}}|{{No mark}}}}}}
 +
 
 +
 
 +
| header60 = {{#if:{{{lod1_tris|}}}|3D model}}
 +
 
 +
| label60 = {{#if:{{{lod1_tris|}}}|Triangles}}
 +
| data60  = {{#if:{{{lod1_tris|}}}|LOD1: {{{lod1_tris}}}}}{{#if:{{{lod2_tris|}}}|<br>LOD2: {{{lod2_tris}}}}}{{#if:{{{lod3_tris|}}}|<br>LOD3: {{{lod3_tris}}}}}
 +
 
 +
| label61 = {{#if:{{{lod1_tris|}}}|Points}}
 +
| data61  = {{#if:{{{lod1_pts|}}}|LOD1: {{{lod1_pts}}}}}{{#if:{{{lod2_pts|}}}|<br>LOD2: {{{lod2_pts}}}}}{{#if:{{{lod3_pts|}}}|<br>LOD3: {{{lod3_pts}}}}}
 +
 
 +
| header90 = {{#if:{{{prev|}}}{{{next|}}}|Cars navigation}}
 +
 
 +
| 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 13:59, 6 April 2025

Template Info-Icon.png

Template documentation

View - Edit

Formula XR
FOX.png
Car image caption
Overview
Short name FOX
Vehicle type formula
Class single-seater
License S2
Introduced 0.5P
Last updated 0.6C
Resemblance fictional
Designer Eric Bailey
Related Formula BMW FB02
Body and chassis
Body style open single-seater
Layout mid-engine rear-wheel drive
Default colours
Default setups hard track
rallycross
Configurations config one
config two
Seats 1
Driver position central
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
Tyre specification Front: 225/50 R13
Rear: 285/45 R13
Steering wheel rotation 900° (2.5 turns)
Maximum lock 30°
Steering ratio 15 : 1
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)
Dry 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
Horn  No
Handbrake  No
3D model
Triangles LOD1: 65536
LOD2: 8192
LOD3: 42
Points LOD1: 65536
LOD2: 12288
LOD3: 24
Cars navigation
Previous car
Formula BMW FB02
Next car
Formula V8
Formula XR on LFS.net