Template:EuroTour player

From blackwiki
Revision as of 05:16, 25 September 2020 by imported>Zyxw (update to use Wikidata property if no ID in template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{name}}} at the European Tour official site

Template documentation[view] [edit] [history] [purge]

Template:Template redirect Template:Uses Wikidata

Template:EuroTour player displays an external link to a golfer's profile at europeantour.com, the official European Tour website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{EuroTour player | ID }}
{{EuroTour player | ID | NAME }}
Named parameters
{{EuroTour player | id= ID }}
{{EuroTour player | id= ID | name= NAME }}
Using Wikidata property Template:Property
{{EuroTour player}}
{{EuroTour player | name= NAME }}

Examples

Unnamed parameters

Usage
* {{EuroTour player | 2586 | Colin Montgomerie }}
Output
URL
https://www.europeantour.com/players/2586/

Named parameters

Usage
* {{EuroTour player | id= 139 | name= Greg Norman }}
Output
URL
https://www.europeantour.com/players/139/

No parameters and Wikidata property not defined

Usage
* {{EuroTour player}}
Output

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for EuroTour player

This template displays an external link to a golfer's profile at europeantour.com, the official European Tour website. 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: 2586 is the ID portion of https://www.europeantour.com/players/2586/. This parameter is optional if Wikidata property P3521 exists, but required if not.

Default
Wikidata property P3521
Numberoptional
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