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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create)
 
imported>Nigej
(update per new url style)
Line 17: Line 17:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
; URL
 
; URL
: <kbd>[https://www.pga.org.au/tourns/pga-tour/profiles/player?id=006720&tour=pga https://www.pga.org.au/tourns/pga-tour/profiles/player?id={{Hilite|006720}}&tour=pga]</kbd>
+
: <kbd>[https://pga.org.au/player-profile/?player=006720&tour=pga https://pga.org.au/player-profile/?player={{Hilite|006720}}&tour=pga]</kbd>
  
 
; Usage
 
; Usage
Line 27: Line 27:
 
=== Named parameters ===
 
=== Named parameters ===
 
; URL
 
; URL
: <kbd>[https://www.pga.org.au/tourns/pga-tour/profiles/player?id=006216&tour=pga https://www.pga.org.au/tourns/pga-tour/profiles/player?id={{Hilite|006216}}&tour=pga]</kbd>
+
: <kbd>[https://pga.org.au/player-profile/?player=006216&tour=pga https://pga.org.au/player-profile/?player={{Hilite|006216}}&tour=pga]</kbd>
  
 
; Usage
 
; Usage
Line 44: Line 44:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 006720 is the ID portion of https://www.pga.org.au/tourns/pga-tour/profiles/player?id=006720&tour=pga.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 006720 is the ID portion of https://pga.org.au/player-profile/?player=006720&tour=pga.",
 
       "type": "number",
 
       "type": "number",
 
       "required": true
 
       "required": true

Revision as of 15:55, 9 February 2020

Template:AustralasiaTour player displays an external link to a golfer's profile at pga.org.au, the official PGA Tour of Australasia website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{AustralasiaTour player | ID }}
{{AustralasiaTour player | ID | NAME }}
Named parameters
{{AustralasiaTour player | id= ID }}
{{AustralasiaTour player | id= ID | name= NAME }}

Examples

Unnamed parameters

URL
https://pga.org.au/player-profile/?player=006720&tour=pga
Usage
* {{AustralasiaTour player | 006720 | Adam Scott }}
Output

Named parameters

URL
https://pga.org.au/player-profile/?player=006216&tour=pga
Usage
* {{AustralasiaTour player | id= 006216 | name= Geoff Ogilvy }}
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 AustralasiaTour player

This template displays an external link to a golfer's profile at pga.org.au, the official PGA Tour of Australasia 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: 006720 is the ID portion of https://pga.org.au/player-profile/?player=006720&tour=pga.

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