Template:Infobox NASCAR driver

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[change | change source]

Blank Template[change | change source]

{{Infobox NASCAR driver
|Name               =
|Image              =
|Birthdate          = {{Birth date|YYYY|MM|DD}}
|Birthplace         =
|Died               = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) -->
|Cause of Death     =
|Achievements       =
|Awards             =
|Total_Cup_Races    =
|Years_In_Cup       =
|Cup_Car_Team       =
|Prev_Cup_Pos       =
|Best_Cup_Pos       =
|First_Cup_Race     =
|First_Cup_Win      =
|First_Cup_Race     =
|Total_Nationwide_Races  =
|Years_In_Nationwide     =
|Nationwide_Car_Team     =
|Prev_Nationwide_Pos     =
|Best_Nationwide_Pos     =
|First_Nationwide_Race   =
|First_Nationwide_Win    =
|First_Nationwide_Race   =
|Total_Truck_Races  =
|Years_In_Truck     =
|Truck_Car_Team     =
|Prev_Truck_Pos     =
|Best_Truck_Pos     =
|First_Truck_Race   =
|First_Truck_Win    =
|First_Truck_Race   =
|Updated_On         =
|hoflink           = 
|hoftype           = 
|hofdate           = 
|hofvote           = 
}}

Syntax[change | change source]

Example: Richard Petty
{{Infobox NASCAR driver
| Image         = [[Image:Petty, Kyle (Whitehouse) crop.jpg|177px|center]]<br>Petty in 2006
| Name          = Richard Lee Petty
| Birthdate     = {{Birth date and age|1937|7|2}} 
| Birthplace    = [[Randleman, North Carolina|Level Cross, North Carolina]]
| Best_Cup_Pos  = 1st - 1964, 1967, 1971 (Grand National), 1972, 1974, 1975, 1979 (Winston Cup)
| Cup_Wins          = 200
| Cup_Top_Tens      = 712
| Cup_Poles         = 126
| First_Cup_Race    = 1958 Jim Mideon 500 ([[Canadian Exposition Stadium]])
| First_Cup_Win     = 1960 untitled race ([[Southern States Fairgrounds]])
| Last_Cup_Win      = 1984 [[Firecracker 400]] ([[Daytona International Speedway|Daytona]])
| Last_Cup_Race     = 1992 [[Hooters 500]] ([[Atlanta Motor Speedway|Atlanta]])
| Championships=        
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        =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)
| Years_In_Cup    = 35
| Total_Cup_Races = 1,184
}}

Parameters[change | change source]

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[9][10]
Cup_Car_Team Busch_Car_Team Truck_Truck_Team Corona_Car_Team[11]
Previous_Year[12]
Prev_Cup_Pos Prev_Nationwide_Pos Prev_Truck_Pos [13]
Best_Cup_Pos Best_Nationwide_Pos Best_Truck_Pos [14]
First_Cup_Win First_Nationwide_Win First_Truck_Win [15]
Last_Cup_Win Last_Nationwide_Win Last_Truck_Win [15]
Updated_On[16]
Cup_Wins Nationwide_Wins Truck_Wins [17]
Cup_Top_Tens Nationwide_Top_Tens Truck_Top_Tens [17]
Cup_Poles Nationwide_Poles Truck_Poles [17]
Use the following only if retired
Last_Cup_Race Last_Nationwide_Race Last_Truck_Race [15]
Total_Cup_Races Total_Nationwide_Races Total_Truck_Races [18]
Years_In_Cup Years_In_Nationwide Years_In_Truck [19]

Microformat[change | change source]

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.

Date-of-birth ("bday") information will only be included in the microformat if {{Birth date}}, {{Birth date and age}}, or {{Birth-date}} are used in the infobox. (but do not use these if the date is before 1583 CE).

To include a URL, use {{Url}}

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.

Notes[change | change source]

  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. 15.0 15.1 15.2 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. Once driver retires, and this field is irrellivant, remove field
  17. 17.0 17.1 17.2 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
simple:Template:Infobox NASCAR driver