Template:Datagolf
{{{name}}} at the Datagolf official site
Template:Datagolf displays an external link to a golfer's profile at Datagolf.com. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{Datagolf | ID }}
{{Datagolf | ID | NAME }}
- Named parameters
{{Datagolf | id= ID }}
{{Datagolf | id= ID | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{Datagolf | 20727 | Ugo Coussaud }}
- Output
-
- Ugo Coussaud at the Datagolf official site
Named parameters
[edit]- Usage
* {{Datagolf | id=20727 | name= Ugo Coussaud }}
- Output
-
- Ugo Coussaud at the Datagolf official site
No parameters
[edit]- Usage
* {{Datagolf}}
- Output
-
- {{Datagolf}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Datagolf
This template displays an external link to a golfer's profile at Datagolf.com. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 20727 is the ID portion of https://datagolf.com/player-profiles?dg_id=20727. | Number | required |
name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the golfer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(golfer)".
| String | optional |