Template:PGATour player
{{{name}}} at the PGA Tour official site
This template uses Lua: |
Template:PGATour player displays an external link to a golfer's profile at pgatour.com, the official PGA Tour website. It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{PGATour player | ID }}
{{PGATour player | ID | NAME }}
- Named parameters
{{PGATour player | id= ID }}
{{PGATour player | id= ID | name= NAME }}
- Using Wikidata property PGA Tour golf player ID (P2811)
{{PGATour player}}
{{PGATour player | name= NAME }}
where:
ID
is the identifier in player's URL, which can be found at player search pages for the PGA Tour, the PGA Tour Champions (formerly the Champions Tour), or the Korn Ferry Tour (formerly the Web.com Tour). See the examples below.NAME
is the player's name (optional, defaults to Wikipedia article name).
Examples
Unnamed parameters
- Usage
* {{PGATour player | 01249 | John Daly }}
* {{PGATour player | 01249/john-daly | John Daly }}
- URLs
- https://www.pgatour.com/player/01249 (ID number as used in Wikidata)
- https://www.pgatour.com/player/01249/john-daly (full ID as used at PGA Tour website)
Named parameters
- Usage
* {{PGATour player | id= 01876 | name= Greg Norman }}
* {{PGATour player | id= 01876/greg-norman | name= Greg Norman }}
- Output
-
- Greg Norman at the PGA Tour official site
- Greg Norman at the PGA Tour official site
- URLs
- https://www.pgatour.com/player/01876 (ID number as used in Wikidata)
- https://www.pgatour.com/player/01876/greg-norman (full ID as used at PGA Tour website)
No parameters and Wikidata property not defined
- Usage
* {{PGATour player}}
- Output
-
- {{PGATour player}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for PGATour player
This template displays an external link to a golfer's profile at pgatour.com, the official PGA Tour website. 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 01249/john-daly or 01249 in https://www.pgatour.com/player/01249/john-daly. This parameter is optional if Wikidata property P2811 exists, but required if not.
| String | optional |
Name | name 2 | 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 |
See also
- {{LPGA Tour player}}