Jump to content

Template:USA Swimming/doc

From Wikipedia, the free encyclopedia

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
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
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

TemplateData

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

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.

Template parameters

ParameterDescriptionTypeStatus
ID for new URLnew_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.

Stringrequired
ID for old URLold_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.

Stringoptional
Namename

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)".

Default
{{PAGENAMEBASE}}
Stringoptional
Internet Archive date/timearchive

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.

Numberoptional

Tracking categories

[edit]

See also

[edit]
[edit]