Template:WSBK/doc
This is a documentation subpage for Template:WSBK. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:WSBK displays an external link to a motorcycle racer's page at WorldSBK.com, a website dedicated to superbike racing. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
* {{WSBK | account_name }}
* {{WSBK | account_name | Displayed Name }}
- Named parameters
* {{WSBK | id= account_name }}
* {{WSBK | id= account_name | name= Displayed Name }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{WSBK | Jeffrey+Buis | Jeffrey Buis}}
* {{WSBK | Jeffrey+Buis/8496 | Jeffrey Buis}}
- Output
- URLs
https://www.worldsbk.com/en/rider/Jeffrey+Buis
(redirect to URL below)https://www.worldsbk.com/en/rider/Jeffrey+Buis/8496
Named parameters
[edit]- Usage
* {{WSBK | id= Alejandro+Medina+Mayo | name= Alejandro Medina Mayo }}
* {{WSBK | id= Alejandro+Medina+Mayo/8253 | name= Alejandro Medina Mayo }}
- URLs
https://www.worldsbk.com/en/rider/Alejandro+Medina+Mayo
(redirect to URL below)https://www.worldsbk.com/en/rider/Alejandro+Medina+Mayo/8253
No parameters and Wikidata property not defined
[edit]- Usage
* {{WSBK}}
- Output
-
- {{WSBK}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for WSBK
This template displays an external link to a motorcycle racer's page at WorldSBK.com, a website dedicated to superbike racing. 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 Jeffrey+Buis in https://www.worldsbk.com/en/rider/Jeffrey+Buis or Jeffrey+Buis/8496 in https://www.worldsbk.com/en/rider/Jeffrey+Buis/8496. This parameter is optional if Wikidata property P4076 exists, but required if not.
| String | optional |
Name | name 2 | The link text, which should be the name of the motorcycle racer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(motorcyclist)".
| String | optional |
Tracking category
[edit]External links
[edit]