Difference between revisions of "Template:AsianTour player"
blackwiki>Nigej (update) |
blackwiki>Zyxw (display error message if no ID in template) |
||
| Line 1: | Line 1: | ||
| − | [https://asiantour.com/player-detail/?player={{Trim|{{{1|{{{id}}}}}}}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Asian Tour]] official site<noinclude> | + | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} |
| + | |||
| + | | [https://asiantour.com/player-detail/?player={{Trim|{{{1|{{{id}}}}}}}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Asian Tour]] official site | ||
| + | |||
| + | | <span class="error">{{[[Template:AsianTour player|AsianTour player]]}} template missing ID.</span> | ||
| + | |||
| + | }}<noinclude> | ||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Revision as of 06:05, 25 September 2020
{{{name}}} at the Asian Tour official site
Template:AsianTour player displays an external link to a golfer's profile at asiantour.com, the official Asian Tour website. It is intended for use in the external links section of an article.
Contents
Usage
- Unnamed parameters
{{AsianTour player | ID }}{{AsianTour player | ID | NAME }}
- Named parameters
{{AsianTour player | id= ID }}{{AsianTour player | id= ID | name= NAME }}
Examples
Unnamed parameters
- Usage
* {{AsianTour player | 100183 | Jyoti Randhawa }}
- Output
-
- Jyoti Randhawa at the Asian Tour official site
Named parameters
- Usage
* {{AsianTour player | id= 100885 | name= Thongchai Jaidee }}
- Output
-
- Thongchai Jaidee at the Asian Tour official site
No parameters
- Usage
* {{AsianTour player}}
- Output
-
- {{AsianTour player}} template missing ID.
TemplateData
TemplateData for AsianTour player
This template displays an external link to a golfer's profile at asiantour.com, the official Asian Tour website. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 100183 is the ID portion of https://asiantour.com/player-detail/?player=100183. | Number | required |
| name | name 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)".
| String | optional |
| The above documentation is transcluded from Template:AsianTour player/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |