Difference between revisions of "Template:ALPGTour player"

From blackwiki
Jump to navigation Jump to search
blackwiki>Tewapack
m
blackwiki>Zyxw
(Trim any leading spaces in parameter 1 that would break URL. Add fix for empty name parameter. Move category to /doc.)
Line 1: Line 1:
[http://alpg.com.au/player.php?id={{{1|{{{id}}}}}} {{{2|{{{name|{{PAGENAMEBASE}}}}}}}}] at the [[ALPG Tour]] official site<noinclude>
+
[http://alpg.com.au/player.php?id={{Trim|{{{1|{{{id}}}}}}}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[ALPG 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 11:23, 5 November 2018

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

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

Template:Wikidata property

Template:ALPGTour player displays an external link to a golfer's profile at alpg.com.au, the official ALPG Tour website. It is intended for use in the external links section of an article.

Usage

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

Examples

Unnamed parameters

URL
http://alpg.com.au/player.php?id=2157
Usage
* {{ALPGTour player | 2157 | Cathryn Bristow }}
Output

Named parameters

URL
http://alpg.com.au/player.php?id=2295
Usage
* {{ALPGTour player | id= 2295 | name= Karrie Webb }}
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 ALPGTour player

This template displays an external link to a golfer's profile at alpg.com.au, the official ALPG 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: 2157 is the ID portion of http://alpg.com.au/player.php?id=2157.

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