Jump to content

Template:Squash Info/doc

From Wikipedia, the free encyclopedia

Template:Squash Info displays an external link to a squash player's page at the Squash Info website. It is intended for use in the external links section of an article.

Usage

[edit]

Unnamed parameters:

{{Squash Info | ID }}
{{Squash Info | ID | NAME }}

Named parameters:

{{Squash Info | id= ID }}
{{Squash Info | id= ID | name= NAME }}

Using Wikidata property Squash Info player ID (P3286):

{{Squash Info }}
{{Squash Info | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]

URLs:

http://www.squashinfo.com/player-1348
http://www.squashinfo.com/players/1348
http://www.squashinfo.com/players/1348-camille-serme

Usage:

* {{Squash Info | 1348 | Camille Serme }}

Output:

Named parameters

[edit]

URLs:

http://www.squashinfo.com/player-8
http://www.squashinfo.com/players/8
http://www.squashinfo.com/players/8-nick-matthew

Usage:

* {{Squash Info |id= 8 |name= Nick Matthew }}

Output:

No ID in template or Wikidata

[edit]

Usage:

* {{Squash Info}}

Output:

  • {{Squash Info}} template missing ID and not present in Wikidata.

TemplateData

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

TemplateData for Squash Info

This template displays an external link to a squash player's page at the Squash Info 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: 1348 is the ID portion of http://www.squashinfo.com/players/1348-camille-serme. This parameter is optional if Wikidata property P3286 exists, but required if not.

Default
Wikidata property P3286
Example
|id=7866
Numberoptional
namename 2

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

Default
{{PAGENAMEBASE}}
Example
|name=Camille Serme
Stringoptional

See also

[edit]