Shortcuts: WS:RfC, WS:RFC, WS:R

Wikispecies:Requests for Comment

From Wikispecies
Jump to navigation Jump to search

Welcome to Requests for Comment. This space is for any conversations that might require the opinions of the community to decide policy or the application of policy. Start a new conversation. For general conversation, see Wikispecies:Village Pump.

Post a comment

If you use the title box, you don't need to put a title in the message body.


Data from Wikidata

Hello since a few days I add data (using {{Wikidata list}}) from Wikidata in talk pages of references. What is potentially that data?

When a page exist for the name here then it is given in the lists, otherwise the link leads to the Wikidata items (I don't know of that function is modifiable)
The role of the reference for the name (first descritpion, recombination, replacement of junior homonym, taxonomic treatment, ...)
The pagination
A link to BHL (e.g. Template talk:Alcock, 1893)
A link to the Plazi treatment (e.g. Template talk:Lau & Reimer, 2019
An image

Currently I did that on Template talk:Alcock, 1893, Template talk:Shimomura, 2017, Template talk:Anderson & Zhang, 2017, Template talk:Zhou, Yang & Chen, 2019, Template talk:Liu, Tang & Luo, 2017, Template talk:Lau & Reimer, 2019, Template talk:Théel, 1879, Template talk:Murakami, 1944.

Questions, are you agree that I continue?

Christian Ferrer (talk) 11:51, 31 August 2021 (UTC)[]

  • OK, silence gives consent. For info the pages where I added are listed in Category:Lists based on Wikidata. Let me know if there is an issue, something to discuss or if you want to display specific data for specific publications. Regards, Christian Ferrer (talk) 18:23, 9 September 2021 (UTC)[]
How this work? What code I have to insert on talk page? I try in two pages with no good results. Burmeister (talk) 18:26, 9 September 2021 (UTC)[]
  • The exact code is:

{{Wikidata list|sparql= SELECT ?item ?itemLabel ?referenceHasRole ?referenceHasRoleLabel ?Pages ?BHL_URL ?PlaziID ?PlaziID_URL WHERE { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 wd:Put here the Q item number of the publication. OPTIONAL { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 ?publication. OPTIONAL { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 ?publication. ?reference pr:P6184 ?referenceHasRole} OPTIONAL { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 ?publication. ?reference pr:P1992 ?PlaziID BIND(IRI(CONCAT("",?PlaziID)) as ?PlaziID_URL)} OPTIONAL { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 ?publication. ?reference pr:P304 ?Pages} OPTIONAL { ?item p:P225 ?statement . ?statement prov:wasDerivedFrom ?reference . ?reference pr:P248 ?publication. ?reference pr:P687 ?BHLpageID BIND(IRI(CONCAT("",?BHLpageID)) as ?BHL_URL)} } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } |columns=label:Taxon,?referenceHasRoleLabel:Reference role,?Pages:Page(s),?BHL_URL:BHL,?PlaziID_URL:Plazi,P18 }} {{Wikidata list end}}

After to have added the code you click on "Automatically update the list now". Christian Ferrer (talk) 19:05, 9 September 2021 (UTC)[]
If I found time I will try to see if it is possible to create a substitution template with the Qitem as parameter... that will be much more simple to use... Christian Ferrer (talk) 19:09, 9 September 2021 (UTC)[]
Another exemple for the code where "Q90136167" (at line 8) is the Q number of the publication (Q90136167). Christian Ferrer (talk) 19:18, 9 September 2021 (UTC)[]
  • @Burmeister: you can use this: {{subst:User:Christian Ferrer/sandbox2|Q90136167}}, and of course by replacing the Qitem number by the one of the article/publication of your choice.
Note that all this works only if the data is already in Wikidata (and at the right place), for all the exemples I gave at top I have entered the data myself in Wikidata. E.g. I added the data there for Nymphaster basilicus displayed in Template talk:Alcock, 1893.
If the comunity agrees I can create a template in the template namespace, e.g. Template:Taxa list instead of my user namespace, but nothing urges as this is a substitution. Note also that we can call everything from Wikidata, the query used here is my arbitrary choice, more less or different data can be shown, you can ask me if you want something different and I will see if I can do it.
Note that only one Wikidata list is allowed by page. I have chose arbitrary the talk page but this is maybe not the best place. Such a list can be displayed in the main page, and with the substitution template we can also call a subsection title (with potential translations) such as ==List of taxa treated in this publication==. Christian Ferrer (talk) 18:21, 11 September 2021 (UTC)[]