Difference between revisions of "Template:AustralasiaTour player/doc"
imported>Nigej (update per new url style) |
imported>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|Australasia Tour player}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a golfer's profile at [http://www.pga.org.au/ pga.org.au], the official [[PGA Tour of Australasia]] 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 [http://www.pga.org.au/ pga.org.au], the official [[PGA Tour of Australasia]] 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 === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 006720 | Adam Scott }}</code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | 006720 | Adam Scott }} | ||
| + | |||
; URL | ; URL | ||
: <kbd>[https://pga.org.au/player-profile/?player=006720&tour=pga https://pga.org.au/player-profile/?player={{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> | ||
| + | === Named parameters === | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 006216 | name= Geoff Ogilvy }}</code> |
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | | + | :* {{{{BASEPAGENAME}} | id= 006216 | name= Geoff Ogilvy }} |
| − | |||
; URL | ; URL | ||
: <kbd>[https://pga.org.au/player-profile/?player=006216&tour=pga https://pga.org.au/player-profile/?player={{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> | ||
| + | === No parameters === | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
; Output | ; Output | ||
| − | :* {{{{BASEPAGENAME}} | + | :* {{ {{BASEPAGENAME}} }} |
== TemplateData == | == TemplateData == | ||
Revision as of 07:09, 25 September 2020
| File:Edit-copy green.svg | This is a documentation subpage for Template:AustralasiaTour player. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
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
- Usage
* {{AustralasiaTour player | 006720 | Adam Scott }}
- Output
-
- Adam Scott at the PGA Tour of Australasia official site
Named parameters
- Usage
* {{AustralasiaTour player | id= 006216 | name= Geoff Ogilvy }}
- Output
-
- Geoff Ogilvy at the PGA Tour of Australasia official site
No parameters
- Usage
* {{AustralasiaTour player}}
- Output
-
- {{AustralasiaTour player}} template missing ID.
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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. | 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 |