close
Sayahna Sayahna
Search

Template:Sports-reference/doc


Template:Sports-reference displays an external link to a Sports Reference web page for an Olympic Games athlete.

Usage

Unnamed parameters:

  • {{Sports-reference|ID|NAME}}
  • {{Sports-reference|ID}}

Named parameters:

  • {{Sports-reference|id=ID|name=NAME}}
  • {{Sports-reference|id=ID}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Sports-reference

<templatedata>{ "description": "This template displays an external link to a Sports Reference web page for an Olympic Games athlete.", "params": {

 "1": {
   "label": "ID",
   "aliases": ["id"], 
   "description": "ID portion of the URL for an athlete's Sports Reference web page. Example: ab/jeremy-abbott-2 is the ID portion of http://www.sports-reference/olympics/athletes/ab/jeremy-abbott-2.html",
   "type": "string",
   "default": "",
   "required": true
 },
 "2": {
   "label": "Name",
   "aliases": ["name"], 
   "description": "Name of athlete. If not given it defaults to the Wikipedia article name, without any disambiguation such as (athlete).",
   "type": "string",
   "default": "Sports-reference/doc",
   "required": false
 }

}}</templatedata>

Examples

Unnamed parameters

Usage:

  • {{Sports-reference | da/gunn-rita-dahle-flesja-1 | Gunn-Rita Dahle Flesjå }}

Output:

URL:

Named parameters

Usage:

  • {{Sports-reference |id= ab/jeremy-abbott-2 |name= Jeremy Abbott }}

Output:

URL:

See also