Jump to content

Template:Infobox NASCAR driver/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Blank template

[edit]
{{Infobox NASCAR driver
| name               =
| image              =
| caption            =
| birth_name         = <!-- Only if different from name -->
| birth_date         = <!-- {{Birth date and age|YYYY|MM|DD}} -->
| birth_place        =
| death_date         = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) -->
| death_place        =
| death_cause        =
| height             =  <!-- "X ft Y in" or "X cm" plus optional reference (conversions are automatic) -->
| weight             =  <!-- "X lb", "X kg" or "X st Y lb" plus optional reference (conversions are automatic) -->
| achievements       =
| awards             =
| Total_Cup_Races    = <!-- Strictly Stock Series, Grand National Series, Winston Cup Series, Nextel Cup Series, Sprint Cup Series, Monster Energy Cup Series -->
| Years_In_Cup       =
| Cup_Car_Team       =
| Prev_Cup_Pos       =
| Prev_Cup_Year      =
| Best_Cup_Pos       =
| First_Cup_Race     =
| Last_Cup_Race      =
| First_Cup_Win      =
| Last_Cup_Win       =
| Cup_Wins           = 
| Cup_Top_Tens       = 
| Cup_Poles          = 
| Total_Busch_Races  = <!-- Budweiser Late Model Sportsman Series, Busch Series Grand National Division, Busch Series, Nationwide Series, Xfinity Series -->
| Years_In_Busch     =
| Busch_Car_Team     =
| Prev_Busch_Pos     =
| Prev_Busch_Year    =
| Best_Busch_Pos     =
| First_Busch_Race   =
| Last_Busch_Race    =
| First_Busch_Win    =
| Last_Busch_Win     =
| Busch_Wins         = 
| Busch_Top_Tens     = 
| Busch_Poles        = 
| Total_Truck_Races  = <!-- SuperTruck Series, Camping World Truck Series, Gander Outdoors Truck Series, Gander RV & Outdoors Truck Series, Craftsman Truck Series -->
| Years_In_Truck     =
| Truck_Car_Team     =
| Prev_Truck_Pos     =
| Prev_Truck_Year    =
| Best_Truck_Pos     =
| First_Truck_Race   =
| Last_Truck_Race    =
| First_Truck_Win    =
| Last_Truck_Win     =
| Truck_Wins         = 
| Truck_Top_Tens     = 
| Truck_Poles        = 
| Total_Corona_Races = <!-- Desafío Corona, NASCAR Mexico Corona Series, NASCAR Corona Series, NASCAR Toyota Series, NASCAR Mexico Series -->
| Years_In_Corona    =
| Corona_Car_Team    =
| Prev_Corona_Pos    =
| Prev_Corona_Year   =
| Best_Corona_Pos    =
| First_Corona_Race  =
| Last_Corona_Race   =
| First_Corona_Win   =
| Last_Corona_Win    =
| Corona_Wins        = 
| Corona_Top_Tens    = 
| Corona_Poles       = 
| Total_Canada_Races = <!-- CASCAR Super Series, NASCAR Canadian Tire Series, NASCAR Pinty's Series -->
| Years_In_Canada    =
| Canada_Car_Team    =
| Prev_Canada_Pos    =
| Prev_Canada_Year   = 
| Best_Canada_Pos    =
| First_Canada_Race  =
| Last_Canada_Race   =
| First_Canada_Win   =
| Last_Canada_Win    =
| Canada_Wins        = 
| Canada_Top_Tens    = 
| Canada_Poles       = 
| Total_GNEast_Races = <!-- NASCAR Grand National East Series (1972–1973) -->
| Years_In_GNEast    =
| Best_GNEast_Pos    =
| First_GNEast_Race  =
| Last_GNEast_Race   =
| First_GNEast_Win   =
| Last_GNEast_Win    =
| GNEast_Wins        =
| GNEast_Top_Tens    =
| GNEast_Poles       =
| Total_Conv_Races   = 
| Years_In_Conv      = 
| Best_Conv_Pos      = 
| First_Conv_Race    = 
| Last_Conv_Race     = 
| First_Conv_Win     = 
| Last_Conv_Win      = 
| Conv_Wins          = 
| Conv_Top_Tens      = 
| Conv_Poles         = 
| Total_ARCA_Races = <!-- ARCA Menards Series, ARCA Re/Max Series, ARCA Bondo/Mar-Hyde Series, ARCA Hooters SuperCar Series, ARCA Permatex SuperCar Series -->
| Years_In_ARCA    =
| ARCA_Car_Team    =
| Prev_ARCA_Pos    =
| Prev_ARCA_Year   = 
| Best_ARCA_Pos    =
| First_ARCA_Race  =
| Last_ARCA_Race   =
| First_ARCA_Win   =
| Last_ARCA_Win    =
| ARCA_Wins        = 
| ARCA_Top_Tens    = 
| ARCA_Poles       = 
| Total_ARCA_East_Races = <!-- Busch East Series, Busch North Series, Camping World East Series, NASCAR K&N Pro Series East -->
| Years_In_ARCA_East    =
| ARCA_East_Car_Team    =
| Prev_ARCA_East_Pos    =
| Prev_ARCA_East_Year   = 
| Best_ARCA_East_Pos    =
| First_ARCA_East_Race  =
| Last_ARCA_East_Race   =
| First_ARCA_East_Win   =
| Last_ARCA_East_Win    =
| ARCA_East_Wins        = 
| ARCA_East_Top_Tens    = 
| ARCA_East_Poles       = 
| Total_ARCA_West_Races = <!-- NASCAR K&N Pro Series West, NASCAR AutoZone West Series, NASCAR Winston West Series, NASCAR Camping World West Series -->
| Years_In_ARCA_West    =
| ARCA_West_Car_Team    =
| Prev_ARCA_West_Pos    =
| Prev_ARCA_West_Year   = 
| Best_ARCA_West_Pos    =
| First_ARCA_West_Race  =
| Last_ARCA_West_Race   =
| First_ARCA_West_Win   =
| Last_ARCA_West_Win    =
| ARCA_West_Wins        = 
| ARCA_West_Top_Tens    = 
| ARCA_West_Poles       = 
| updated            = 
}}

Example

[edit]
Example: Richard Petty (former driver)
Richard Petty
Petty in 2006
BornRichard Lee Petty
(1937-07-02) July 2, 1937 (age 87)
Level Cross, North Carolina, U.S.
Achievements
Awards
NASCAR Cup Series career
1,184 races run over 35 years
Best finish1st - 1964, 1967, 1971 (Grand National), 1972, 1974, 1975, 1979 (Winston Cup)
First race1958 Jim Mideon 500 (Canadian Exposition Stadium)
Last race1992 Hooters 500 (Atlanta)
First win1960 untitled race (Southern States Fairgrounds)
Last win1984 Firecracker 400 (Daytona)
Wins Top tens Poles
200 712 126
{{Infobox NASCAR driver
| name            = Richard Petty
| image           = Petty, Richard (Whitehouse) crop.jpg
| caption         = Petty in 2006
| birth_name      = Richard Lee Petty
| birth_date      = {{Birth date and age|1937|7|2}}
| birth_place     = [[Level Cross, Randolph County, North Carolina|Level Cross]], [[North Carolina]], U.S.
| achievements    = {{unbulleted list
  | 1979 [[NASCAR Championship|Winston Cup Champion]]
  | 1975 [[NASCAR Championship|Winston Cup Champion]]
  | 1974 [[NASCAR Championship|Winston Cup Champion]]
  | 1972 [[NASCAR Championship|Winston Cup Champion]]
  | 1971 [[NASCAR Championship|Grand National Champion]]
  | 1967 [[NASCAR Championship|Grand National Champion]]
  | 1964 [[NASCAR Championship|Grand National Champion]]
  | 1959 [[NASCAR Rookie of the Year|Rookie of the Year]]
  }}
| awards          = {{unbulleted list
  | Is tied with [[Dale Earnhardt]] with 7 cup championship.
  | Named one of [[NASCAR's 50 Greatest Drivers]] (1998)
  | Inducted in the [[International Motorsports Hall of Fame]] (1997)
  | Inducted in the [[Motorsports Hall of Fame of America]] (1989 - inaugural inductee)
  }}
| Total_Cup_Races = 1,184
| Years_In_Cup    = 35
| Best_Cup_Pos    = 1st - 1964, 1967, 1971 (Grand National), 1972, 1974, 1975, 1979 (Winston Cup)
| First_Cup_Race  = 1958 Jim Mideon 500 ([[Canadian Exposition Stadium]])
| Last_Cup_Race   = 1992 [[Hooters 500]] ([[Atlanta Motor Speedway|Atlanta]])
| First_Cup_Win   = 1960 untitled race ([[Southern States Fairgrounds]])
| Last_Cup_Win    = 1984 [[Firecracker 400]] ([[Daytona International Speedway|Daytona]])
| Cup_Wins        = 200
| Cup_Top_Tens    = 712
| Cup_Poles       = 126
}}

Parameters

[edit]

This template has two types of variables to be called, those having to do with statistics, and those not having to do with statistics. All attributes are optional.

Name[1]
Born[2]
Hometown[3]
Died[4]
Cause of Death[5]
Achievements[6]
Awards[7]
Image[8]
First_Cup_Race First_Busch_Race First_Truck_Race First_Corona_Race First Canada Race First_GNEast_Race[9][10]
Cup_Car_Team Busch_Car_Team Truck_Truck_Team Corona_Car_Team Canada_Car_Team[11]
Previous_Year[12]
Prev_Cup_Pos Prev_Busch_Pos Prev_Truck_Pos Prev_Corona_Pos Prev_Canada_Pos[13]
Best_Cup_Pos Best_Busch_Pos Best_Truck_Pos Best_Corona_Pos Best_Canada_Pos Best_GNEast_Pos[14]
First_Cup_Win First_Busch_Win First_Truck_Win First_Corona_Win First_Canada_Win First_GNEast_Win[15]
Last_Cup_Win Last_Busch_Win Last_Truck_Win Last_Corona_Win Last_Canada_Win Last_GNEast_Win[15]
updated[16]
Cup_Wins Busch_Wins Truck_Wins Corona_Wins Canada_Wins GNEast_Wins[17]
Cup_Top_Tens Busch_Top_Tens Truck_Top_Tens Corona_Top_Tens Canada_Top_Tens GNEast_Top_Tens[17]
Cup_Poles Busch_Poles Truck_Poles Corona_Poles Canada_Poles GNEast_Poles[17]
Use the following only if retired
Last_Cup_Race Last_Busch_Race Last_Truck_Race Last_Corona_Race Last_Canada_Race Last_GNEast_Race[15]
Total_Cup_Races Total_Busch_Races Total_Truck_Races Total_Corona_Races Total_Canada_Races Total_GNEast_Races[18]
Years_In_Cup Years_In_Busch Years_In_Truck Years_In_Corona Years_In_Canada Years_In_GNEast[19]

Notes

[edit]
  1. ^ Should be full name (when known) and NOT wikilinked.
  2. ^ a.k.a. Date of birth. Use {{Birth date}} or {{Birth date and age}}
  3. ^ a.k.a. Place of birth, should be wikilinked.
  4. ^ a.k.a. Date of death. Use {{Death date}} or {{Death date and age}}
  5. ^ If undefined, displays as "Unknown".
  6. ^ Any notable achievements. e.g. Daytona 500 win, All-Star win, Championship, etc..
  7. ^ Any notable awards. The definition of notable in this context is not clear, however, for now, if you think it might be notable, include it.
  8. ^ Still under discussion, might not be included in template
  9. ^ Required for any series that the driver has started one or more race. If not present NONE of the other stats will show.
  10. ^ Formatting: Year Race (Track) Year linked to year in NASCAR page, name of race linked to page of that race. Wikilinked name of race. Track is wikilink to track, piped text should be nickname/short name.
  11. ^ Required for any current driver. Formatting Car #, wikilinked team.
  12. ^ Required for any driver that raced last year in any series.
  13. ^ Required for any driver that raced last year for each series. If not present, the entire Previous Year line will not show for that series section.
  14. ^ For any driver that was active in that series. Do NOT count this year. (if this year is the only year that the driver has participated, e.g., rookie, do not use this field
  15. ^ a b c Same formatting as First Race. If undefined, will not show.
  16. ^ Required for any current driver. This field MUST be updated each time the stats are (use {{subst:Date}} or {{subst:Date|2=mdy}}). Once driver retires, and this field is irrelevant, remove field
  17. ^ a b c If undefined, shows as "0"
  18. ^ Another term for this could be total starts. If the driver took the green flag, it counts.
  19. ^ One race in a year counts for that year. e.g. 10 races in 10 years is possible, especially for road ringers

Use as a child template

[edit]

The child, embed, and subbox parameters are used when embedding this infobox into another.

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox NASCAR driver | child=yes <!-- or embed=yes or subbox=yes -->
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}

Embedding other templates

[edit]

The module, module2, module3, module4, and module5 parameters are used for embedding other templates into this infobox (see Wikipedia:Infobox modules and Category:Biographical templates usable as a module).

{{Infobox NASCAR driver
| name = 
| <!-- etc. -->
| module = 
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes-->
  | <!-- etc. -->
  }}
}}

Microformat

[edit]

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

[edit]

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

[edit]

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.