Шаблон:Sports-reference
{{#ifeq:sports-reference |док
|
{{#ifeq:show |show
|| Ово је документациона подстраница за Шаблон:Sports-reference. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Sports-reference
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
| Ovaj šablon pokreće Lua: |
{{#switch:
| none =
| =
[[File:{{#switch: data
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
Овај {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = модул | other | #default = шаблон }} користи {{#if: | једно или више својстава Википодатака; погледајте [[#{{{section}}}|§ {{{section}}}]] за детаље. | својства Википодатака: Lua грешка in Модул:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value). }} |
|sandbox |testcases |doc= |#default=
}}{{#switch:
| none =
| =
[[File:{{#switch:
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon = Овај шаблон | other | #default = {{#switch: {{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = Овај модул | other | #default = {{#switch: {{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Категорија
| category
| other
}}
}}
| category = Ова категорија | other | #default = Ова страница }} }} }} {{#if:Sports Reference not on Wikidata|прати|прати}} {{#if: | једно или више својстава Википодатака; погледајте [[#{{{section}}}|§ {{{section}}}]] за више детаља. | својства Википодатака: Lua грешка in Модул:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value).}} |
|sandbox |testcases |doc=
|#default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon =
| other | #default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module =
| other | #default = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Категорија
| category
| other
}}
}}
| category =
| other | #default =
}}
}}
}}
}}
Шаблон:Sports-reference displays an external link to an Olympic Games athlete profile at the Sports Reference web site (Sports-Reference.com).
Употреба
The basic way to use the template is to insert this:
{{Sports-reference}}
If this results in an error, that means there is no Sports Reference statement for the item in Wikidata. If you would like, you can fix it; if you don't want to, you can use the optional backup parameter thusly:
{{Sports-reference|optional backup parameter}}
This parameter is the page's ID on the Sports Reference website (found in the URL). For Bjørn Dæhlie, that is da/bjorn-daehlie-1, from the URL: http://www.sports-reference.com/olympics/athletes/da/bjorn-daehlie-1.html
Do not use this template for references. For that, see {{Cite sports-reference}}.
TemplateData
TemplateData за Sports-reference
}} <templatedata>{ "description": "This template displays an external link to an Olympic Games athlete profile at the Sports Reference web site (Sports-Reference.com).", "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
}
}}</templatedata>
Примери
Када је ID унесен на Википодацима
Usage in the article Bjørn Dæhlie:
{{Sports-reference}}
Output:
Када ID није унесен на Википодацима
Usage in the article Paul Elvstrøm:
{{Sports-reference|el/paul-elvstrom-1}}
Output:
Додавање ID-а на Википодацима
- 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
http://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-1in 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=purgeat 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.
Категорија за праћење
Види још
{{{{#if: |замени:}}Cite sports-reference{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}, for links used in a reference{{{{#if: |замени:}}USOC profile{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}, which uses a similar format
{{#ifeq:Sports-reference|sandbox|| }}