Template:Infobox NASCAR race report/doc
Template:Documentation subpage Template:High-use Template:Auto short description Template:Lua
Infobox template for all NASCAR season races, part of the NASCAR WikiProject.
Usage
Template:Parameter names example
<syntaxhighlight lang="wikitext" style="overflow: auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
Race details | |||
---|---|---|---|
{{#switch:NASME |NASCS = Race of in the NASCAR Cup Series |NAS = Race of in the NASCAR Sprint Cup Series |NASNEX = Race of in the NASCAR Nextel Cup Series |NASWINSTON = Race of in the NASCAR Winston Cup Series |NASME = Race of in the Monster Energy NASCAR Cup Series |NASXFIN = Race of in the NASCAR Xfinity Series |ARCAM = Race of in the ARCA Menards Series |ARCAME = Race of in the ARCA Menards Series East |ARCAMW = Race of in the ARCA Menards Series West |CUST =}} | |||
Date |
{{#if: | | Template:Start date}} | ||
Course | {{#if:| }} | ||
Course length |
{{#if: | miles ( km) |}} | ||
Distance |
{{#if: | {{#if:| laps,}} {{#if:| mi ( km)}}}} | ||
Scheduled distance |
{{#if: |{{#if:200|200 laps,}} {{#if:500|500 mi (804.672 km)}}}} | ||
{{#if: | Pole position }} | |||
{{#if: |Drivers|Driver}} | {{#if: | Template:Unbulleted list }} | {{#if: |{{#if: |}}}} | |
Time | {{#if: | }} | ||
Template:Br separated entries | |||
{{#if: | Most laps led }} | |||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | | {{#if: }} }} }} | {{#if: |{{#if: | }} }} | |
{{#if: |{{#if: | {{{Most_Driver2}}} }} }} | {{#if: |{{#if: | {{{Most_Team2}}} }} }} | ||
{{#if: |Fastest lap}} | |||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | {{{Fast_Driver}}} {{#if: | {{#if: |(lap {{{Fast_Lap}}})}} }} }} }} | {{#if: |{{#if: | {{{Fast_Team}}} }} }} | |
{{#if: |{{#if: | {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||
Time | {{#if: |{{{Fast_Time}}} {{#if: | |{{#if: | on lap {{{Fast_Lap}}} }} }} }} | ||
{{#if:| Winner }} | |||
{{#if:|No. |}} | {{#if:|}} | {{#if:|}} | |
{{#if:| Television in the United States }} | |||
{{#if:| Radio in the United States }} |
{{#if:{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:|||1}}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}|1}}|{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}{{#switch:NASME|NASCS|NAS|NASNEX|NASWINSTON|NASME|NASXFIN|ARCAM|ARCAME|ARCAMW|CUST=|=|#default={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}Template:Short description </syntaxhighlight>
Note: The syntax Template:Para is used to display "Race XX of XX in the 20XX Monster Energy NASCAR Cup Series season".
- For 2008-2016, use Template:Para is used to display "Race XX of XX in the 20XX NASCAR Sprint Cup Series season".
- For 2004-2007, use Template:Para for "Race XX of XX in the 20XX NASCAR Nextel Cup Series season".
- For 1971-2003, use Template:Para for "Race XX of XX in the XXXX NASCAR Winston Cup Series season".
- Use Template:Para along with Template:Para to display a custom description in place of the above.
- For NASCAR Xfinity Series races, use Template:Para for "Race XX of XX in the XXXX NASCAR Xfinity Series season".
- For ARCA Menards Series races, use Template:Para for "Race XX of XX in the XXXX NASCAR Xfinity Series season". For its counterparts, the ARCA Menards Series East and ARCA Menards Series West, use Template:Para for East and Template:Para for West.
Example
From 2015 Ford EcoBoost 400:
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
Race details[1] | |||
---|---|---|---|
{{#switch:NAS |NASCS = Race 36 of 36 in the 2015 NASCAR Cup Series |NAS = Race 36 of 36 in the 2015 NASCAR Sprint Cup Series |NASNEX = Race 36 of 36 in the 2015 NASCAR Nextel Cup Series |NASWINSTON = Race 36 of 36 in the 2015 NASCAR Winston Cup Series |NASME = Race 36 of 36 in the 2015 Monster Energy NASCAR Cup Series |NASXFIN = Race 36 of 36 in the 2015 NASCAR Xfinity Series |ARCAM = Race 36 of 36 in the 2015 ARCA Menards Series |ARCAME = Race 36 of 36 in the 2015 ARCA Menards Series East |ARCAMW = Race 36 of 36 in the 2015 ARCA Menards Series West |CUST =}} | |||
Date |
{{#if: | 2015 | Template:Start date}} | ||
Location | Homestead–Miami Speedway in Homestead, Florida | ||
Course | {{#if:1.5| Permanent racing facility }} | ||
Course length |
{{#if:1.5 |1.5 miles (2.4 km) |}} | ||
Distance |
{{#if:400.5267 | {{#if:267|267 laps,}} {{#if:400.5|400.5 mi (640.8 km)}}}} | ||
Scheduled distance |
{{#if: |{{#if:200|200 laps,}} {{#if:500|500 mi (804.672 km)}}}} | ||
Weather | Mostly sunny skies with a temperature of Template:Convert; wind out of the west/southwest at Template:Convert | ||
Average speed | Template:Convert | ||
{{#if: Denny Hamlin| Pole position }} | |||
{{#if: |Drivers|Driver}} | {{#if: Denny Hamlin| Template:Unbulleted list }} | {{#if: Denny Hamlin|{{#if: Joe Gibbs Racing|Joe Gibbs Racing}}}} | |
Time | {{#if: Denny Hamlin| 30.568 }} | ||
Template:Br separated entries | |||
{{#if: Brad Keselowski86| Most laps led }} | |||
{{#if: |Drivers|Driver}} | {{#if: 86|{{#if: Brad Keselowski | Brad Keselowski| {{#if: }} }} }} | {{#if: 86|{{#if: Brad Keselowski | Team Penske }} }} | |
{{#if: 86|{{#if: | {{{Most_Driver2}}} }} }} | {{#if: 86|{{#if: | {{{Most_Team2}}} }} }} | ||
Laps | 86 | ||
{{#if: |Fastest lap}} | |||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | {{{Fast_Driver}}} {{#if: | {{#if: |(lap {{{Fast_Lap}}})}} }} }} }} | {{#if: |{{#if: | {{{Fast_Team}}} }} }} | |
{{#if: |{{#if: | {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||
Time | {{#if: |{{{Fast_Time}}} {{#if: | |{{#if: | on lap {{{Fast_Lap}}} }} }} }} | ||
{{#if:18Kyle BuschJoe Gibbs Racing| Winner }} | |||
{{#if:18|No. 18|}} | {{#if:Kyle Busch|Kyle Busch}} | {{#if:Joe Gibbs Racing|Joe Gibbs Racing}} | |
{{#if:NBC &Rick Allen, Jeff Burton and Steve Letarte4.4/10 (Overnight)| Television in the United States }} | |||
Network | NBC & | ||
Announcers | Rick Allen, Jeff Burton and Steve Letarte | ||
Nielsen ratings | 4.4/10 (Overnight) | ||
{{#if:MRNJoe Moore, Jeff Striegle and Rusty WallaceDave Moody (1 & 2) andMike Bagley (3 & 4)| Radio in the United States }} | |||
Radio | MRN | ||
Booth announcers | Joe Moore, Jeff Striegle and Rusty Wallace | ||
Turn announcers | Dave Moody (1 & 2) andMike Bagley (3 & 4) |
{{#if:{{#ifeq:2015|2015||1}}{{#if:{{SAFESUBST:#if:2015|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:Homestead–Miami Speedway in Homestead, Florida|Homestead–Miami Speedway in Homestead, Florida||1}}{{#if:{{SAFESUBST:#if:Homestead–Miami Speedway in Homestead, Florida|{{SAFESUBST:#if:|1}}}}|1}}|{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}{{#switch:NAS|NASCS|NAS|NASNEX|NASWINSTON|NASME|NASXFIN|ARCAM|ARCAME|ARCAMW|CUST=|=|#default={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}Template:Short description
<syntaxhighlight lang="wikitext" style="overflow: auto;">
<templatestyles src="Module:Infobox/styles.css"></templatestyles>
Race details[2] | |||
---|---|---|---|
{{#switch:NAS |NASCS = Race 36 of 36 in the 2015 NASCAR Cup Series |NAS = Race 36 of 36 in the 2015 NASCAR Sprint Cup Series |NASNEX = Race 36 of 36 in the 2015 NASCAR Nextel Cup Series |NASWINSTON = Race 36 of 36 in the 2015 NASCAR Winston Cup Series |NASME = Race 36 of 36 in the 2015 Monster Energy NASCAR Cup Series |NASXFIN = Race 36 of 36 in the 2015 NASCAR Xfinity Series |ARCAM = Race 36 of 36 in the 2015 ARCA Menards Series |ARCAME = Race 36 of 36 in the 2015 ARCA Menards Series East |ARCAMW = Race 36 of 36 in the 2015 ARCA Menards Series West |CUST =}} | |||
File:2015 Ford EcoBoost 400 logo.jpg | |||
Date |
{{#if: | 2015 | Template:Start date}} | ||
Location | Homestead–Miami Speedway in Homestead, Florida | ||
Course | {{#if:1.5| Permanent racing facility }} | ||
Course length |
{{#if:1.5 |1.5 miles (2.4 km) |}} | ||
Distance |
{{#if:400.5267 | {{#if:267|267 laps,}} {{#if:400.5|400.5 mi (640.8 km)}}}} | ||
Scheduled distance |
{{#if: |{{#if:200|200 laps,}} {{#if:500|500 mi (804.672 km)}}}} | ||
Weather | Mostly sunny skies with a temperature of Template:Convert; wind out of the west/southwest at Template:Convert | ||
Average speed | Template:Convert | ||
{{#if: Denny Hamlin| Pole position }} | |||
{{#if: |Drivers|Driver}} | {{#if: Denny Hamlin| Template:Unbulleted list }} | {{#if: Denny Hamlin|{{#if: Joe Gibbs Racing|Joe Gibbs Racing}}}} | |
Time | {{#if: Denny Hamlin| 30.568 }} | ||
Template:Br separated entries | |||
{{#if: Brad Keselowski86| Most laps led }} | |||
{{#if: |Drivers|Driver}} | {{#if: 86|{{#if: Brad Keselowski | Brad Keselowski| {{#if: }} }} }} | {{#if: 86|{{#if: Brad Keselowski | Team Penske }} }} | |
{{#if: 86|{{#if: | {{{Most_Driver2}}} }} }} | {{#if: 86|{{#if: | {{{Most_Team2}}} }} }} | ||
Laps | 86 | ||
{{#if: |Fastest lap}} | |||
{{#if: |Drivers|Driver}} | {{#if: |{{#if: | {{{Fast_Driver}}} {{#if: | {{#if: |(lap {{{Fast_Lap}}})}} }} }} }} | {{#if: |{{#if: | {{{Fast_Team}}} }} }} | |
{{#if: |{{#if: | {{{Fast_Driver2}}} {{#if: | (lap {{{Fast_Lap2}}})}} }} }} | {{#if: |{{#if: | {{{Fast_Team2}}} }} }} | ||
Time | {{#if: |{{{Fast_Time}}} {{#if: | |{{#if: | on lap {{{Fast_Lap}}} }} }} }} | ||
{{#if:18Kyle BuschJoe Gibbs Racing| Winner }} | |||
{{#if:18|No. 18|}} | {{#if:Kyle Busch|Kyle Busch}} | {{#if:Joe Gibbs Racing|Joe Gibbs Racing}} | |
{{#if:NBC &Rick Allen, Jeff Burton and Steve Letarte4.4/10 (Overnight)| Television in the United States }} | |||
Network | NBC & | ||
Announcers | Rick Allen, Jeff Burton and Steve Letarte | ||
Nielsen ratings | 4.4/10 (Overnight) | ||
{{#if:MRNJoe Moore, Jeff Striegle and Rusty WallaceDave Moody (1 & 2) andMike Bagley (3 & 4)| Radio in the United States }} | |||
Radio | MRN | ||
Booth announcers | Joe Moore, Jeff Striegle and Rusty Wallace | ||
Turn announcers | Dave Moody (1 & 2) andMike Bagley (3 & 4) |
{{#if:{{#ifeq:2015|2015||1}}{{#if:{{SAFESUBST:#if:2015|{{SAFESUBST:#if:|1}}}}|1}}{{#ifeq:Homestead–Miami Speedway in Homestead, Florida|Homestead–Miami Speedway in Homestead, Florida||1}}{{#if:{{SAFESUBST:#if:Homestead–Miami Speedway in Homestead, Florida|{{SAFESUBST:#if:|1}}}}|1}}|{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}{{#switch:NAS|NASCS|NAS|NASNEX|NASWINSTON|NASME|NASXFIN|ARCAM|ARCAME|ARCAMW|CUST=|=|#default={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = | other | #default = }} }}Template:Short description </syntaxhighlight>
- References from example
TemplateData
Infobox template for all NASCAR season races, part of the NASCAR WikiProject.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | Year | no description | Number | optional |
Race_Name | Race_Name | no description | Content | optional |
Details_ref | Details_ref | no description | Unknown | optional |
Details ref | Details ref | no description | Unknown | optional |
Type | Type | no description
| Content | required |
Race_No | Race_No | no description | Number | optional |
Season_No | Season_No | no description | Number | optional |
Description | Description | no description | Unknown | optional |
Image | Image | no description | File | optional |
image_size | image_size | no description | Unknown | optional |
image-size | image-size | no description | Unknown | optional |
image_alt | image_alt | no description | Unknown | optional |
image-alt | image-alt | no description | Unknown | optional |
Caption | Caption | no description | Unknown | optional |
Date | Date | no description | Date | optional |
Fulldate | Fulldate | no description | Date | optional |
Official_name | Official_name | no description | Content | optional |
Official name | Official name | no description | Unknown | optional |
Location | Location | no description | Content | suggested |
Course | Course | no description | Unknown | suggested |
Course_mi | Course_mi | no description | Unknown | optional |
Course_km | Course_km | no description | Unknown | optional |
Distance_mi | Distance_mi | no description | Number | suggested |
Distance_laps | Distance_laps | no description | Unknown | optional |
Distance_km | Distance_km | no description | Unknown | optional |
Scheduled_laps | Scheduled_laps | no description | Unknown | optional |
Scheduled_mi | Scheduled_mi | no description | Unknown | optional |
Scheduled_km | Scheduled_km | no description | Unknown | optional |
Weather | Weather | no description | Unknown | optional |
Avg | Avg | no description | Unknown | optional |
Attendance | Attendance | no description | Unknown | optional |
Pole_Driver | Pole_Driver | no description | Unknown | optional |
Pole_Driver2 | Pole_Driver2 | no description | Unknown | optional |
Pole_Team | Pole_Team | no description | Unknown | optional |
Pole_Time | Pole_Time | no description | Unknown | optional |
Grid_from_heats | Grid_from_heats | no description | Unknown | optional |
Grid_from_ballot | Grid_from_ballot | no description | Unknown | optional |
Grid_from_number | Grid_from_number | no description | Unknown | optional |
Grid_from_inversion | Grid_from_inversion | no description | Unknown | optional |
Grid_from_prev_perf | Grid_from_prev_perf | no description | Unknown | optional |
Most_Driver | Most_Driver | no description | Unknown | optional |
Most_laps | Most_laps | no description | Number | optional |
Most_Team | Most_Team | no description | Unknown | optional |
Car | Car | no description | Unknown | optional |
First_Driver | First_Driver | no description | Unknown | optional |
First_Team | First_Team | no description | Unknown | optional |
Network | Network | no description | Unknown | optional |
Announcers | Announcers | no description | Unknown | optional |
Ratings | Ratings | no description
| Number | optional |
Radio | Radio | no description | Unknown | optional |
Booth_Ann | Booth_Ann | no description | Unknown | optional |
Turn_Ann | Turn_Ann | no description | Unknown | optional |
Tracking category