Template:Racing-Reference driver/doc

It is intended for use in the external links section of an article.

Usage

 * Unnamed parameters


 * Named parameters


 * Using Wikidata property

First parameter is the driver's ID as it appears in the RacingReference.info URL, e.g.  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).

Unnamed parameters

 * Usage


 * 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

 * Usage


 * 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

 * Usage


 * Output

TemplateData
{ "description": "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.", "params": { "id": { "label": "ID", "aliases": ["1"], "description": "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", "type": "string", "required": false },   "name": { "label": "Name", "aliases": ["2"], "description": "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": "", "type": "string", "required": false } },  "paramOrder": [ "id", "name" ] }