Difference between revisions of "Template:Infobox Daytona 500"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word ]]
imported>Nascar1996 (remove season for consistency) |
imported>Muboshgu |
||
| Line 8: | Line 8: | ||
| subheader = <!-- | | subheader = <!-- | ||
-->{{#switch:{{{Type}}} | -->{{#switch:{{{Type}}} | ||
| − | |NAS = | + | |NAS = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Sprint Cup Series]] |
| − | |NASNEX = | + | |NASNEX = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Nextel Cup Series]] |
| − | |NASWINSTON = | + | |NASWINSTON = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} NASCAR Winston Cup Series]] |
| − | |NASME = | + | |NASME = Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year|{{{year}}}}}} Monster Energy NASCAR Cup Series]] |
| − | |CUST = | + | |CUST = {{{Description}}} |
}} | }} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size={{{image_size|{{{image-size|}}}}}}|alt={{{image_alt|{{{image-alt|}}}}}}|title={{{Caption|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size={{{image_size|{{{image-size|}}}}}}|alt={{{image_alt|{{{image-alt|}}}}}}|title={{{Caption|}}}}} | ||
| Line 62: | Line 62: | ||
| 2 = {{#if: {{{Pole_Driver2|}}}|<span style="white-space: nowrap;">{{{Pole_Driver2}}}</span>}} | | 2 = {{#if: {{{Pole_Driver2|}}}|<span style="white-space: nowrap;">{{{Pole_Driver2}}}</span>}} | ||
}} }} | }} }} | ||
| − | | data12b = {{#if: {{{Pole_Driver|}}}|{{#if: {{{Pole_Team|}}}| | + | | data12b = {{#if: {{{Pole_Driver|}}}|{{#if: {{{Pole_Team|}}}|<span style="white-space: nowrap;">{{{Pole_Team}}}</span>}}}} |
| label13 = Time | | label13 = Time | ||
| Line 70: | Line 70: | ||
| label15 = Duel 1 Winner | | label15 = Duel 1 Winner | ||
| data15a = {{{Duel1|}}} | | data15a = {{{Duel1|}}} | ||
| − | | data15b = {{#if: {{{Duel1|}}} | {{#if:{{{One_Team|}}}| | + | | data15b = {{#if: {{{Duel1|}}} | {{#if:{{{One_Team|}}}|<span style="white-space: nowrap;">{{{One_Team}}}</span> }}}} |
| label16 = Duel 2 Winner | | label16 = Duel 2 Winner | ||
| data16a = {{{Duel2|}}} | | data16a = {{{Duel2|}}} | ||
| − | | data16b = {{#if: {{{Duel2|}}} | {{#if:{{{Two_Team|}}}| | + | | data16b = {{#if: {{{Duel2|}}} | {{#if:{{{Two_Team|}}}|<span style="white-space: nowrap;">{{{Two_Team}}}</span> }}}} |
| header17 = {{#if: {{{Most_Driver|}}}{{{Most_laps|}}}| Most laps led }} | | header17 = {{#if: {{{Most_Driver|}}}{{{Most_laps|}}}| Most laps led }} | ||
| label18 = Driver | | label18 = Driver | ||
| data18a = {{#if: {{{Most_Driver|}}}| <span style="white-space:nowrap;">{{{Most_Driver}}}</span> }} | | data18a = {{#if: {{{Most_Driver|}}}| <span style="white-space:nowrap;">{{{Most_Driver}}}</span> }} | ||
| − | | data18b = {{#if: {{{Most_Driver|}}}| {{#if:{{{Most_Team|}}}| | + | | data18b = {{#if: {{{Most_Driver|}}}| {{#if:{{{Most_Team|}}}|<span style="white-space:nowrap;">{{{Most_Team}}}</span> }}}} |
| label19 = Laps | | label19 = Laps | ||
| data19 = {{{Most_laps|}}} | | data19 = {{{Most_laps|}}} | ||
| Line 86: | Line 86: | ||
| label21 = {{#if:{{{Car|}}}|<span style="font-weight:normal;white-space:nowrap;">No. {{{Car}}}</span>|<nowiki />}} | | label21 = {{#if:{{{Car|}}}|<span style="font-weight:normal;white-space:nowrap;">No. {{{Car}}}</span>|<nowiki />}} | ||
| data21a = {{#if:{{{First_Driver|}}}|<span style="white-space:nowrap;">{{{First_Driver}}}</span>}} | | data21a = {{#if:{{{First_Driver|}}}|<span style="white-space:nowrap;">{{{First_Driver}}}</span>}} | ||
| − | | data21b = {{#if:{{{First_Team|}}}| | + | | data21b = {{#if:{{{First_Team|}}}|<span style="white-space:nowrap;">{{{First_Team}}}</span>}} |
| header22 = {{#if:{{{Network|}}}{{{Announcers|}}}{{{Ratings|}}}| Television in the United States }} | | header22 = {{#if:{{{Network|}}}{{{Announcers|}}}{{{Ratings|}}}| Television in the United States }} | ||
Latest revision as of 22:14, 18 February 2020
[[Category:Infobox templates|Template:Remove first word ]]
| This template uses Lua: |
This template is an infobox for use in articles about a Daytona 500 race, such as 2008 Daytona 500.
Contents
Usage
Basic template
Template:Parameter names example
{{Infobox Daytona 500
| Year =
| Details_ref =
| Type = NASME
| Race_No =
| Season_No =
| Image =
| Fulldate = {{Start date|YYYY|MM|DD}}
| Distance_laps =
| Distance_mi =
| Distance_km =
| Scheduled_laps =
| Weather =
| Avg = <!-- {{convert|SPEED|mi/h}} -->
| Pole_Driver =
| Pole_Team =
| Pole_Time =
| Duel1 =
| One_Team =
| Duel2 =
| Two_Team =
| Most_Driver =
| Most_Team =
| Most_laps =
| Car =
| First_Driver =
| First_Team =
| Network =
| Announcers =
| Ratings =
| Radio =
| Booth_Ann =
| Turn_Ann =
}}
Full template
Template:Parameter names example
{{Infobox Daytona 500
| Year =
| Race_Name =
| Details_ref =
| Type = CUST
| Race_No =
| Season_No =
| Description =
| Image =
| image_size =
| image_alt =
| Caption =
| Fulldate = {{Start date|YYYY|MM|DD}}
| Official_name =
| Location =
| Course =
| Course_mi =
| Course_km =
| Distance_laps =
| Distance_mi =
| Distance_km =
| Scheduled_laps =
| Scheduled_mi =
| Scheduled_km =
| Weather =
| Avg = <!-- {{convert|SPEED|mi/h}} -->
| Attendance =
| Pole_Driver =
| Pole_Driver2 =
| Pole_Team =
| Pole_Time =
| Duel1 =
| One_Team =
| Duel2 =
| Two_Team =
| Most_Driver =
| Most_Team =
| Most_laps =
| Car =
| First_Driver =
| First_Team =
| Network =
| Announcers =
| Ratings =
}}
Parameter notes
- Year
- Used in infobox heading, also used with
|Type=to create descriptions for 1971 through 2015+- 2008–2015+, use
|Type=NASfor links to 2008 NASCAR Sprint Cup Series, etc.- Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year}}} NASCAR Sprint Cup Series]] season
- 2004–2007, use
|Type=NASNEXfor links to 2004 NASCAR Nextel Cup Series, etc.- Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year}}} NASCAR Nextel Cup Series]] season
- 1971–2003, use
|Type=NASWINSTONfor links to 1971 NASCAR Winston Cup Series, etc.- Race {{{Race_No}}} of {{{Season_No}}} in the [[{{{Year}}} NASCAR Winston Cup Series]] season
- 1959–1970, use
|Type=CUSTwith|Description=- {{{Description}}} such as: Race 2 of 44 in the 1959 NASCAR Grand National Series
- 2008–2015+, use
- Type
- NAS, NASNEX, NASWINSTON, or CUST
- Race_No
- Only displayed if
|Type=NAS, NASNEX, or NASWINSTON - Season_No
- Only displayed if
|Type=NAS, NASNEX, or NASWINSTON - Description
- Only displayed if
|Type=CUST - Fulldate
- use
{{Start date|YYYY|MM|DD}} - Location
- if not specified, defaults to: Daytona International Speedway, Daytona Beach, Florida, U.S.
- Course
- if not specified, defaults to: Permanent racing facility, 2.5 mi (4.023 km)
- Scheduled_laps
- USE ONLY WHEN THE RACE IS SHORTENED OR EXTENDED; IF SO PUT 200 here
- Avg
- use
{{Convert|SPEED|mi/h}}
Example
From 2008 Daytona 500:
| Race details | |||
|---|---|---|---|
| Race 1 of 36 in the 2008 NASCAR Sprint Cup Series | |||
![]() | |||
| Date | February 17, 2008 | ||
| Location |
Daytona International Speedway Daytona Beach, Florida, U.S. | ||
| Course |
Permanent racing facility 2.5 mi (4.023 km) | ||
| Distance | 200 laps, 500 mi (800 km) | ||
| Average speed | 152.672 miles per hour (245.702 km/h) | ||
| Pole position | |||
| Driver | Hendrick Motorsports | ||
| Qualifying race winners | |||
| Duel 1 Winner | Dale Earnhardt, Jr. | Hendrick Motorsports | |
| Duel 2 Winner | Denny Hamlin | Joe Gibbs Racing | |
| Most laps led | |||
| Driver | Kyle Busch | Joe Gibbs Racing | |
| Winner | |||
| No. 12 | Ryan Newman | Penske Racing | |
| Television in the United States | |||
| Network | Fox | ||
| Announcers | Mike Joy, Darrell Waltrip and Larry McReynolds | ||
{{Infobox Daytona 500
| Year = 2008
| Details_ref =
| Type = NAS
| Race_No = 1
| Season_No = 36
| Image = Example_logo.jpg
| Fulldate = {{Start date|2008|02|17}}
| Distance_laps = 200
| Distance_mi = 500
| Distance_km = 800
| Scheduled_laps =
| Weather =
| Pole_Driver = [[Jimmie Johnson]]
| Pole_Team = Hendrick Motorsports
| Pole_Time =
| Avg = {{convert|152.672|mi/h}}
| Duel1 = [[Dale Earnhardt, Jr.]]
| One_Team = [[Hendrick Motorsports]]
| Duel2 = [[Denny Hamlin]]
| Two_Team = [[Joe Gibbs Racing]]
| Most_Driver = [[Kyle Busch]]
| Most_Team = Joe Gibbs Racing
| Most_laps =
| Car = 12
| First_Driver = [[Ryan Newman (racing driver)|Ryan Newman]]
| First_Team = [[Penske Racing]]
| Network = [[Fox Broadcasting Company|Fox]]
| Announcers = [[Mike Joy]], [[Darrell Waltrip]] and [[Larry McReynolds]]
| Ratings =
}}
Tracking category
See also
- Template:Infobox NASCAR race report, has similar parameters and output
| The above documentation is transcluded from Template:Infobox Daytona 500/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
