query-c4a1b436d2ea5a224b25a4308f6b3bea
References in infoboxes 19:03, 3 August 2018 (UTC)) talk (Dipsacus fullonumHi all, I am working on rewriting the infobox code to be much faster. It have taken longer to find a good design for the code than I thought at first, but I think I finally have a good solution but it is not finished yet. Infoboxes can take local values for all fields from arguments in the template, and make references to all results to show Wikidata's source for the information. But I cannot find any testcases for this. Can anyone give examples of races where the results are sourced on Wikidata, and of existing infoboxes which show the sources from Wikidata in references? And I would also like to have any examples of infoboxes with local values from the template, so I can test if these things are working. Thank you, --https://ru.wikipedia.org/wiki/Шаблон:Cycling_race/listofwinners--> in ru-wiki in the winners' list, the wikidat icon is present opposite each entry https://fr.wikipedia.org/wiki/Tour_de_France_1964--> pencil icon shows that the data from the wikidata https://de.wikipedia.org/wiki/Paris–Roubaix_2016--> image locally This 22:16, 3 August 2018 (UTC)) talk (GAN??? — I found the answer with a SPARQL query: 22:50, 3 August 2018 (UTC)) talk (Dipsacus fullonumThank you, GAN. The French infobox is not made by Module:Cycling race, but another French module to make infoboxes with data from Wikidata. So I am still looking for infoboxes (made by Module:Cycling race) with references (like the -tag in wiki text) --
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?race ?raceLabel WHERE {
?race wdt:P31/wdt:P279* wd:Q15091377.
?race p:P1346 ?statement.
?statement prov:wasDerivedFrom ?ref .
SERVICE wikibase:label
{ bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}