Template:USA Swimming/doc
![]() | This is a documentation subpage for Template:USA Swimming. It may contain usage information, categories and other content that is not part of the original template page. |
Template:USA Swimming displays an external link to a swimmer's profile from USA Swimming, the national sport governing body for competitive swimming in the United States. It is intended for use in the external links section of an article.
Usage
[edit]- New ID with default archive
{{USA Swimming | new_id= New ID }}
{{USA Swimming | new_id= New ID | name= Name }}
- New ID with archive parameter
{{USA Swimming | new_id= New ID | archive= Number }}
{{USA Swimming | new_id= New ID | archive= Number | name= Name }}
- Old ID with default archive
{{USA Swimming | old_id= Old ID }}
{{USA Swimming | old_id= Old ID | name= Name }}
- Old ID with archive parameter
{{USA Swimming | old_id= Old ID | archive= Number }}
{{USA Swimming | old_id= Old ID | archive= Number | name= Name }}
Examples
[edit]New ID
[edit]In article Kathleen Baker:
- Usage
* {{USA Swimming |new_id= kathleen-baker }}
* {{USA Swimming |new_id= kathleen-baker | archive= 20211021215815 }}
- Output
-
- Kathleen Baker at USA Swimming (archived)
- Kathleen Baker at USA Swimming (archived October 21, 2021)
- URLs
- https://web.archive.org/web/1/https://www.usaswimming.org/meet-the-team/national-team/bio/kathleen-baker
- https://web.archive.org/web/20211021215815/https://www.usaswimming.org/meet-the-team/national-team/bio/kathleen-baker
Old ID
[edit]In article Michael Phelps:
- Usage
* {{USA Swimming |old_id= 4beec290-d7ae-483d-a512-36b18a4e022a }}
* {{USA Swimming |old_id= 4beec290-d7ae-483d-a512-36b18a4e022a |archive= 20200619113347 }}
- Output
-
- Michael Phelps at USA Swimming (archived)
- Michael Phelps at USA Swimming (archived June 19, 2020)
- URLs
- https://web.archive.org/web/1/https://www.usaswimming.org/meet-the-team/national-team-bios?personid=
4beec290-d7ae-483d-a512-36b18a4e022a - https://web.archive.org/web/20200619113347/https://www.usaswimming.org/meet-the-team/national-team-bios?personid=
4beec290-d7ae-483d-a512-36b18a4e022a
No ID in template
[edit]- Usage
* {{USA Swimming}}
- Output
-
- {{USA Swimming}} template missing ID.
TemplateData
[edit]TemplateData for USA Swimming
This template displays an external link to a swimmer's profile from USA Swimming, the national sport governing body for competitive swimming in the United States. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID for new URL | new_id | The ID portion of the new URL at usaswimming.org, such as kathleen-baker in https://www.usaswimming.org/meet-the-team/national-team/bio/kathleen-baker. This is required unless the "old_id" is used instead. | String | required |
ID for old URL | old_id | The ID portion of the old URL at usaswimming.org, such as 4beec290-d7ae-483d-a512-36b18a4e022a in https://www.usaswimming.org/meet-the-team/national-team-bios?personid=4beec290-d7ae-483d-a512-36b18a4e022a. This is required if the "new_id" parameter is not used. | String | optional |
Name | name | The link text, which should be the name of the swimmer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(swimmer)".
| String | optional |
Internet Archive date/time | archive | The date and time of an archive at the Internet Archive website. Example: 20200619113347 in https://web.archive.org/web/20200619113347/https://www.usaswimming.org/meet-the-team/national-team-bios?personid=4beec290-d7ae-483d-a512-36b18a4e022a, which is an archive of https://www.usaswimming.org/meet-the-team/national-team-bios?personid=4beec290-d7ae-483d-a512-36b18a4e022a created on 2020-06-19 11:33:47. | Number | optional |
Tracking categories
[edit]See also
[edit]- {{USOPC}} for links to profiles from the United States Olympic & Paralympic Committee
- {{World Aquatics}} for links to profiles from World Aquatics (formerly FINA)
External links
[edit]