Template:Racing-Reference driver
{{{name}}} driver statistics at Racing-Reference
This template is used on approximately 2,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:Racing-Reference driver displays an external link to a racing driver's profile at Racing-Reference.info. It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{Racing-Reference driver | ID }}
{{Racing-Reference driver | ID | NAME }}
- Named parameters
{{Racing-Reference driver | id= ID }}
{{Racing-Reference driver | id= ID | name= NAME }}
- Using Wikidata property
{{Racing-Reference driver}}
{{Racing-Reference driver | name= NAME }}
First parameter is the driver's ID as it appears in the RacingReference.info URL, e.g. Mario_Andretti
in https://www.racing-reference.info/driver/Mario_Andretti. Note that the ID of the driver (as used on Racing-Reference.info) can also be used. For example, andrema01 in https://www.racing-reference.info/driver/andrema01/ will also link to Mario Andretti's page at Racing-Reference.info.
Second parameter is the driver's name as it should appear in the visible text of the link, e.g. "Mike Wallace" from the article Mike Wallace (racing driver). If not supplied it defaults to the article title, without any disambiguation such as (racing driver).
Examples
Unnamed parameters
- Usage
* {{Racing-Reference driver | Mario_Andretti | Mario Andretti }}
* {{Racing-Reference driver | andrema01 | Mario Andretti }}
- Output
-
- Mario Andretti driver statistics at Racing-Reference
- Mario Andretti driver statistics at Racing-Reference
- URLs
- https://www.racing-reference.info/driver/Mario_Andretti/
- https://www.racing-reference.info/driver/andrema01/
- https://www.racing-reference.info/driver/?id=andrema01
Named parameters
- Usage
* {{Racing-Reference driver | id= Mike_Wallace | name= Mike Wallace }}
* {{Racing-Reference driver | id= wallami01 | name= Mike Wallace }}
- Output
-
- Mike Wallace driver statistics at Racing-Reference
- Mike Wallace driver statistics at Racing-Reference
- URLs
- https://www.racing-reference.info/driver/Mike_Wallace/
- https://www.racing-reference.info/driver/wallami01/
- https://www.racing-reference.info/driver/?id=wallami01
No parameters
- Usage
* {{Racing-Reference driver}}
- Output
-
- {{Racing-Reference driver}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for Racing-Reference driver
This template displays an external link to a racing driver's profile at Racing-Reference.info. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as Mario_Andretti in https://www.racing-reference.info/driver/Mario_Andretti/. This may also be an ID such as andrema01 in https://www.racing-reference.info/driver/andrema01/ or https://www.racing-reference.info/driver/?id=andrema01. This parameter is optional if Wikidata property P3048 exists, but required if not.
| String | optional |
Name | name 2 | The link text, which should be the name of the driver. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(racing driver)".
| String | optional |
Tracking categories
- Category:Racing-Reference driver template with ID different from Wikidata (14)
- Category:Racing-Reference driver template with ID not in Wikidata (281)
- Category:Racing-Reference driver template missing ID and not in Wikidata (0)
See also
- {{Racing-Reference owner}}
- {{Racing-Reference crewchief}}
- {{Racing-Reference track}}
- {{DriverDB driver}}
- {{T3T}}