Difference between revisions of "Template:Infobox track"

From LFS Manual
Jump to navigationJump to search
m
(new param: last updated (as label6/data6))
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox
 
<includeonly>{{Infobox
| above   = {{{name|{{BASEPAGENAME}}}}}
+
| above     = {{{name|{{BASEPAGENAME}}}}}
| image   = {{{logo|}}}
+
| image2   = {{{logo|}}}
| caption = {{{logo_caption|}}}
+
| caption2 = {{{logo_caption|}}}
| image2  = {{{track_map|}}}
+
| image3    = {{{track_map|}}}
| caption2 = {{{track_map_caption|}}}
+
| caption3  = {{{track_map_caption|}}}
| image3  = {{{track_image|}}}
+
| image    = {{{track_image|}}}
| caption3 = {{{track_image_caption|}}}
+
| caption  = {{{track_image_caption|}}}
  
 +
| abovestyle = background-color: #dedede
 
| headerstyle = background-color: #dedede
 
| headerstyle = background-color: #dedede
  
 
| label1  = Short name
 
| label1  = Short name
 
| data1  = {{{short_name|}}}
 
| data1  = {{{short_name|}}}
| label2  = Track type
+
| label2  = [[:Category:Tracks by type|Track type]]
 
| data2  = {{#switch:{{{type|}}}
 
| data2  = {{#switch:{{{type|}}}
 
|permanent=[[:Category:Permanent circuit tracks|permanent circuit]]
 
|permanent=[[:Category:Permanent circuit tracks|permanent circuit]]
Line 18: Line 19:
 
|open=[[:Category:Open area tracks|open area]]
 
|open=[[:Category:Open area tracks|open area]]
 
}}
 
}}
| label3  = License
+
| label3  = [[:Category:Tracks by license|License]]
 
| data3  = [[:Category:{{{license|}}} tracks|{{{license|}}}]]
 
| data3  = [[:Category:{{{license|}}} tracks|{{{license|}}}]]
 
| label4  = Location
 
| label4  = Location
Line 24: Line 25:
 
| label5  = Introduced
 
| label5  = Introduced
 
| data5  = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
 
| data5  = {{#if:{{{introduced|}}}|{{LFS version|{{{introduced}}}}}}}
| label6  = Weather types
+
| label6 = Last updated
| data6   = {{{weather_type1|}}}{{#if:{{{weather_type2|}}}|<br/>{{{weather_type2}}}}}{{#if:{{{weather_type3|}}}|<br/>{{{weather_type3}}}}}{{#if:{{{weather_type4|}}}|<br/>{{{weather_type4}}}}}
+
| data6  = {{#if:{{{last_updated|}}}|{{LFS version|{{{last_updated}}}}}}}
| label7 = {{#if:{{{pit_speed_kmh|}}}|Pit lane speed limit}}
+
| label7 = Weather types
| data7 = {{#if:{{{pit_speed_kmh|}}}|{{{pit_speed_kmh|}}} km/h ({{#expr: {{{pit_speed_kmh|}}}*0.62 round 0}} mph)}}
+
| data7   = {{{weather_type1|}}}{{#if:{{{weather_type2|}}}|<br/>{{{weather_type2}}}}}{{#if:{{{weather_type3|}}}|<br/>{{{weather_type3}}}}}{{#if:{{{weather_type4|}}}|<br/>{{{weather_type4}}}}}
| label8 = Configurations
+
| label8 = {{#if:{{{pit_speed_kmh|}}}|Pit lane speed limit}}
| data8   = {{{configurations|0}}}
+
| data8 = {{#if:{{{pit_speed_kmh|}}}|{{{pit_speed_kmh|}}} km/h ({{#expr: {{{pit_speed_kmh|}}}*0.62 round 0}} mph)}}
 +
| label9 = Configurations
 +
| data9   = {{{configurations|0}}}
  
 
<!-- Configurations -->
 
<!-- Configurations -->
 +
  
 
| header13 = {{{config1|}}}
 
| header13 = {{{config1|}}}
Line 54: Line 58:
 
| label18  = {{#if:{{{config1_surface1|}}}|Surface types}}
 
| label18  = {{#if:{{{config1_surface1|}}}|Surface types}}
 
| data18  = {{#if:{{{config1_surface1|}}}|{{Infobox track/surface type|{{{config1_surface1|}}}|{{{config1_surface_perc1|}}}}}{{#if:{{{config1_surface2|}}}|{{Infobox track/surface type|{{{config1_surface2|}}}|{{{config1_surface_perc2|}}}}}}}{{#if:{{{config1_surface3|}}}|{{Infobox track/surface type|{{{config1_surface3|}}}|{{{config1_surface_perc3|}}}}}}}}}
 
| data18  = {{#if:{{{config1_surface1|}}}|{{Infobox track/surface type|{{{config1_surface1|}}}|{{{config1_surface_perc1|}}}}}{{#if:{{{config1_surface2|}}}|{{Infobox track/surface type|{{{config1_surface2|}}}|{{{config1_surface_perc2|}}}}}}}{{#if:{{{config1_surface3|}}}|{{Infobox track/surface type|{{{config1_surface3|}}}|{{{config1_surface_perc3|}}}}}}}}}
| label19 = {{#if:{{{grid_slots1|}}}|Grid slots}}
+
| label19 = {{#if:{{{grid_slots1|}}}|Grid size}}
 
| data19  = {{{grid_slots1|}}}
 
| data19  = {{{grid_slots1|}}}
 
| label20 = {{#if:{{{reverse1|}}}|Reversed option}}
 
| label20 = {{#if:{{{reverse1|}}}|Reversed option}}
Line 62: Line 66:
 
| label21  = Short name
 
| label21  = Short name
 
| data21  = {{#if:{{{config2|}}}|{{{short_name}}}2}}
 
| data21  = {{#if:{{{config2|}}}|{{{short_name}}}2}}
| label22  = {{#if:{{{length_km2|}}}|Length}}
+
| label22  = {{
| data22  = {{#if:{{{length_km2|}}}| {{convert|{{{length_km2|}}}|km|mi|round=3}} }}
+
#if:{{{length_km2|}}}
 +
  | Length
 +
  | {{#if:{{{area_km2|}}} | Area }}
 +
}}
 +
| data22  = {{
 +
#if:{{{length_km2|}}}
 +
  | {{convert|{{{length_km2|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km2|}}} | {{convert|{{{area_km2|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label23  = {{#if:{{{config2|}}}|Direction}}
 
| label23  = {{#if:{{{config2|}}}|Direction}}
 
| data23  = {{#if:{{{direction2|}}}|{{#ifeq:{{{direction2|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data23  = {{#if:{{{direction2|}}}|{{#ifeq:{{{direction2|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 72: Line 84:
 
| label26  = {{#if:{{{config2_surface1|}}}|Surface types}}
 
| label26  = {{#if:{{{config2_surface1|}}}|Surface types}}
 
| data26  = {{#if:{{{config2_surface1|}}}|{{Infobox track/surface type|{{{config2_surface1|}}}|{{{config2_surface_perc1|}}}}}{{#if:{{{config2_surface2|}}}|{{Infobox track/surface type|{{{config2_surface2|}}}|{{{config2_surface_perc2|}}}}}}}{{#if:{{{config2_surface3|}}}|{{Infobox track/surface type|{{{config2_surface3|}}}|{{{config2_surface_perc3|}}}}}}}}}
 
| data26  = {{#if:{{{config2_surface1|}}}|{{Infobox track/surface type|{{{config2_surface1|}}}|{{{config2_surface_perc1|}}}}}{{#if:{{{config2_surface2|}}}|{{Infobox track/surface type|{{{config2_surface2|}}}|{{{config2_surface_perc2|}}}}}}}{{#if:{{{config2_surface3|}}}|{{Infobox track/surface type|{{{config2_surface3|}}}|{{{config2_surface_perc3|}}}}}}}}}
| label27 = {{#if:{{{grid_slots2|}}}|Grid slots}}
+
| label27 = {{#if:{{{grid_slots2|}}}|Grid size}}
 
| data27  = {{{grid_slots2|}}}
 
| data27  = {{{grid_slots2|}}}
 
| label28 = {{#if:{{{reverse2|}}}|Reversed option}}
 
| label28 = {{#if:{{{reverse2|}}}|Reversed option}}
Line 80: Line 92:
 
| label29  = Short name
 
| label29  = Short name
 
| data29  = {{#if:{{{config3|}}}|{{{short_name}}}3}}
 
| data29  = {{#if:{{{config3|}}}|{{{short_name}}}3}}
| label30  = {{#if:{{{length_km3|}}}|Length}}
+
| label30  = {{
| data30  = {{#if:{{{length_km3|}}}| {{convert|{{{length_km3|}}}|km|mi|round=3}} }}
+
#if:{{{length_km3|}}}
 +
  | Length
 +
  | {{#if:{{{area_km3|}}} | Area }}
 +
}}
 +
| data30  = {{
 +
#if:{{{length_km3|}}}
 +
  | {{convert|{{{length_km3|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km3|}}} | {{convert|{{{area_km3|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label31  = {{#if:{{{config3|}}}|Direction}}
 
| label31  = {{#if:{{{config3|}}}|Direction}}
 
| data31  = {{#if:{{{direction3|}}}|{{#ifeq:{{{direction3|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data31  = {{#if:{{{direction3|}}}|{{#ifeq:{{{direction3|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 90: Line 110:
 
| label34  = {{#if:{{{config3_surface1|}}}|Surface types}}
 
| label34  = {{#if:{{{config3_surface1|}}}|Surface types}}
 
| data34  = {{#if:{{{config3_surface1|}}}|{{Infobox track/surface type|{{{config3_surface1|}}}|{{{config3_surface_perc1|}}}}}{{#if:{{{config3_surface2|}}}|{{Infobox track/surface type|{{{config3_surface2|}}}|{{{config3_surface_perc2|}}}}}}}{{#if:{{{config3_surface3|}}}|{{Infobox track/surface type|{{{config3_surface3|}}}|{{{config3_surface_perc3|}}}}}}}}}
 
| data34  = {{#if:{{{config3_surface1|}}}|{{Infobox track/surface type|{{{config3_surface1|}}}|{{{config3_surface_perc1|}}}}}{{#if:{{{config3_surface2|}}}|{{Infobox track/surface type|{{{config3_surface2|}}}|{{{config3_surface_perc2|}}}}}}}{{#if:{{{config3_surface3|}}}|{{Infobox track/surface type|{{{config3_surface3|}}}|{{{config3_surface_perc3|}}}}}}}}}
| label35 = {{#if:{{{grid_slots3|}}}|Grid slots}}
+
| label35 = {{#if:{{{grid_slots3|}}}|Grid size}}
 
| data35  = {{{grid_slots3|}}}
 
| data35  = {{{grid_slots3|}}}
 
| label36 = {{#if:{{{reverse3|}}}|Reversed option}}
 
| label36 = {{#if:{{{reverse3|}}}|Reversed option}}
Line 98: Line 118:
 
| label37  = Short name
 
| label37  = Short name
 
| data37  = {{#if:{{{config4|}}}|{{{short_name}}}4}}
 
| data37  = {{#if:{{{config4|}}}|{{{short_name}}}4}}
| label38  = {{#if:{{{length_km4|}}}|Length}}
+
| label38  = {{
| data38  = {{#if:{{{length_km4|}}}| {{convert|{{{length_km4|}}}|km|mi|round=3}} }}
+
#if:{{{length_km4|}}}
 +
  | Length
 +
  | {{#if:{{{area_km4|}}} | Area }}
 +
}}
 +
| data38  = {{
 +
#if:{{{length_km4|}}}
 +
  | {{convert|{{{length_km4|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km4|}}} | {{convert|{{{area_km4|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label39  = {{#if:{{{config4|}}}|Direction}}
 
| label39  = {{#if:{{{config4|}}}|Direction}}
 
| data39  = {{#if:{{{direction4|}}}|{{#ifeq:{{{direction4|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data39  = {{#if:{{{direction4|}}}|{{#ifeq:{{{direction4|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 108: Line 136:
 
| label42  = {{#if:{{{config4_surface1|}}}|Surface types}}
 
| label42  = {{#if:{{{config4_surface1|}}}|Surface types}}
 
| data42  = {{#if:{{{config4_surface1|}}}|{{Infobox track/surface type|{{{config4_surface1|}}}|{{{config4_surface_perc1|}}}}}{{#if:{{{config4_surface2|}}}|{{Infobox track/surface type|{{{config4_surface2|}}}|{{{config4_surface_perc2|}}}}}}}{{#if:{{{config4_surface3|}}}|{{Infobox track/surface type|{{{config4_surface3|}}}|{{{config4_surface_perc3|}}}}}}}}}
 
| data42  = {{#if:{{{config4_surface1|}}}|{{Infobox track/surface type|{{{config4_surface1|}}}|{{{config4_surface_perc1|}}}}}{{#if:{{{config4_surface2|}}}|{{Infobox track/surface type|{{{config4_surface2|}}}|{{{config4_surface_perc2|}}}}}}}{{#if:{{{config4_surface3|}}}|{{Infobox track/surface type|{{{config4_surface3|}}}|{{{config4_surface_perc3|}}}}}}}}}
| label43 = {{#if:{{{grid_slots4|}}}|Grid slots}}
+
| label43 = {{#if:{{{grid_slots4|}}}|Grid size}}
 
| data43  = {{{grid_slots4|}}}
 
| data43  = {{{grid_slots4|}}}
 
| label44 = {{#if:{{{reverse4|}}}|Reversed option}}
 
| label44 = {{#if:{{{reverse4|}}}|Reversed option}}
Line 116: Line 144:
 
| label45  = Short name
 
| label45  = Short name
 
| data45  = {{#if:{{{config5|}}}|{{{short_name}}}5}}
 
| data45  = {{#if:{{{config5|}}}|{{{short_name}}}5}}
| label46  = {{#if:{{{length_km5|}}}|Length}}
+
| label46  = {{
| data46  = {{#if:{{{length_km5|}}}| {{convert|{{{length_km5|}}}|km|mi|round=3}} }}
+
#if:{{{length_km5|}}}
 +
  | Length
 +
  | {{#if:{{{area_km5|}}} | Area }}
 +
}}
 +
| data46  = {{
 +
#if:{{{length_km5|}}}
 +
  | {{convert|{{{length_km5|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km5|}}} | {{convert|{{{area_km5|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label47  = {{#if:{{{config5|}}}|Direction}}
 
| label47  = {{#if:{{{config5|}}}|Direction}}
 
| data47  = {{#if:{{{direction5|}}}|{{#ifeq:{{{direction5|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data47  = {{#if:{{{direction5|}}}|{{#ifeq:{{{direction5|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 126: Line 162:
 
| label50  = {{#if:{{{config5_surface1|}}}|Surface types}}
 
| label50  = {{#if:{{{config5_surface1|}}}|Surface types}}
 
| data50  = {{#if:{{{config5_surface1|}}}|{{Infobox track/surface type|{{{config5_surface1|}}}|{{{config5_surface_perc1|}}}}}{{#if:{{{config5_surface2|}}}|{{Infobox track/surface type|{{{config5_surface2|}}}|{{{config5_surface_perc2|}}}}}}}{{#if:{{{config5_surface3|}}}|{{Infobox track/surface type|{{{config5_surface3|}}}|{{{config5_surface_perc3|}}}}}}}}}
 
| data50  = {{#if:{{{config5_surface1|}}}|{{Infobox track/surface type|{{{config5_surface1|}}}|{{{config5_surface_perc1|}}}}}{{#if:{{{config5_surface2|}}}|{{Infobox track/surface type|{{{config5_surface2|}}}|{{{config5_surface_perc2|}}}}}}}{{#if:{{{config5_surface3|}}}|{{Infobox track/surface type|{{{config5_surface3|}}}|{{{config5_surface_perc3|}}}}}}}}}
| label51 = {{#if:{{{grid_slots5|}}}|Grid slots}}
+
| label51 = {{#if:{{{grid_slots5|}}}|Grid size}}
 
| data51  = {{{grid_slots5|}}}
 
| data51  = {{{grid_slots5|}}}
 
| label52 = {{#if:{{{reverse5|}}}|Reversed option}}
 
| label52 = {{#if:{{{reverse5|}}}|Reversed option}}
Line 134: Line 170:
 
| label53  = Short name
 
| label53  = Short name
 
| data53  = {{#if:{{{config6|}}}|{{{short_name}}}6}}
 
| data53  = {{#if:{{{config6|}}}|{{{short_name}}}6}}
| label54  = {{#if:{{{length_km6|}}}|Length}}
+
| label54  = {{
| data54  = {{#if:{{{length_km6|}}}| {{convert|{{{length_km6|}}}|km|mi|round=3}} }}
+
#if:{{{length_km6|}}}
 +
  | Length
 +
  | {{#if:{{{area_km6|}}} | Area }}
 +
}}
 +
| data54  = {{
 +
#if:{{{length_km6|}}}
 +
  | {{convert|{{{length_km6|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km6|}}} | {{convert|{{{area_km6|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label55  = {{#if:{{{config6|}}}|Direction}}
 
| label55  = {{#if:{{{config6|}}}|Direction}}
 
| data55  = {{#if:{{{direction6|}}}|{{#ifeq:{{{direction6|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data55  = {{#if:{{{direction6|}}}|{{#ifeq:{{{direction6|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 144: Line 188:
 
| label58  = {{#if:{{{config6_surface1|}}}|Surface types}}
 
| label58  = {{#if:{{{config6_surface1|}}}|Surface types}}
 
| data58  = {{#if:{{{config6_surface1|}}}|{{Infobox track/surface type|{{{config6_surface1|}}}|{{{config6_surface_perc1|}}}}}{{#if:{{{config6_surface2|}}}|{{Infobox track/surface type|{{{config6_surface2|}}}|{{{config6_surface_perc2|}}}}}}}{{#if:{{{config6_surface3|}}}|{{Infobox track/surface type|{{{config6_surface3|}}}|{{{config6_surface_perc3|}}}}}}}}}
 
| data58  = {{#if:{{{config6_surface1|}}}|{{Infobox track/surface type|{{{config6_surface1|}}}|{{{config6_surface_perc1|}}}}}{{#if:{{{config6_surface2|}}}|{{Infobox track/surface type|{{{config6_surface2|}}}|{{{config6_surface_perc2|}}}}}}}{{#if:{{{config6_surface3|}}}|{{Infobox track/surface type|{{{config6_surface3|}}}|{{{config6_surface_perc3|}}}}}}}}}
| label59 = {{#if:{{{grid_slots6|}}}|Grid slots}}
+
| label59 = {{#if:{{{grid_slots6|}}}|Grid size}}
 
| data59  = {{{grid_slots6|}}}
 
| data59  = {{{grid_slots6|}}}
 
| label60 = {{#if:{{{reverse6|}}}|Reversed option}}
 
| label60 = {{#if:{{{reverse6|}}}|Reversed option}}
Line 152: Line 196:
 
| label61  = Short name
 
| label61  = Short name
 
| data61  = {{#if:{{{config7|}}}|{{{short_name}}}7}}
 
| data61  = {{#if:{{{config7|}}}|{{{short_name}}}7}}
| label62  = {{#if:{{{length_km7|}}}|Length}}
+
| label62  = {{
| data62  = {{#if:{{{length_km7|}}}| {{convert|{{{length_km7|}}}|km|mi|round=3}} }}
+
#if:{{{length_km7|}}}
 +
  | Length
 +
  | {{#if:{{{area_km7|}}} | Area }}
 +
}}
 +
| data62  = {{
 +
#if:{{{length_km7|}}}
 +
  | {{convert|{{{length_km7|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km7|}}} | {{convert|{{{area_km7|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label63  = {{#if:{{{config7|}}}|Direction}}
 
| label63  = {{#if:{{{config7|}}}|Direction}}
 
| data63  = {{#if:{{{direction7|}}}|{{#ifeq:{{{direction7|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data63  = {{#if:{{{direction7|}}}|{{#ifeq:{{{direction7|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 162: Line 214:
 
| label66  = {{#if:{{{config7_surface1|}}}|Surface types}}
 
| label66  = {{#if:{{{config7_surface1|}}}|Surface types}}
 
| data66  = {{#if:{{{config7_surface1|}}}|{{Infobox track/surface type|{{{config7_surface1|}}}|{{{config7_surface_perc1|}}}}}{{#if:{{{config7_surface2|}}}|{{Infobox track/surface type|{{{config7_surface2|}}}|{{{config7_surface_perc2|}}}}}}}{{#if:{{{config7_surface3|}}}|{{Infobox track/surface type|{{{config7_surface3|}}}|{{{config7_surface_perc3|}}}}}}}}}
 
| data66  = {{#if:{{{config7_surface1|}}}|{{Infobox track/surface type|{{{config7_surface1|}}}|{{{config7_surface_perc1|}}}}}{{#if:{{{config7_surface2|}}}|{{Infobox track/surface type|{{{config7_surface2|}}}|{{{config7_surface_perc2|}}}}}}}{{#if:{{{config7_surface3|}}}|{{Infobox track/surface type|{{{config7_surface3|}}}|{{{config7_surface_perc3|}}}}}}}}}
| label67 = {{#if:{{{grid_slots7|}}}|Grid slots}}
+
| label67 = {{#if:{{{grid_slots7|}}}|Grid size}}
 
| data67  = {{{grid_slots7|}}}
 
| data67  = {{{grid_slots7|}}}
 
| label68 = {{#if:{{{reverse7|}}}|Reversed option}}
 
| label68 = {{#if:{{{reverse7|}}}|Reversed option}}
Line 170: Line 222:
 
| label69  = Short name
 
| label69  = Short name
 
| data69  = {{#if:{{{config8|}}}|{{{short_name}}}8}}
 
| data69  = {{#if:{{{config8|}}}|{{{short_name}}}8}}
| label70  = {{#if:{{{length_km8|}}}|Length}}
+
| label70  = {{
| data70  = {{#if:{{{length_km8|}}}| {{convert|{{{length_km8|}}}|km|mi|round=3}} }}
+
#if:{{{length_km8|}}}
 +
  | Length
 +
  | {{#if:{{{area_km8|}}} | Area }}
 +
}}
 +
| data70  = {{
 +
#if:{{{length_km8|}}}
 +
  | {{convert|{{{length_km8|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km8|}}} | {{convert|{{{area_km8|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label71  = {{#if:{{{config8|}}}|Direction}}
 
| label71  = {{#if:{{{config8|}}}|Direction}}
 
| data71  = {{#if:{{{direction8|}}}|{{#ifeq:{{{direction8|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data71  = {{#if:{{{direction8|}}}|{{#ifeq:{{{direction8|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 180: Line 240:
 
| label74  = {{#if:{{{config8_surface1|}}}|Surface types}}
 
| label74  = {{#if:{{{config8_surface1|}}}|Surface types}}
 
| data74  = {{#if:{{{config8_surface1|}}}|{{Infobox track/surface type|{{{config8_surface1|}}}|{{{config8_surface_perc1|}}}}}{{#if:{{{config8_surface2|}}}|{{Infobox track/surface type|{{{config8_surface2|}}}|{{{config8_surface_perc2|}}}}}}}{{#if:{{{config8_surface3|}}}|{{Infobox track/surface type|{{{config8_surface3|}}}|{{{config8_surface_perc3|}}}}}}}}}
 
| data74  = {{#if:{{{config8_surface1|}}}|{{Infobox track/surface type|{{{config8_surface1|}}}|{{{config8_surface_perc1|}}}}}{{#if:{{{config8_surface2|}}}|{{Infobox track/surface type|{{{config8_surface2|}}}|{{{config8_surface_perc2|}}}}}}}{{#if:{{{config8_surface3|}}}|{{Infobox track/surface type|{{{config8_surface3|}}}|{{{config8_surface_perc3|}}}}}}}}}
| label75 = {{#if:{{{grid_slots8|}}}|Grid slots}}
+
| label75 = {{#if:{{{grid_slots8|}}}|Grid size}}
 
| data75  = {{{grid_slots8|}}}
 
| data75  = {{{grid_slots8|}}}
 
| label76 = {{#if:{{{reverse8|}}}|Reversed option}}
 
| label76 = {{#if:{{{reverse8|}}}|Reversed option}}
Line 188: Line 248:
 
| label77  = Short name
 
| label77  = Short name
 
| data77  = {{#if:{{{config9|}}}|{{{short_name}}}9}}
 
| data77  = {{#if:{{{config9|}}}|{{{short_name}}}9}}
| label78  = {{#if:{{{length_km9|}}}|Length}}
+
| label78  = {{
| data78  = {{#if:{{{length_km9|}}}| {{convert|{{{length_km9|}}}|km|mi|round=3}} }}
+
#if:{{{length_km9|}}}
 +
  | Length
 +
  | {{#if:{{{area_km9|}}} | Area }}
 +
}}
 +
| data78  = {{
 +
#if:{{{length_km9|}}}
 +
  | {{convert|{{{length_km9|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km9|}}} | {{convert|{{{area_km9|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label79  = {{#if:{{{config9|}}}|Direction}}
 
| label79  = {{#if:{{{config9|}}}|Direction}}
 
| data79  = {{#if:{{{direction9|}}}|{{#ifeq:{{{direction9|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data79  = {{#if:{{{direction9|}}}|{{#ifeq:{{{direction9|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 198: Line 266:
 
| label82  = {{#if:{{{config9_surface1|}}}|Surface types}}
 
| label82  = {{#if:{{{config9_surface1|}}}|Surface types}}
 
| data82  = {{#if:{{{config9_surface1|}}}|{{Infobox track/surface type|{{{config9_surface1|}}}|{{{config9_surface_perc1|}}}}}{{#if:{{{config9_surface2|}}}|{{Infobox track/surface type|{{{config9_surface2|}}}|{{{config9_surface_perc2|}}}}}}}{{#if:{{{config9_surface3|}}}|{{Infobox track/surface type|{{{config9_surface3|}}}|{{{config9_surface_perc3|}}}}}}}}}
 
| data82  = {{#if:{{{config9_surface1|}}}|{{Infobox track/surface type|{{{config9_surface1|}}}|{{{config9_surface_perc1|}}}}}{{#if:{{{config9_surface2|}}}|{{Infobox track/surface type|{{{config9_surface2|}}}|{{{config9_surface_perc2|}}}}}}}{{#if:{{{config9_surface3|}}}|{{Infobox track/surface type|{{{config9_surface3|}}}|{{{config9_surface_perc3|}}}}}}}}}
| label83 = {{#if:{{{grid_slots9|}}}|Grid slots}}
+
| label83 = {{#if:{{{grid_slots9|}}}|Grid size}}
 
| data83  = {{{grid_slots9|}}}
 
| data83  = {{{grid_slots9|}}}
 
| label84 = {{#if:{{{reverse9|}}}|Reversed option}}
 
| label84 = {{#if:{{{reverse9|}}}|Reversed option}}
Line 206: Line 274:
 
| label85  = Short name
 
| label85  = Short name
 
| data85  = {{#if:{{{config10|}}}|{{{short_name}}}10}}
 
| data85  = {{#if:{{{config10|}}}|{{{short_name}}}10}}
| label86  = {{#if:{{{length_km10|}}}|Length}}
+
| label86  = {{
| data86  = {{#if:{{{length_km10|}}}| {{convert|{{{length_km10|}}}|km|mi|round=3}} }}
+
#if:{{{length_km10|}}}
 +
  | Length
 +
  | {{#if:{{{area_km10|}}} | Area }}
 +
}}
 +
| data86  = {{
 +
#if:{{{length_km10|}}}
 +
  | {{convert|{{{length_km10|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km10|}}} | {{convert|{{{area_km10|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label87  = {{#if:{{{config10|}}}|Direction}}
 
| label87  = {{#if:{{{config10|}}}|Direction}}
 
| data87  = {{#if:{{{direction10|}}}|{{#ifeq:{{{direction10|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data87  = {{#if:{{{direction10|}}}|{{#ifeq:{{{direction10|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 216: Line 292:
 
| label90  = {{#if:{{{config10_surface1|}}}|Surface types}}
 
| label90  = {{#if:{{{config10_surface1|}}}|Surface types}}
 
| data90  = {{#if:{{{config10_surface1|}}}|{{Infobox track/surface type|{{{config10_surface1|}}}|{{{config10_surface_perc1|}}}}}{{#if:{{{config10_surface2|}}}|{{Infobox track/surface type|{{{config10_surface2|}}}|{{{config10_surface_perc2|}}}}}}}{{#if:{{{config10_surface3|}}}|{{Infobox track/surface type|{{{config10_surface3|}}}|{{{config10_surface_perc3|}}}}}}}}}
 
| data90  = {{#if:{{{config10_surface1|}}}|{{Infobox track/surface type|{{{config10_surface1|}}}|{{{config10_surface_perc1|}}}}}{{#if:{{{config10_surface2|}}}|{{Infobox track/surface type|{{{config10_surface2|}}}|{{{config10_surface_perc2|}}}}}}}{{#if:{{{config10_surface3|}}}|{{Infobox track/surface type|{{{config10_surface3|}}}|{{{config10_surface_perc3|}}}}}}}}}
| label91 = {{#if:{{{grid_slots10|}}}|Grid slots}}
+
| label91 = {{#if:{{{grid_slots10|}}}|Grid size}}
 
| data91  = {{{grid_slots10|}}}
 
| data91  = {{{grid_slots10|}}}
 
| label92 = {{#if:{{{reverse10|}}}|Reversed option}}
 
| label92 = {{#if:{{{reverse10|}}}|Reversed option}}
Line 224: Line 300:
 
| label93  = Short name
 
| label93  = Short name
 
| data93  = {{#if:{{{config11|}}}|{{{short_name}}}11}}
 
| data93  = {{#if:{{{config11|}}}|{{{short_name}}}11}}
| label94  = {{#if:{{{length_km11|}}}|Length}}
+
| label94  = {{
| data94  = {{#if:{{{length_km11|}}}| {{convert|{{{length_km11|}}}|km|mi|round=3}} }}
+
#if:{{{length_km11|}}}
 +
  | Length
 +
  | {{#if:{{{area_km11|}}} | Area }}
 +
}}
 +
| data94  = {{
 +
#if:{{{length_km11|}}}
 +
  | {{convert|{{{length_km11|}}}|km|mi|round=3}}
 +
  | {{#if:{{{area_km11|}}} | {{convert|{{{area_km11|}}}|km2|mi2|round=2}} }}
 +
}}
 
| label95  = {{#if:{{{config11|}}}|Direction}}
 
| label95  = {{#if:{{{config11|}}}|Direction}}
 
| data95  = {{#if:{{{direction11|}}}|{{#ifeq:{{{direction11|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
 
| data95  = {{#if:{{{direction11|}}}|{{#ifeq:{{{direction11|CW}}}|CW|{{clockwise}}|{{counter-clockwise}}}}}}
Line 234: Line 318:
 
| label98  = {{#if:{{{config11_surface1|}}}|Surface types}}
 
| label98  = {{#if:{{{config11_surface1|}}}|Surface types}}
 
| data98  = {{#if:{{{config11_surface1|}}}|{{Infobox track/surface type|{{{config11_surface1|}}}|{{{config11_surface_perc1|}}}}}{{#if:{{{config11_surface2|}}}|{{Infobox track/surface type|{{{config11_surface2|}}}|{{{config11_surface_perc2|}}}}}}}{{#if:{{{config11_surface3|}}}|{{Infobox track/surface type|{{{config11_surface3|}}}|{{{config11_surface_perc3|}}}}}}}}}
 
| data98  = {{#if:{{{config11_surface1|}}}|{{Infobox track/surface type|{{{config11_surface1|}}}|{{{config11_surface_perc1|}}}}}{{#if:{{{config11_surface2|}}}|{{Infobox track/surface type|{{{config11_surface2|}}}|{{{config11_surface_perc2|}}}}}}}{{#if:{{{config11_surface3|}}}|{{Infobox track/surface type|{{{config11_surface3|}}}|{{{config11_surface_perc3|}}}}}}}}}
| label99 = {{#if:{{{grid_slots11|}}}|Grid slots}}
+
| label99 = {{#if:{{{grid_slots11|}}}|Grid size}}
 
| data99  = {{{grid_slots11|}}}
 
| data99  = {{{grid_slots11|}}}
 
| label100 = {{#if:{{{reverse11|}}}|Reversed option}}
 
| label100 = {{#if:{{{reverse11|}}}|Reversed option}}

Latest revision as of 11:15, 30 July 2024

Template Info-Icon.png

Template documentation

View - Edit

Infobox track is used to create an infobox which summarizes the main information and the configurations of a particular track environment. For well-built examples, see pages Blackwood, Westhill and Rockingham.

Usage

Track Name
All LFS cars
Track image caption
LFS World transparent.png
Logo caption
BL1.jpg
Track map caption
Short name TR
Track type permanent circuit
License S1
Introduced 0.5P
Last updated 0.6R
Weather types clear day
cloudy afternoon
overcast morning
Configurations 3
Configuration 1
Short name TR1
Length 3.45 km (2.144 mi)
Direction  Clockwise
Turns 6
Banking 10°
Surface types asphalt (70%)
gravel (20%)
tarmac (10%)
Grid size 40
Reversed option  Yes
Configuration 2
Short name TR2
Length 1.00 km (0.621 mi)
Surface types grass (100%)
Reversed option  Yes
Configuration 3
Short name TR3
Area 2.45 km² (0.95 mi²)
Reversed option  No
Track Name on LFS.net
{{Infobox track
| name                = 
| short_name          = 
| logo                = 
| logo_caption        = 
| track_map           = 
| track_map_caption   = 
| track_image         = 
| track_image_caption = 
| type                = 
| license             = 
| introduced          = 
| last_updated        = 
| weather_type1       = 
| weather_type2       = 
| weather_type3       = 
| weather_type4       = 
| configurations      = 

<!-- Up to 11 configurations: -->
| config1               = 
| direction1            = 
| turns1                = 
| banking1              = 
| config1_surface1      = 
| config1_surface_perc1 = 
| config1_surface2      = 
| config1_surface_perc2 = 
| config1_surface3      = 
| config1_surface_perc3 = 
| length_km1            = 
| grid_slots1           = 
| pit_speed_kmh1        = 
| reverse1              = 
| area_km1              = 

... ...

| config11               = 
| direction11            = 
| turns11                = 
| banking11              = 
| config11_surface1      = 
| config11_surface_perc1 = 
| config11_surface2      = 
| config11_surface_perc2 = 
| config11_surface3      = 
| config11_surface_perc3 = 
| length_km11            = 
| grid_slots11           = 
| pit_speed_kmh11        = 
| reverse11              = 
| area_km11              = 
}}

Parameters

Infobox track parameters and basic guidelines
Parameter Explanation Example values
name Full name of the track environment. Blackwood
short_name Abbreviated track name. WE
logo Logo of the track environment. LFS tracks usually have a branding logo used at some places in the environment. Format as if you included an image in articles, with specified width (250px). [[Image:Blackwood logo.png|250px]]
logo_caption A caption explaining the logo. Optional, omit if needed. Track logo caption
track_map Track map, preferably showing the whole environment with all usable track lines/areas visible (like in the track selection menu in LFS). Format as if you included an image in articles, with specified width (250px). [[Image:Blackwood map.png|250px]]
track_map_caption A caption explaining the track map. Optional, omit if needed. Track map caption
track_image A screenshot depicting the environment. Format as if you included an image in articles, with specified width (250px). [[Image:Blackwood preview.jpg|250px]]
track_image_caption A caption explaining the track image. Optional, omit if needed. Track image caption
type Track type, whether it's a purpose-built permanent racing track (e.g. Westhill), a semi-permanent/temporary racing track (e.g. South City), or an open area (e.g. Autocross). Choose one of: permanent, semi, open. permanent
license License required for the track environment. Choose one of: demo, S1, S2, S3. S2
introduced LFS version that introduced the track environment for the first time. 0.04k, 0.2A, 0.5P
weather_type1-4 Available weather types in the track environment, listed in the track selection menu in LFS. Max. 4, use a separate parameter for each, for example |weather_type1=clear day, |weather_type2=cloudy sunset clear morning, cloudy sunset
configurations Number of track configuration available in the environment. 3
Configuration-specific
confign Full name of the configuration. ISSC Long
directionn Track direction, clockwise or counter-clockwise. Choose one of: CW, CCW. CW
turnsn Number of turns. 11
bankingn Banking of turns. 16-20° (turn 1 and 2)
11-15° (turn 3)
confign_surface1 Track surface (asphalt, gravel, concrete, mud, grass, etc.). asphalt
confign_surface_perc1 Distribution percentage of surface defined in confign_surface1 70
confign_surface Track surface (asphalt, gravel, concrete, mud, grass, etc.). gravel
confign_surface_perc2 Distribution percentage of surface defined in confign_surface2 20
confign_surface3 Track surface (asphalt, gravel, concrete, mud, grass, etc.). mud
confign_surface_perc3 Distribution percentage of surface defined in confign_surface3 10
length_kmn Track length in kilometres. 3.297
grid_slotsn Grid size, number of grid spots on the start/finish straight. 40
pit_speed_kmhn Pit speed limit in km/h. 80
reversen Whether a reversed configuration is available. Choose one of: yes/no. yes
area_kmn For open areas, area size in km2. 0.402