Jump to content

Template:Tennis Australia/doc

From Wikipedia, the free encyclopedia

Template:Tennis Australia displays an external link to a player's page at Tennis Australia, the governing body for the sport of tennis in Australia. It is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters
{{Tennis Australia | ID }}
{{Tennis Australia | ID | NAME }}
Named parameters
{{Tennis Australia | id= ID }}
{{Tennis Australia | id= ID | name= NAME }}
Using Wikidata property Tennis Australia player ID (P3698)
{{Tennis Australia}}
{{Tennis Australia | name= NAME }}

Examples[edit]

Unnamed parameters[edit]

URL
https://www.tennis.com.au/player-profiles/ashleigh-barty
Usage
* {{Tennis Australia | ashleigh-barty | Ashleigh Barty }}
Output

Named parameters[edit]

URL
https://www.tennis.com.au/player-profiles/alex-de-minaur
Usage
* {{Tennis Australia | id= alex-de-minaur | name= Alex de Minaur }}
Output

No parameters and Wikidata property not defined[edit]

Usage
* {{Tennis Australia}}
Output

TemplateData[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Tennis Australia in articles based on its TemplateData.

TemplateData for Tennis Australia

This template displays an external link to a player's page at Tennis Australia, the governing body for the sport of tennis in Australia. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter should contain the ID portion of the URL. Example: ashleigh-barty is the ID portion of https://www.tennis.com.au/player-profiles/ashleigh-barty. This parameter is optional if Wikidata property P3698 exists, but required if not.

Default
Wikidata property P3698
Stringoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".

Default
{{PAGENAMEBASE}}
Stringoptional

Templates and modules used[edit]

See also[edit]

External links[edit]