Template:Olympics.com profile

{{{name}}} at Olympics.com

Documentation icon Template documentation[view] [edit] [history] [purge]

Template:Olympics.com profile displays an external link to an athlete's profile at Olympics.com, an official website of the International Olympic Committee. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{Olympics.com profile | ID }}
{{Olympics.com profile | ID | NAME }}
Named parameters
{{Olympics.com profile | id= ID }}
{{Olympics.com profile | id= ID | name= NAME }}
{{Olympics.com profile | id= ID | name= NAME | org_id= ID }}
Using Wikidata property (P5815)
{{Olympics.com profile}}
{{Olympics.com profile | name= NAME }}

Examples

ID in template (same as Olympic.org ID)

Usage in the article Katie Ledecky, with Olympics.com link
* {{Olympics.com profile | katie-ledecky }}
adding archived OlympicChannel.com link via |oc_archive=
* {{Olympics.com profile | katie-ledecky | oc_archive= 20201201091535 }}
adding archived Olympic.org link via |org_archive=
* {{Olympics.com profile | katie-ledecky | org_archive= 20201204052403 }}
adding both archived links
* {{Olympics.com profile | katie-ledecky | oc_archive= 20201201091535 | org_archive= 20201204052403 }}
URLs
https://olympics.com/en/athletes/katie-ledecky
https://web.archive.org/web/20201201091535/https://www.olympicchannel.com/en/athletes/detail/katie-ledecky/
https://web.archive.org/web/20201204052403/https://www.olympic.org/katie-ledecky

ID in template (different from Olympic.org ID)

Usage in the article Michael Phelps, with Olympics.com link
{{Olympics.com|michael-phelps-ii}}
adding archived OlympicChannel.com link via |oc_archive=
{{Olympics.com|michael-phelps-ii|oc_archive=20210227131142}}
adding archived Olympic.org link via |org_archive= and |org_id=
{{Olympics.com|michael-phelps-ii|org_archive=20210422191931|org_id=michael-phelps}}
adding both archived links
{{Olympics.com|michael-phelps-ii|oc_archive=20210227131142|org_archive=20210422191931|org_id=michael-phelps}}
URLs
https://olympics.com/en/athletes/michael-phelps-ii
https://web.archive.org/web/20210227131142/https://www.olympicchannel.com/en/athletes/detail/michael-phelps-ii/
https://web.archive.org/web/20210422191931/https://www.olympic.org/michael-phelps

ID in Wikidata

Usage in the article Patrick Stevens, with Olympics.com link via (P5815)
* {{Olympics.com profile}}
adding archived OlympicChannel.com link via (P5815) and |oc_archive=
* {{Olympics.com profile | oc_archive= 20191213060304 }}
adding archived Olympic.org link via (P3171) and |org_archive=
* {{Olympics.com profile | org_archive= 20190811030059 }}
adding both archived links
* {{Olympics.com profile | oc_archive= 20191213060304 | org_archive= 20190811030059 }}
URLs
https://olympics.com/en/athletes/patrick-stevens-1
https://web.archive.org/web/20191213060304/https://www.olympicchannel.com/en/athletes/detail/patrick-stevens-1/
https://web.archive.org/web/20190811030059/https://www.olympic.org/patrick-stevens

No ID in template or Wikidata

Usage
* {{Olympics.com profile}}
Output

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Olympics.com profile

<templatedata> {

 "description": "This template displays an external link to an athlete's profile at Olympics.com, an official website of the International Olympic Committee. It is intended for use in the external links section of an article.",
 "params": {
   "id": {
     "label": "id",
     "aliases": ["1"], 
     "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the Olympics.com URL. Example: michael-phelps-ii is the ID portion of current URL https://olympics.com/en/athletes/michael-phelps-ii (and former URL https://www.olympicchannel.com/en/athletes/detail/michael-phelps-ii/). This parameter is optional if Wikidata property P5815 exists, but required if not.",
     "type": "string",
     "required": false,
     "default": "Wikidata property P5815"
   },
   "name": {
     "label": "name",
     "aliases": ["2"], 
     "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify 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 \"(athlete)\".",
     "type": "string",
     "required": false,
     "default": "Olympics.com profile"
   },
   "org_id": {
     "label": "org_id",
     "description": "The \"org_id\" parameter should contain the ID portion of the former Olympic.org URL, but ONLY when it is different from the value assigned to the \"id\" parameter. Example: michael-phelps is the ID portion of https://www.olympic.org/michael-phelps. This parameter is optional if Wikidata property P3171 exists, but required if not.",
     "type": "string",
     "required": false,
     "default": "Wikidata property P3171"
   }
 },
 "paramOrder": [
   "id",
   "name",
   "org_id"
 ]

} </templatedata>

Tracking categories

Related pages

Other websites