Template:PGATour player/doc

From WikiProjectMed
Jump to navigation Jump to search

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 }}
Output
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
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

TemplateData

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

Template parameters

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

Default
Wikidata property P2811
Stringoptional
Namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also