Jump to content

Template:DriverDB driver/doc

From Wikipedia, the free encyclopedia

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
Current URL
https://www.driverdb.com/drivers/michael-schumacher
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
Current URL
https://www.driverdb.com/drivers/andrew-thompson-4789
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

TemplateData

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

Template parameters

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

Default
Wikidata property P3684
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

[edit]

See also

[edit]
[edit]