Template:Infobox Grand Prix race report/doc
Template:Documentation subpage Template:Auto short description Template:Lua
Race report infobox suitable for use on Grand Prix, European Championship, World Manufacturers' Championship, Formula One World Championship and F1 non-championship articles.
Cut-and-paste (basic) pro-formas
Template:Parameter names example
Formula One World Championship event
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:F1 |F1 = {{#if:|Race of in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:|{{{Description}}}|YYYY Grand Prix season}}|}} |EC = {{#if:|Race of in the YYYY European Championship|}} |WMC = {{#if:|Race of in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|{{{Description}}}}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:F1|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
European Championship event
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:EC |F1 = {{#if:|Race of in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:|{{{Description}}}|YYYY Grand Prix season}}|}} |EC = {{#if:|Race of in the YYYY European Championship|}} |WMC = {{#if:|Race of in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|{{{Description}}}}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:EC|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
World Manufacturers' Championship event (1925–1927)
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:WMC |F1 = {{#if:|Race of in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:|{{{Description}}}|YYYY Grand Prix season}}|}} |EC = {{#if:|Race of in the YYYY European Championship|}} |WMC = {{#if:|Race of in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|{{{Description}}}}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:WMC|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
Non-championship pre-1950 event
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:GP |F1 = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:|{{{Description}}}|YYYY Grand Prix season}}|}} |EC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY European Championship|}} |WMC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|{{{Description}}}}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:GP|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
Non-championship post-1949 event
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:NC |F1 = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:|{{{Description}}}|YYYY Grand Prix season}}|}} |EC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY European Championship|}} |WMC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|{{{Description}}}}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:NC|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
Custom event
<syntaxhighlight lang="wikitext" style="overflow:auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
YYYY Grand Prix | |||||
---|---|---|---|---|---|
{{#switch:CUST |F1 = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the {{#ifexpr:YYYY>1980|YYYY Formula One World Championship|YYYY Formula One season}}|}} |GP = {{#if:|{{#if:||YYYY Grand Prix season}}|}} |EC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY European Championship|}} |WMC = {{#if:|Race {{{Race_No}}} of {{{Season_No}}} in the YYYY World Manufacturers' Championship|}} |NC = Non-championship race in the YYYY Formula One season |CUST ={{#if:|}} |#default =}}{{#if:|{{#if:|}}{{#if:|}}
| |||||
Race details | |||||
Date |
{{#if: | YYYY | Template:Start date}} | ||||
Course | {{#if:| }} | ||||
Course length |
{{#if: |{{{Course_km}}} km ({{{Course_mi}}} miles) |}} | ||||
Distance |
{{#if: | {{#if:| lap{{#ifeq:|1||s}},}} {{{Distance_km}}} km ({{{Distance_mi}}} miles) | {{#if:|{{#if:| lap{{#ifeq:|1||s}},}} }}}} | ||||
Scheduled distance |
{{#if: |{{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_km}}} km ({{{Scheduled_mi}}} miles) |{{#if: | {{#if:|{{{Scheduled_laps}}} laps,}} {{{Scheduled_length}}} }}}} | ||||
{{#if: | Pole position }} | |||||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |||
Time | {{#if: | }} | ||||
{{#if: | Template:Br separated entries }} | |||||
{{#if: |Fastest lap}} | |||||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | Template:Flag icon {{#if: | {{#if: |(lap )}} }} }} }} | {{#if: |{{#if: | }} }} | |||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver3}}} {{#if: | (lap {{{Fast_Lap3}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team3}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver4}}} {{#if: | (lap {{{Fast_Lap4}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team4}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver5}}} {{#if: | (lap {{{Fast_Lap5}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team5}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver6}}} {{#if: | (lap {{{Fast_Lap6}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team6}}} }} }} | ||||
{{#if: |{{#if: | Template:Flag icon {{{Fast_Driver7}}} {{#if: | (lap {{{Fast_Lap7}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team7}}} }} }} | ||||
Time | {{#if: | {{#if: | |{{#if: | on lap }} }} }} | ||||
{{#if: | Podium }} | |||||
First | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Second | {{#if: | Template:Unbulleted list }} | {{#if: | }} | |||
Third | {{#if: | Template:Unbulleted list }} | {{#if: |}} | |||
{{#if: | Template:Collapsible list }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:YYYY|YYYY||1}}{{#if:{{SAFESUBST:#if:YYYY|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:Template:Start date|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|
}}{{#switch:CUST|F1|GP|EC|WMC|NC|CUST=|=|#default= }}Template:Short description </syntaxhighlight>
Notes
Dates
The old Date
parameter has been deprecated, to allow this template to emit a microformat (see below). Please use Fulldate
instead, with the date entered using the {{Start date}} template. Existing instances will be changed in due course.
Country names
Country names should not be wikilinked.
Race_No and Season_No
A discussion in 2017 resolved that the "Race_No" and "Season_No" fields should not be populated for 1950 onwards, and the information should be included in the article lead instead. After the fields had been depopulated for Template:F1–Template:F1 races, the decision was questioned. It is therefore recommended to leave these fields untouched until a final resolution on the subject is reached.
Previous/Next_round
Previous/next round of the championship, without square brackets, e.g.: <syntaxhighlight lang="wikitext">| Previous_round = 2004 Bahrain Grand Prix | Next_round = 2004 Spanish Grand Prix</syntaxhighlight> not: <syntaxhighlight lang="wikitext">| Previous_round = 2004 Bahrain Grand Prix | Next_round = 2004 Spanish Grand Prix</syntaxhighlight>
Course length and race distance
Note that lengths and distances should entered in kilometres using the {{Convert}} template: {{convert|XXXX|km|mi|abbr=on}}
. Miles will automatically be calculated and display correctly. If the original course length or race distance are quoted in miles in your source, use {{convert|XXXX|mi|km|abbr=on}}
and the corresponding kilometre distance will similarly be calculated and display correctly.
For shortened races (e.g. red-flagged and not restarted, or two-hour limit reached) enter the distance that was run in the standard code and add the distance that the race was scheduled to run using the following additional lines:
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | Scheduled_laps = | Scheduled_length = </syntaxhighlight>
Historical flags
For historical races, the current flag of a country may not be appropriate. Therefore, this template supports the flag variant feature. The list of available flag variants for each country is documented on the specific page for the country data template. For example, Template:Country data Italy includes a description of each of the available flag variations for Italy. Add the appropriate field from the selection below and enter the variant name (e.g. 1861):
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | Pole_flag_suffix = | Fast_flag_suffix = | First_flag_suffix = | Second_flag_suffix = | Third_flag_suffix = </syntaxhighlight> (Fields correspond to pole position, fastest lap, and 1st/2nd/3rd places)
In early races, limits in timing equipment occasionally resulted in two or more drivers sharing fastest lap. In these occasions list one driver as normal using the standard pro-forma and add and complete the following additional fields. Note that "2" can be replaced with 3–7 to provide a maximum of 7 drivers sharing fastest lap.
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | Fast_Driver2 = | Fast_Country2 = | Fast_flag_suffix2 = | Fast_Lap2 = </syntaxhighlight>
In Grand Prix and early Formula One races, it was common for two or more drivers to share a car. In the event that a shared drive took pole position or finished on the podium, list the first driver as normal in the regular template and add the appropriate fields:
<syntaxhighlight lang="wikitext" style="overflow:auto;">
| First_Driver2 = | First_Country2 = | First_flag_suffix2 =
| First_Driver3 = | First_Country3 = | First_flag_suffix3 =
| Second_Driver2 = | Second_Country2 = | Second_flag_suffix2 =
| Second_Driver3 = | Second_Country3 = | Second_flag_suffix3 =
| Third_Driver2 = | Third_Country2 = | Third_flag_suffix2 =
| Third_Driver3 = | Third_Country3 = | Third_flag_suffix3 = </syntaxhighlight>
Grids set by heats, ballot, car number or sprint race
Some grids were determined by methods other than time. To show this in the pole position section, replace
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | Pole_Time = </syntaxhighlight> with <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Grid_from_heats = True </syntaxhighlight> or <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Grid_from_ballot = True </syntaxhighlight> or <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Grid_from_number = True </syntaxhighlight> or <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Grid_from_sprint = True </syntaxhighlight>
Race title
Most race titles are in the form "##### Grand Prix" – for these you need enter only the ##### part. E.g. <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Grand Prix = ##### </syntaxhighlight> and the Grand Prix will be added automatically. If the race title doesn't end in 'Grand Prix', add the appropriate ending ('Cup', 'Trophy', etc.) with the following line: <syntaxhighlight lang="wikitext" style="overflow:auto;"> | GP_Suffix = </syntaxhighlight> For races that have no ending, add the GP_Suffix line, but leave it blank.
Unknown pole-sitter
For some older Grand Prix races, details on the grid, and specifically pole position may not be available. In these cases use: <syntaxhighlight lang="wikitext" style="overflow:auto;"> | Pole_Driver = Not known </syntaxhighlight> All other pole fields (Time, Country, Team, etc.) should be omitted. Note that 'Not known' is case-sensitive.
Lapchart
Use {{F1LapsXXXX}}
to fill in this parameter. Replace XXXX with the year of the race in question and add a pipe (|
) and the Grand Prix's country code to the end of the template. For instance, for the 1995 Australian Grand Prix, use {{F1Laps1995|AUS}}
.
Microformat
Tracking categories