Difference between revisions of "Template:AsianTour player/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Nigej
(update for new style)
blackwiki>Zyxw
(add link, update examples)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 +
{{Template redirect|Asian Tour player}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a golfer's profile at [https://www.asiantour.com/ asiantour.com], the official [[Asian Tour]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a golfer's profile at [https://www.asiantour.com/ asiantour.com], the official [[Asian Tour]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 16: Line 17:
  
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
; URLs
 
: <kbd>[https://asiantour.com/player-detail/?player=100183 https://asiantour.com/player-detail/?player={{Hilite|100183}}]</kbd>
 
 
 
; Usage
 
; Usage
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 100183 | Jyoti Randhawa }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 100183 | Jyoti Randhawa }}</code>
Line 24: Line 22:
 
; Output
 
; Output
 
:* {{{{BASEPAGENAME}} | 100183 | Jyoti Randhawa }}
 
:* {{{{BASEPAGENAME}} | 100183 | Jyoti Randhawa }}
 +
 +
; URL
 +
: <kbd>[https://asiantour.com/player-detail/?player=100183 https://asiantour.com/player-detail/?player={{Hilite|100183}}]</kbd>
  
 
=== Named parameters ===
 
=== Named parameters ===
; URLs
+
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 100885 | name= Thongchai Jaidee }}</code>
 +
 
 +
; Output
 +
:* {{{{BASEPAGENAME}} | id= 100885 | name= Thongchai Jaidee }}
 +
 
 +
; URL
 
: <kbd>[https://asiantour.com/player-detail/?player=100885 https://asiantour.com/player-detail/?player={{Hilite|100885}}]</kbd>
 
: <kbd>[https://asiantour.com/player-detail/?player=100885 https://asiantour.com/player-detail/?player={{Hilite|100885}}]</kbd>
  
 +
=== No parameters ===
 
; Usage
 
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 100885 | name= Thongchai Jaidee }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
  
 
; Output
 
; Output
:* {{{{BASEPAGENAME}} | id= 100885 | name= Thongchai Jaidee }}
+
:* {{ {{BASEPAGENAME}} }}
  
 
== TemplateData ==
 
== TemplateData ==

Revision as of 06:11, 25 September 2020

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