Jump to content

Template:Tennis Hall of Fame/doc

From Wikipedia, the free encyclopedia

Template:Tennis Hall of Fame displays an external link to a tennis player's profile at TennisFame.com, the official website of the International Tennis Hall of Fame. It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{Tennis Hall of Fame | ID }}
{{Tennis Hall of Fame | ID | NAME }}

Named parameters:

{{Tennis Hall of Fame | id= ID }}
{{Tennis Hall of Fame | id= ID | name= NAME }}

Using Wikidata property P3363:

{{Tennis Hall of Fame}}
{{Tennis Hall of Fame | name= NAME }}

Examples

[edit]

ID in template

[edit]

Usage in the article Arthur Ashe, with article name as link text:

* {{Tennis Hall of Fame | arthur-ashe }}
* {{Tennis Hall of Fame | id= arthur-ashe }}

Usage with name parameter as link text:

* {{Tennis Hall of Fame | arthur-ashe | Arthur Ashe }}
* {{Tennis Hall of Fame | id= arthur-ashe | name= Arthur Ashe }}

Output:

URLs:

https://www.tennisfame.com/hall-of-famers/inductees/arthur-ashe
https://www.tennisfame.com/hall-of-famers/arthur-ashe (former URL, archived 2015-04-05)

ID in Wikidata

[edit]

Usage in the article Margaret Court:

* {{Tennis Hall of Fame}}
* {{Tennis Hall of Fame | name= Margaret Court }}

Output:

URLs:

https://www.tennisfame.com/hall-of-famers/inductees/margaret-smith-court
https://www.tennisfame.com/hall-of-famers/margaret-smith-court (former URL, archived 2015-04-05)

No ID in template or Wikidata

[edit]

Usage:

* {{Tennis Hall of Fame}}

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 Hall of Fame in articles based on its TemplateData.

TemplateData for Tennis Hall of Fame

This template displays an external link to a tennis player's profile at TennisFame.com, the official website of the International Tennis Hall of Fame. 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: arthur-ashe is the ID in http://www.tennisfame.com/hall-of-famers/inductees/arthur-ashe.

Default
Wikidata property P3363
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 tennis 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]