Difference between revisions of "Template:AsianTour player"

From blackwiki
Jump to navigation Jump to search
blackwiki>Nigej
(prefer)
blackwiki>Zyxw
(Update URL. Trim any leading spaces in parameter 1 that would break URL. Add fix for empty name parameter. Add optional parameters "id" and "name". Move category to /doc.)
Line 1: Line 1:
[https://www.asiantour.com/playerprofile/{{Replace|{{{2|{{PAGENAMEBASE}}}}}| |-}}-p{{{1}}} {{{2|{{PAGENAMEBASE}}}}}] at the [[Asian Tour]] official site<noinclude>
+
[https://www.asiantour.com/playerprofile/-p{{Trim|{{{1|{{{id}}}}}}}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Asian Tour]] official site<noinclude>
[[Category:Golf external link templates]]
+
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 12:01, 5 November 2018

{{{name}}} at the Asian Tour official site

Template documentation[view] [edit] [history] [purge]

Template:Template redirect

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.

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
URL
https://asiantour.com/player-detail/?player=100183

Named parameters

Usage
* {{AsianTour player | id= 100885 | name= Thongchai Jaidee }}
Output
URL
https://asiantour.com/player-detail/?player=100885

No parameters

Usage
* {{AsianTour player}}
Output

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Numberrequired
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional