Jump to content

Template:Datagolf/doc

From Wikipedia, the free encyclopedia

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
URL
https://datagolf.com/player-profiles?dg_id=20727

Named parameters

[edit]
Usage
* {{Datagolf | id=20727 | name= Ugo Coussaud }}
Output
URL
https://datagolf.com/player-profiles?dg_id=20727

No parameters

[edit]
Usage
* {{Datagolf}}
Output
  • {{Datagolf}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Datagolf in articles based on its TemplateData.

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.

Template parameters

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

Numberrequired
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional