ഫലകം:Sports-reference
This template uses Lua: |
This template displays an external link to an Olympic athlete's profile at the Olympics at Sports-Reference.com web site (sports-reference.com/olympics). It is intended for use in the external links section of an article.
Usage
തിരുത്തുക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}}
Examples
തിരുത്തുകID in template
തിരുത്തുകUsage in the article Jeremy Abbott, with article name as link text:
* {{Sports-reference | ab/jeremy-abbott-2 }}
* {{Sports-reference | id= ab/jeremy-abbott-2 | archive= 20161202194710 }}
Usage with name parameter as link text:
* {{Sports-reference | ab/jeremy-abbott-2 | Jeremy Abbott }}
* {{Sports-reference | id= ab/jeremy-abbott-2 | name= Jeremy Abbott | archive= 20161202194710 }}
Output:
URL:
ID in Wikidata
തിരുത്തുകUsage in the article Bjørn Dæhlie:
* {{Sports-reference}}
* {{Sports-reference | name= Bjørn Dæhlie }}
Output:
URL:
No ID in template or Wikidata
തിരുത്തുകUsage:
* {{Sports-reference}}
Output:
- Sports-Reference template missing ID and not present in Wikidata. How do I fix this?
Add ID in Wikidata
തിരുത്തുക- Find the athlete's ID on the Sports Reference website. To do this, search for the athlete here, and look at the URL. The ID is everything between
https://www.sports-reference.com/olympics/athletes/
and.html
, so for Livio Berruti, the ID isbe/livio-berruti-1
. - In order to add this to Wikidata:
- Click "Wikidata item" under "Tools" to the left of the article.
- Go to the bottom of the section called "Statements" (just above the one called "Wikipedia pages linked to this item")
- Click the bottom-most link called "[add]"
- Type in "Sports Reference" in the first box that appears, and click "Sports Reference ID" in the dropdown that appears
- In the next box, paste the ID (
be/livio-berruti-1
in the example above) and press enter - You're done! If you go back to the article and refresh it (maybe try to purge the page by adding
?action=purge
at the end of the URL), the link should work properly.
- If you find this process too cumbersome, you are always free to use the optional backup parameter instead.
TemplateData
തിരുത്തുകTemplateData for Sports-reference
This template displays an external link to an Olympic athlete's profile at the "Olympics at Sports-Reference.com" web site (sports-reference.com/olympics). It is intended for use in the external links section of an article.
ചരം | വിവരണം | തരം | സ്ഥിതി | |
---|---|---|---|---|
id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: ab/jeremy-abbott-2 is the ID portion of 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.
| പദം | ഐച്ഛികം |
name | name 2 | 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)".
| പദം | ഐച്ഛികം |
archive | archive | 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. | എണ്ണം | ഐച്ഛികം |
Tracking categories
തിരുത്തുക- "id" parameter exists
- Category:Sports-Reference template with ID same as Wikidata (10)
- Category:Sports-Reference template with ID different from Wikidata (0)
- Category:Sports-Reference template with ID not in Wikidata (0)
- "id" parameter does not exist
- Category:Sports-Reference template using Wikidata (11)
- Category:Sports-Reference template missing ID and not in Wikidata (0)
See also
തിരുത്തുക- {{Cite sports-reference}}, for links used in a reference
- {{IOC profile}}, for links to an athlete's profile at the International Olympic Committee website
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:Sports-reference/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |