Jump to content

Template:OWGR/doc

From Wikipedia, the free encyclopedia

Template:OWGR displays an external link to a golfer's profile at owgr.com, the Official World Golf Ranking website. It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{OWGR | ID }}
{{OWGR | ID | NAME }}
Named parameters
{{OWGR | id= ID }}
{{OWGR | id= ID | name= NAME }}
Using Wikidata property Official World Golf Ranking player ID (P3568)
{{OWGR}}
{{OWGR | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]
Usage
* {{OWGR | 863 | John Daly }}
Output
Current URL
https://www.owgr.com/playerprofile/863
Former URL
http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=863 (archived 2022-07-03)

Named parameters

[edit]
Usage
* {{OWGR | id= 741 | name= Colin Montgomerie }}
Output
Current URL
https://www.owgr.com/playerprofile/741
Former URL
http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=741 (archive 2022-07-01)

No parameters and Wikidata property not defined

[edit]
Usage
* {{OWGR}}
Output
  • {{OWGR}} 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:OWGR in articles based on its TemplateData.

TemplateData for OWGR

This template displays an external link to a golfer's profile at owgr.com, the Official World Golf Ranking website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID number in the URL, such as 863 in https://www.owgr.com/playerprofile/863 or http://www.owgr.com/en/Ranking/PlayerProfile.aspx?playerID=863. This parameter is optional if Wikidata property P3568 exists, but required if not.

Default
Wikidata property P3568
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

See also

[edit]