Template:Sports-reference/doc
40px | This is a documentation subpage for Template:Sports-reference. It contains usage information, categories and other content that is not part of the original template page. |
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
{{Cite sports-reference}}
, for links used in a reference{{USOC profile}}
, which uses a similar format