Template:DriverDB driver
{{{name}}} career summary at DriverDB.com
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:DriverDB driver displays an external link to a racing driver's profile at DriverDB.com. It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{DriverDB driver | ID }}
{{DriverDB driver | ID | NAME }}
- Named parameters
{{DriverDB driver | id= ID }}
{{DriverDB driver | id= ID | name= NAME }}
- Using Wikidata property
{{DriverDB driver}}
{{DriverDB driver | name= NAME }}
First parameter is the driver's ID as it appears in the DriverDB.com url, e.g. michael-schumacher in https://www.driverdb.com/drivers/michael-schumacher/. Note that the ID of the driver (as used on DriverDB.com) can also be used. For example, 1 in https://www.driverdb.com/drivers/1/ will also link to Michael Schumacher's page at DriverDB.com.
Second parameter is the driver's name as it should appear in the visible text of the link, e.g. "John Taylor" from the article John Taylor (racing driver). If not supplied it defaults to the article title, without any disambiguation such as (racing driver).
The first parameter is required unless the driver's ID is in Wikidata. The second parameter is not needed if the article title is the actual driver's name.
Examples
Unnamed parameters
- Usage in Michael Schumacher
* {{DriverDB driver | michael-schumacher }}
* {{DriverDB driver | 1 }}
- Output
-
- Michael Schumacher career summary at DriverDB.com
- Michael Schumacher career summary at DriverDB.com (archived)
- Former URLs (previously redirected to current URL)
- https://www.driverdb.com/drivers/1/ (archive)
- https://www.driverdb.com/racingdriver1.html (archive)
Named parameters
- Usage in Andrew Thompson (racing driver)
* {{DriverDB driver | id= andrew-thompson-4789 }}
* {{DriverDB driver | id= 4789 }}
- Output
-
- Andrew Thompson career summary at DriverDB.com
- Andrew Thompson career summary at DriverDB.com (archived)
- Former URLs (previously redirected to current URL)
- https://www.driverdb.com/drivers/4789/ (archive)
- https://www.driverdb.com/racingdriver4789.html (archive)
No parameters and Wikidata property not defined
- Usage
* {{DriverDB driver}}
- Output
-
- {{DriverDB driver}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for DriverDB driver
This template displays an external link to a racing driver's profile at DriverDB.com. 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 michael-schumacher in https://www.driverdb.com/drivers/michael-schumacher. This parameter is optional if Wikidata property P3684 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:DriverDB driver template using numeric ID (0)
- Category:DriverDB driver template with ID different from Wikidata (0)
- Category:DriverDB driver template with ID not in Wikidata (99)
- Category:DriverDB driver template missing ID and not in Wikidata (0)
See also
- {{DriverDB championship}}
- {{DriverDB championship year}}
- {{Racing-Reference driver}}
- {{T3T}}