Template:USOPC profile/doc

It is intended for use in the external links section of an article.

Usage

 * Named parameters (current URL)


 * Named parameters (former URL)


 * Unnamed parameters (former URL)


 * Using Wikidata property (former URL)

Current URL

 * URL
 * https://www.teamusa.com/profiles/john-shuster-810650
 * https://www.teamusa.com/profiles/rachael-adams


 * Usage


 * Output

Former URL without sport (archived)

 * URLs
 * https://web.archive.org/web/20230627000000/https://www.teamusa.org/Athletes/SH/John-Shuster
 * https://web.archive.org/web/20220823094018/https://www.teamusa.org/athletes/sh/john-shuster


 * Usage


 * Output

Former URL with sport (archived)

 * URLs
 * https://web.archive.org/web/20230627000000/https://www.teamusa.org/USA-Curling/Athletes/John-Shuster
 * https://web.archive.org/web/20230531172001/https://www.teamusa.org/usa-curling/athletes/john-shuster


 * Usage


 * Output

Current and Former URLs

 * Usage


 * Output

No parameters and Wikidata property not defined

 * Usage


 * Output

TemplateData
{       "description": "This template displays an external link to an athlete's profile at TeamUSA.org, the official website of the United States Olympic & Paralympic Committee (USOPC). It is intended for use in the external links section of an article.", "params": { "new_id": { "label": "Current ID for athlete", "description": "The portion of the current URL which follows /profiles/, such as john-shuster-810650 in https://www.teamusa.com/profiles/john-shuster-810650 or rachael-adams in https://www.teamusa.com/profiles/rachael-adams. This parameter is optional if the \"id\" parameter (or unnamed parameter \"1\") is used or if Wikidata property P2593 exists.", "example": "john-shuster-810650", "type": "string", "required": false },               "id": { "label": "Former ID for athlete", "aliases": ["1","old_id"], "description": "The portion of the former URL which follows /Athletes/, such as SH/John-Shuster in https://www.teamusa.org/Athletes/SH/John-Shuster or John-Shuster in https://www.teamusa.org/USA-Curling/Athletes/John-Shuster. This parameter is optional if the \"new_id\" parameter is used or Wikidata property P2593 exists, but required if not.", "default": "Wikidata property P2593", "example": "SH/John-Shuster", "type": "string", "required": false },               "name": { "label": "Name", "aliases": ["2"], "description": "The name of the athlete. If not given, it defaults to the Wikipedia article name without any disambiguation such as (athlete).", "default": "", "example": "John Shuster", "type": "string", "required": false },               "sport": { "label": "Former ID for sport", "aliases": ["3"], "description": "The portion of the former URL containing the sport name, such as USA-Curling in https://www.teamusa.org/USA-Curling/Athletes/John-Shuster.", "example": "USA-Curling", "type": "string", "required": false },               "archive": { "label": "Archive", "description": "Number representing the date/time in an Internet Archive URL, such as 20220823094018 in https://web.archive.org/web/20220823094018/https://www.teamusa.org/Athletes/SH/John-Shuster.", "default": "20230627000000", "example": "20220823094018", "type": "number", "required": false }       },        "paramOrder": [ "new_id", "id", "name", "sport", "archive" ] }

Tracking categories

 * tracking former ID in Wikidata property
 * – case insensitive, so SH/John-Shuster matches sh/john-shuster
 * tracking usage of parameters associated with former ID in template
 * tracking usage of parameters associated with former ID in template
 * tracking usage of parameters associated with former ID in template