Jump to content

Template:PSA/doc

From Wikipedia, the free encyclopedia

Template:PSA displays an external link to a squash player's page at psaworldtour.com, the official website of the Professional Squash Association (the governing body for the men's and women's professional squash circuit). This template is intended for use in the external links section of an article.

Usage

[edit]
New ID in template
{{PSA | new_id= NEW ID }}
{{PSA | new_id= NEW ID | name= NAME }}
Both IDs in template
{{PSA | new_id= NEW ID | old_id= ID }}
{{PSA | new_id= NEW ID | name= NAME | old_id= OLD ID }}
{{PSA | new_id= NEW ID | name= NAME | old_id= OLD ID | archive= NUMBER }}
{{PSA | new_id= NEW ID | name= NAME | old_id= OLD ID | archive= NUMBER | archive2= NUMBER }}
Old ID in template
{{PSA | old_id= OLD ID }}
{{PSA | old_id= OLD ID | name= NAME }}
{{PSA | old_id= OLD ID | name= NAME | archive= NUMBER }}
Old ID using Wikidata property PSA World Tour player ID number (archived) (P3476)
{{PSA}}
{{PSA | name= NAME }}
{{PSA | name= NAME | archive= NUMBER }}

Examples

[edit]

New ID in template

[edit]
Usage
* {{PSA | new_id= camille-serme | name= Camille Serme }}
Output
New URL
https://www.psaworldtour.com/view-player/player/camille-serme/

Old ID in template

[edit]
Usage
* {{PSA | 7866 | Camille Serme }}
* {{PSA | id= 7866 | name= Camille Serme | archive= 20220123183724 }}
* {{PSA | old_id= 7866 | name= Camille Serme | archive= 20220123183724 }}
Output
Old URLs
https://psaworldtour.com/players/view/7866 (archived 2022-01-23)
https://psaworldtour.com/players/view/7866/camille-serme (archived 2021-07-31)

Both IDs in template

[edit]
Usage
* {{PSA |new_id= nick-matthew |name= Nick Matthew |old_id= 309 }}
* {{PSA |new_id= nick-matthew |name= Nick Matthew |old_id= 309 |archive= 20210927075827 }}
* {{PSA |new_id= nick-matthew |name= Nick Matthew |old_id= 309 |archive= 20210927075827 |archive2= 20130820234522 }}
Output
New URL
https://www.psaworldtour.com/view-player/player/nick-matthew/
Old URLs
https://psaworldtour.com/players/view/309 (archived 2021-09-27)
https://psaworldtour.com/players/view/309/nick-matthew (archived 2022-05-23)
http://www.psaworldtour.com/page/PlayerProfile/0,,13121~309,00.html (archived 2013-08-20)

Old ID in Wikidata

[edit]
Usage in the article Nick Matthew
* {{PSA}}
* {{PSA | name= Nick Matthew }}
Output

No ID in template or Wikidata

[edit]
Usage
* {{PSA}}
Output
  • {{PSA}} 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:PSA in articles based on its TemplateData.

TemplateData for PSA

This template displays an external link to a squash player's page at psaworldtour.com, the official website of the Professional Squash Association (the governing body for the men's and women's professional squash circuit). This template is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
New IDnew_id

The player ID in the new URL, such as camille-serme in https://www.psaworldtour.com/view-player/player/camille-serme/.

Example
|new_id=camille-serme
Stringoptional
Old IDold_id 1 id

The player ID number in the old URL, such as 7866 in https://psaworldtour.com/players/view/7866 or https://psaworldtour.com/players/view/7866/camille-serme or http://www.psaworldtour.com/page/PlayerProfile/0,,13121~309,00.html. This parameter is optional if Wikidata property P3476 exists, but required if not.

Default
Wikidata property P3476
Example
|old_id=7866
Numberoptional
Namename 2

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
Archive Date/Timearchive

A number representing the date/time in an Internet Archive URL, such as 20220123183724 in https://web.archive.org/web/20220123183724/https://psaworldtour.com/players/view/7866.

Example
|archive=20220123183724
Numberoptional
Archive Date/Time 2archive2

A number representing the date/time in an Internet Archive URL, such as 20130820234522 in https://web.archive.org/web/20130820234522/http://www.psaworldtour.com/page/PlayerProfile/0,,13121~309,00.html.

Example
|archive2=20130820234522
Numberoptional

Historical URLs

[edit]

Until 2011, the player profile URL was:

http://www.psa-squash.com/entry/ranking.php?player=T00237 (archive)
where T00237 was the player's identifier ("id") in the URL for the player's profile

From 2011 through 2014, the player profile URL was:

http://www.psaworldtour.com/page/PlayerProfile/0,,13121~271,00.html (archive)
where 271,00 was the player's identifier ("id") in the URL for the player's profile

Tracking categories

[edit]
template with ID
template missing ID

See also

[edit]
[edit]