Changes

Jump to: navigation, search

Template:Cite sports-reference

2,695 bytes added, 10:53, 13 June 2018
Allow "ref" parameter as used in {{cite web}}, see Template:Cite web#Anchor for description and Roelof van Lennep for example.
<includeonly>{{cite web
| first1 = Hilary
| last1 = Evans
| first2 = Arild
| last2 = Gjerde
| first3 = Jeroen
| last3 = Heijmans
| first4 = Bill
| last4 = Mallon
| author-link4 = Bill Mallon
| title = {{{1|{{{name|{{{title|{{PAGENAMEBASE}}}}}}}}}}}
| url = {{#if:{{{2|{{{url|}}}}}}
| {{{2|{{{url|}}}}}}
| {{#if:{{#property:P1447}}|https://www.sports-reference.com/olympics/athletes/{{First word|{{#property:P1447}}|sep=,}}.html}}
}}
| work = {{#if:{{{2|{{{url|}}}}}}
| {{#ifexpr:{{Str find|{{{2|{{{url|}}}}}}|www.sports-reference.com/olympics/}}<>-1|Olympics at}}
| {{#if:{{#property:P1447}}|Olympics at}}
}} Sports-Reference.com
| publisher = [[Sports Reference|Sports Reference LLC]]
| access-date = {{{3|{{{accessdate|{{{access-date|}}}}}}}}}
| dead-url = {{{deadurl|{{{dead-url|}}}}}}
| archive-url = {{{archiveurl|{{{archive-url|}}}}}}
| archive-date = {{{archivedate|{{{archive-date|}}}}}}
| df = {{{df|}}}
| ref = {{{ref|}}}
}}{{#if:{{{2|{{{url|}}}}}}
|<!--URL specified -->{{#ifexpr:{{Str find|{{{2|{{{url|}}}}}}|www.sports-reference.com/olympics/athletes/}}<>-1
|<!--Olympic athlete-->{{#ifeq:{{Str rightc|{{{2|{{{url|}}}}}}|5}}|.html
|<!--URL ending with .html-->{{#ifeq:{{YesNo-Yes|{{{check-wikidata|}}}}}|yes
|<!--does not use "|check-wikidata=no"-->{{#if:{{#property:P1447}}
|<!--P1447 defined-->{{#if:{{Str endswith|{{{2|{{{url|}}}}}}|{{First word|{{#property:P1447}}|sep=,}}.html}}
|<!--ID in URL matches Wikidata-->
|<!--ID in URL does not match-->{{Main other|[[Category:Articles using sports-reference citation with different Wikidata]]}}
}}
|<!--P1447 not defined-->{{#if:{{#invoke:Wikidata|pageId}}
|<!--Wikidata item exists-->{{Main other|[[Category:Sports Reference ID not in Wikidata]]}}
|<!--no Wikidata item-->{{Main other|[[Category:Articles without Wikidata item]]}}
}}
}}
}}
|<!--URL not ending with .html-->{{Main other|[[Category:Articles using sports-reference citation with incorrect URL]]}}
}}
}}
|<!--URL not specified-->{{#if:{{#property:P1447}}
|<!--P1447 defined-->{{Main other|[[Category:Articles using sports-reference citation with Wikidata]]}}
|<!--P1447 not defined-->{{Main other|[[Category:Articles using sports-reference citation without URL]]}}
}}
}}{{#if:{{{1|}}}{{{2|}}}{{{3|}}}
| {{Main other|[[Category:Articles using sports-reference citation with unnamed parameters]]}}
}}</includeonly><noinclude>
{{Documentation}}
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</noinclude>
Anonymous user

Navigation menu