Template:WSA/doc
![]() | This is a documentation subpage for Template:WSA. It may contain usage information, categories and other content that is not part of the original template page. |
Template:WSA displays an external link to a squash player's page from the Women's Squash Association (WSA), the governing body for the women's professional squash circuit between 2011 and 2014. The website is no longer available, so the template links to an archived copy at the Internet Archive: Wayback Machine.
Usage
[edit]Unnamed parameters:
{{WSA | ID }}
{{WSA | ID | NAME }}
{{WSA | ID | NAME | archive= NUMBER }}
Named parameters:
{{WSA | id= ID }}
{{WSA | id= ID | name= NAME }}
{{WSA | id= ID | name= NAME | archive= NUMBER }}
Examples
[edit]How to spot the parameter "id"
[edit]Consider the example for Nicol David. The URL for her profile is:
http://wsaworldtour.com/players/nicol-david
In this URL, nicol-david serves as the id. So the syntax for the template would be:
* {{WSA | nicol-david | Nicol David }}
This displays as:
- Nicol David at WSA (archived)
The archived URL in the template is:
Using the "archive" pararmeter
[edit]For Tesni Evans, the URL for her profile is:
http://wsaworldtour.com/players/tesni-evans
In this URL, tesni-evans serves as the id:
* {{WSA | id= tesni-evans | name= Tesni Evans }}
- Tesni Evans at WSA (archived)
https://web.archive.org/web/20150601000000/http://wsaworldtour.com/players/tesni-evans
The example above does not generate a valid archived link, so use the "archive" parameter:
* {{WSA | id= tesni-evans | name= Tesni Evans | archive= 20140808212848 }}
- Tesni Evans at WSA (archived)
https://web.archive.org/web/20140808212848/http://wsaworldtour.com/players/tesni-evans
No ID in template
[edit]Usage:
* {{WSA}}
Output:
- {{WSA}} template missing ID.
TemplateData
[edit]TemplateData for WSA
This template displays an external link to a squash player's page from the Women's Squash Association (WSA), the governing body for the women's professional squash circuit between 2011 and 2014. The website is no longer available, so the template links to an archived copy at the Internet Archive: Wayback Machine.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as nicol-david in http://wsaworldtour.com/players/nicol-david. | String | required |
Name | name 2 | 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 "(squash player)".
| String | optional |
Internet Archive date/time | archive | A number indicating the date and time of an archive at the Internet Archive website, such as 20140808212848 in https://web.archive.org/web/20140808212848/http://wsaworldtour.com/players/tesni-evans, which is an archive of http://wsaworldtour.com/players/tesni-evans created on 2014-08-08 21:28:48. | Number | optional |
See also
[edit]