Template:ATP Tournament
{{{name}}} at the Association of Tennis Professionals
![]() | This template uses Lua: |
Template:ATP Tournament displays an external link to a tennis tournament page at ATPtour.com, the official website of the Association of Tennis Professionals (ATP). It is intended for use in the external links section of an article.
Usage
[edit]Omit the ID to use the Wikidata property.
- Article name as link text
{{ATP Tournament | ID }}
{{ATP Tournament | id= ID }}
- Parameter as link text
{{ATP Tournament | ID | NAME }}
{{ATP Tournament | id= ID | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{ATP Tournament | 615 | World Team Cup }}
- Output
- URL in template
- https://www.atptour.com/en/tournaments/-/615/overview
Named parameters
[edit]- Usage
* {{ATP Tournament | id= 301 | name= ASB Classic }}
- Output
- URL in template
- https://www.atptour.com/en/tournaments/-/301/overview
- URL at website
- https://www.atptour.com/en/tournaments/auckland/301/overview
No parameters and Wikidata property not defined
[edit]- Usage
* {{ATP Tournament}}
- Output
-
- {{ATP Tournament}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for ATP Tournament
This template displays an external link to a tennis tournament page at ATPtour.com, the official website of the Association of Tennis Professionals (ATP). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID number in the URL, such as 615 in https://www.atptour.com/en/tournaments/world-team-cup/615/overview. This parameter is optional if Wikidata property P3456 exists, but required if not.
| Number | optional |
Name | name 2 | The link text, which should be the name of the tournament. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".
| String | optional |