Template:OWGR/doc
This is a documentation subpage for Template:OWGR. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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
-
- John Daly at the Official World Golf Ranking official site
- 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
-
- Colin Montgomerie at the Official World Golf Ranking official site
- 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]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| Number | 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
[edit]- {{WWGR}} for Women's World Golf Rankings