Template:Racing-Reference driver/doc

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.

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

change

Unnamed parameters

change
Usage
* {{Racing-Reference driver | Mario_Andretti | Mario Andretti }}
* {{Racing-Reference driver | andrema01 | Mario Andretti }}
Output
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

change
Usage
* {{Racing-Reference driver | id= Mike_Wallace | name= Mike Wallace }}
* {{Racing-Reference driver | id= wallami01 | name= Mike Wallace }}
Output
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

change
Usage
* {{Racing-Reference driver}}
Output

TemplateData

change
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Racing-Reference driver in articles based on its 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.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P3048
Stringoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

change

See also

change
change