This template is used on approximately 6,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:Sports reference displays an external link to an Olympic athlete's profile at Olympics at Sports-Reference.com, also known as SR/Olympics. It is intended for use in the external links section of an article.
The link is archived since the Sports Reference Olympic site closed on 14 May 2020. The
web archive defaults to
Memento Project which searches multiple sites to find an archived link. The archive date defaults to 4 December 2016 because pages after that display incorrect output for
extended characters. A specific archive at the
Wayback Machine may be specified via the |archive=
parameter.
The basic way to use the template is to insert this:
* {{Sports reference}}
If this results in an error, that means the article's Wikidata item does not have the property Sports-Reference.com Olympic athlete ID (archived) (P1447). To resolve this, either add the "id" in Wikidata or use the optional "id" parameter in the template. For example, da/bjorn-daehlie-1 is the "id" portion of the URL https://www.sports-reference.com/olympics/athletes/da/bjorn-daehlie-1.html.
* {{Sports reference|ID}}
* {{Sports reference|id=ID}}
The link text defaults to the Wikipedia article name, without any disambiguation such as "(athlete)". The default text can be changed via the optional "name" parameter. This may be useful when adding the template more than once (to differentiate the links) or when the article name is different than the athlete's name at Sports-Reference.com.
* {{Sports reference|ID|NAME}}
* {{Sports reference|id=ID|name=NAME}}
* {{Sports reference | ab/jeremy-abbott-2 }}
* {{Sports reference | id= ab/jeremy-abbott-2 | archive= 20161202194710 }}
* {{Sports reference | ab/jeremy-abbott-2 | Jeremy Abbott }}
* {{Sports reference | id= ab/jeremy-abbott-2 | name= Jeremy Abbott | archive= 20161202194710 }}
* {{Sports reference}}
* {{Sports reference | name= Bjørn Dæhlie }}
* {{Sports reference}}
www.sports-reference.com/olympics/athletes/
and .html
, so for https://www.sports-reference.com/olympics/athletes/be/livio-berruti-1.html
, the ID is be/livio-berruti-1
.be/livio-berruti-1
in the example above) and press enter?action=purge
at the end of the URL), the link should work properly.TemplateData for Sports reference
This template displays an external link to an Olympic athlete's profile at Olympics at Sports-Reference.com, also known as SR/Olympics. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the URL, such as ab/jeremy-abbott-2 in https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html This parameter is optional if Wikidata property P1447 exists, but required if not.
| String | optional |
name | name 2 | 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)".
| String | optional |
archive | archive | A number representing the date/time in an Internet Archive URL, such as 20161202194710 in https://web.archive.org/web/20161202194710/https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html, which is a archive of https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html on 2016-12-02 19:47:10. | Number | optional |
This template is used on approximately 6,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:Sports reference displays an external link to an Olympic athlete's profile at Olympics at Sports-Reference.com, also known as SR/Olympics. It is intended for use in the external links section of an article.
The link is archived since the Sports Reference Olympic site closed on 14 May 2020. The
web archive defaults to
Memento Project which searches multiple sites to find an archived link. The archive date defaults to 4 December 2016 because pages after that display incorrect output for
extended characters. A specific archive at the
Wayback Machine may be specified via the |archive=
parameter.
The basic way to use the template is to insert this:
* {{Sports reference}}
If this results in an error, that means the article's Wikidata item does not have the property Sports-Reference.com Olympic athlete ID (archived) (P1447). To resolve this, either add the "id" in Wikidata or use the optional "id" parameter in the template. For example, da/bjorn-daehlie-1 is the "id" portion of the URL https://www.sports-reference.com/olympics/athletes/da/bjorn-daehlie-1.html.
* {{Sports reference|ID}}
* {{Sports reference|id=ID}}
The link text defaults to the Wikipedia article name, without any disambiguation such as "(athlete)". The default text can be changed via the optional "name" parameter. This may be useful when adding the template more than once (to differentiate the links) or when the article name is different than the athlete's name at Sports-Reference.com.
* {{Sports reference|ID|NAME}}
* {{Sports reference|id=ID|name=NAME}}
* {{Sports reference | ab/jeremy-abbott-2 }}
* {{Sports reference | id= ab/jeremy-abbott-2 | archive= 20161202194710 }}
* {{Sports reference | ab/jeremy-abbott-2 | Jeremy Abbott }}
* {{Sports reference | id= ab/jeremy-abbott-2 | name= Jeremy Abbott | archive= 20161202194710 }}
* {{Sports reference}}
* {{Sports reference | name= Bjørn Dæhlie }}
* {{Sports reference}}
www.sports-reference.com/olympics/athletes/
and .html
, so for https://www.sports-reference.com/olympics/athletes/be/livio-berruti-1.html
, the ID is be/livio-berruti-1
.be/livio-berruti-1
in the example above) and press enter?action=purge
at the end of the URL), the link should work properly.TemplateData for Sports reference
This template displays an external link to an Olympic athlete's profile at Olympics at Sports-Reference.com, also known as SR/Olympics. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the URL, such as ab/jeremy-abbott-2 in https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html This parameter is optional if Wikidata property P1447 exists, but required if not.
| String | optional |
name | name 2 | 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)".
| String | optional |
archive | archive | A number representing the date/time in an Internet Archive URL, such as 20161202194710 in https://web.archive.org/web/20161202194710/https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html, which is a archive of https://www.sports-reference.com/olympics/athletes/ab/jeremy-abbott-2.html on 2016-12-02 19:47:10. | Number | optional |