Template:PSA/doc
![]() | This is a documentation subpage for Template:PSA. It may contain usage information, categories and other content that is not part of the original template page. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
![]() | This template uses Lua: |
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
-
- Camille Serme at PSA
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
-
- Camille Serme at PSA (archived)
- Camille Serme at PSA (archived)
- Camille Serme at PSA (archived)
- 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
-
- Nick Matthew at PSA (archive)
- Nick Matthew at PSA (archive)
- Nick Matthew at PSA (archive) (archive 2)
- 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
-
- Nick Matthew at PSA (archived)
- Nick Matthew at PSA (archived)
No ID in template or Wikidata
[edit]- Usage
* {{PSA}}
- Output
-
- {{PSA}} template missing ID and not present in Wikidata.
TemplateData
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
New ID | new_id | The player ID in the new URL, such as camille-serme in https://www.psaworldtour.com/view-player/player/camille-serme/.
| String | optional |
Old ID | old_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.
| Number | optional |
Name | name 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)".
| String | optional |
Archive Date/Time | archive | 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.
| Number | optional |
Archive Date/Time 2 | archive2 | 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.
| Number | optional |
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
- Category:PSA template with ID different from Wikidata (21)
- Category:PSA template with ID not in Wikidata (0)
- template missing ID
See also
[edit]- {{Squash Info}}
- {{WSA}}
- {{WISPA}}
External links
[edit]