This is a documentation subpage for Template:Racing-Reference driver. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 2,200 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.
((Racing-Reference driver | ID ))
((Racing-Reference driver | ID | NAME ))
((Racing-Reference driver | id= ID ))
((Racing-Reference driver | id= ID | name= NAME ))
((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).
* ((Racing-Reference driver | Mario_Andretti | Mario Andretti ))
* ((Racing-Reference driver | andrema01 | Mario Andretti ))
* ((Racing-Reference driver | id= Mike_Wallace | name= Mike Wallace ))
* ((Racing-Reference driver | id= wallami01 | name= Mike Wallace ))
* ((Racing-Reference driver))
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 |