Template:SunshineTour player/doc
![]() | This is a documentation subpage for Template:SunshineTour player. It may contain usage information, categories and other content that is not part of the original template page. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
![]() | This template uses Lua: |
Template:SunshineTour player displays an external link to a golfer's profile at the official Sunshine Tour website. It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{SunshineTour player | ID }}
{{SunshineTour player | ID | NAME }}
- Named parameters
{{SunshineTour player | id= ID }}
{{SunshineTour player | id= ID | name= NAME }}
- Using Wikidata property Sunshine Tour golf player ID (P3582)
{{SunshineTour player}}
{{SunshineTour player | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{SunshineTour player | ELS001 | Ernie Els }}
- Output
-
- Ernie Els at the Sunshine Tour official site
- URLs
- https://www.sunshinetour.info/profiles/profile.php?player=ELS001
- https://sunshinetour.com/playerprofile/ELS001
Named parameters
[edit]- Usage
* {{SunshineTour player | id= COE015 | name= George Coetzee }}
- Output
-
- George Coetzee at the Sunshine Tour official site
- URLs
- https://www.sunshinetour.info/profiles/profile.php?player=COE015
- https://sunshinetour.com/playerprofile/COE015
No parameters and Wikidata property not defined
[edit]- Usage
* {{SunshineTour player}}
- Output
-
- {{SunshineTour player}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for SunshineTour player
This template displays an external link to a golfer's profile at the official Sunshine Tour website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as ELS001 in https://www.sunshinetour.info/profiles/profile.php?player=ELS001 or https://sunshinetour.com/playerprofile/ELS001. This parameter is optional if Wikidata property P3582 exists, but required if not.
| String | 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]