Template:Tennis Archives/doc
This is a documentation subpage for Template:Tennis Archives. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Tennis Archives displays an external link to a tennis player's page at the Tennis Archives website (TennisArchives.com). It is intended for use in the external links section of an article.
Usage
[edit]Unnamed parameters:
{{Tennis Archives | ID }}
{{Tennis Archives | ID | NAME }}
Named parameters:
{{Tennis Archives | id= ID }}
{{Tennis Archives | id= ID | name= NAME }}
Using Wikidata property Tennis Archives player ID (P3670):
{{Tennis Archives}}
{{Tennis Archives | name= NAME }}
Examples
[edit]Unnamed parameters
[edit]Usage:
* {{Tennis Archives | 2764 | Patrick Dennis Benham (Pat) Spence }}
Output:
- Patrick Dennis Benham (Pat) Spence at the Tennis Archives
URL:
Named parameters
[edit]Usage:
* {{Tennis Archives | id= 12 | name= Algernon Robert Fitzhardinge (Algie) Kingscote }}
Output:
- Algernon Robert Fitzhardinge (Algie) Kingscote at the Tennis Archives
URL:
No ID in template or Wikidata
[edit]- Usage
* {{Tennis Archives}}
- Output
-
- {{Tennis Archives}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Tennis Archives
This template displays an external link to a tennis player's page at the Tennis Archives website (TennisArchives.com). 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. Examples: 2764 is the ID portion of http://www.tennisarchives.com/player.php?playerid=2764. This parameter is optional if Wikidata property P3670 exists, but required if not.
| Number | optional |
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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(tennis)".
| String | optional |