Difference between revisions of "Template:AustralasiaTour player"

From blackwiki
Jump to navigation Jump to search
imported>Nigej
(change url style to https://pga.org.au/player-profile/?player=nnnnnn)
imported>Zyxw
(display error message if no ID in template)
Line 1: Line 1:
[https://pga.org.au/player-profile/?player={{Trim|{{{1|{{{id}}}}}}}}&tour=pga {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[PGA Tour of Australasia]] official site<noinclude>
+
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}}
 +
 
 +
| [https://pga.org.au/player-profile/?player={{Trim|{{{1|{{{id}}}}}}}}&tour=pga {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[PGA Tour of Australasia]] official site
 +
 
 +
| <span class="error">&#123;&#123;[[Template:AustralasiaTour player|AustralasiaTour player]]&#125;&#125; 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 07:02, 25 September 2020

{{{name}}} at the PGA Tour of Australasia official site

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

Template:Template redirect

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

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

Named parameters

Usage
* {{AustralasiaTour player | id= 006216 | name= Geoff Ogilvy }}
Output
URL
https://pga.org.au/player-profile/?player=006216

No parameters

Usage
* {{AustralasiaTour 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 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.

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