Template:LegendsTour player/doc

From Wikipedia, the free encyclopedia

Template:LegendsTour player displays an external link to a golfer's profile at the Legends Tour's official websites: legendsofthelpga.com (new) and/or thelegendstour.com (old). It is intended for use in the external links section of an article.

Usage[edit]

One link[edit]

One link (using article name)
{{LegendsTour player | alpha ID }}
{{LegendsTour player | id= alpha ID }}
{{LegendsTour player | old_id= numeric ID }}
One link (using name parameter)
{{LegendsTour player | alpha ID | NAME }}
{{LegendsTour player | id= alpha ID | name= NAME }}
{{LegendsTour player | old_id= numeric ID | name= NAME }}
One link (using Wikidata property)
{{LegendsTour player}}
{{LegendsTour player | name= NAME }}

Two links[edit]

Two links (using article name)
{{LegendsTour player | alpha ID | old_id= numeric ID }}
{{LegendsTour player | id= alpha ID | old_id= numeric ID }}
Two links (using name parameter)
{{LegendsTour player | alpha ID | NAME | old_id= numeric ID }}
{{LegendsTour player | id= alpha ID | name= NAME | old_id= numeric ID }}
Two links (using Wikidata property)
{{LegendsTour player | old_id= numeric ID }}
{{LegendsTour player | name= NAME | old_id= numeric ID }}

Examples[edit]

One link[edit]

URLs
https://www.legendsofthelpga.com/players/tina-barrett (new website)
http://players.thelegendstour.com/details.php?PID=49 (old website)
Usage
* {{LegendsTour player | tina-barrett | Tina Barrett }}
* {{LegendsTour player | id= tina-barrett | name= Tina Barrett }}
* {{LegendsTour player | old_id= 49 | name= Carol Mann }}
Output

Two links[edit]

URLs
https://www.legendsofthelpga.com/players/lorie-kane (new website)
http://players.thelegendstour.com/details.php?PID=182 (old website)
Usage
* {{LegendsTour player | lorie-kane | Lorie Kane | old_id= 182 }}
* {{LegendsTour player | id= lorie-kane | name= Lorie Kane | old_id= 182 }}
Output

No parameters and no ID in Wikidata[edit]

Usage
* {{LegendsTour player}}
Output

TemplateData[edit]

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

TemplateData for LegendsTour player

Template:LegendsTour player displays an external link to a golfer's profile at the Legends Tour's official websites: legendsofthelpga.com (new) and/or thelegendstour.com (old). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The ID portion of the URL at the current website, such as tina-barrett in https://www.legendsofthelpga.com/players/tina-barrett.

Default
Wikidata property P12283
Stringoptional
idold_id

The ID number in the URL at the former website, such as 49 in http://players.thelegendstour.com/details.php?PID=49.

Numberoptional
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

Tracking categories[edit]

External links[edit]