Template:DriverDB driver/doc
This is a documentation subpage for Template:DriverDB 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,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
[edit]- 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
[edit]Unnamed parameters
[edit]- 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
[edit]- 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
[edit]- Usage
* {{DriverDB driver}}
- Output
-
- {{DriverDB driver}} template missing ID and not present in Wikidata.
TemplateData
[edit]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
[edit]- 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 (120)
- Category:DriverDB driver template missing ID and not in Wikidata (0)
See also
[edit]- {{DriverDB championship}}
- {{DriverDB championship year}}
- {{Racing-Reference driver}}
- {{T3T}}
External links
[edit]