Community Wishlist Survey 2023/Citations/Linking of citing tool with Wikidata

From Meta, a Wikimedia project coordination wiki

Linking of citing tool with Wikidata

  • Problem: the data for books and papers in the citing tool has to be introduced every single time the book is used. Even though you have now a drop down that lets you choose information you have introduced once before, you still have to remember the beginning of the element (ex. ISBN) to be able to choose in the drop down.
  • Proposed solution: linking the citation with a Wikidata element would, by choosing the Q number of the book/paper (ex. wikidata:Q208002) or the title, allow you to fill out all the elements in the citation (if the element already exists in Wikidata).
  • Who would benefit: everyone using citations of books and papers repeatedly.
  • More comments: This would also encourage the creation of the books/papers used as citations in Wikidata.
  • Phabricator tickets:
  • Proposer: Ecelan (talk) 19:25, 23 January 2023 (UTC)[reply]


  • This is allready possible. It have to be just enabled on certain wiki. I am just affraid it would not have the expected outcome. We were researching this last year for Czech language projects and we came to conclusion that the system is way difficult to bring good outcome. I.E. if you are generating citation using QID, Citoid in VisuaEditor use Zotero, which is using a template, but for example this template is not comaptible with templates on the projects (at least not so much compatible with Czech templates). So it brings you pretty bad outcome. That is actually surprising because both wiki and CSL template points out they respect the same ISO standard. So some parts of output could me manipulated on each wiki to have better outcome, but some cannot, as there are limitations. So in this sence I would refolmulate the wish the foundation, does not use Zoter or CSL to map from Wikdata (now its from Wikidata to CSL and from CSL to wiki templates), but directly map from Wikidata to wiki templates. --Juandev (talk) 21:23, 23 January 2023 (UTC)[reply]
    • I am no programmer, and I don't understand much of what you are saying, apart from "it's complicated". I'm a friend of the salami tactic: so a first step could be to create per button the text of the reference (<ref>{{cite book |title=bla bla |etc. }}</ref>) in Wikidata. Then the user could move it to Wikipedia per copy/paste. That shouldn't be so difficult to program [said the non programmer...] --Ecelan (talk) 22:17, 28 January 2023 (UTC)[reply]
  • I support any kind of citation database that means that primary information is entered just once and stored and that all other displayed citations are drawn for this one source. Some notion of versioning would assist, so later modifications to the primary information would not result in editor‑confirmed details being summarily overwritten. I made some notes and provided a UML diagram here to indicate some preliminary design requirements. RobbieIanMorrison (talk) 22:26, 23 January 2023 (UTC)[reply]
  • I would need to see how this related to and worked alongside the OCLC record. I would actually start with getting the Wikidata information added to the Cite template. Gusfriend (talk) 01:07, 24 January 2023 (UTC)[reply]
    • I would actually start with getting the Wikidata information added to the Cite template. That is exactly what I was proposing. You open the citing tool, chose there a title, ISBN number or Wikidata Q-Number, and everything else is filled out automatically. --Ecelan (talk) 22:17, 28 January 2023 (UTC)[reply]
  • en:Template:Cite Q addresses this problem. It is intended to be transferable and is already used in a couple of dozen other projects. There is an outstanding request for Citoid to use Cite Q (also at phab:T289287). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:45, 1 February 2023 (UTC)[reply]
    I have another realisation of Wikidata driven source template for Wikidata: :ru:Модуль:CiteGost. So Cite Q is not the only one. D6194c-1cc (talk) 17:39, 12 February 2023 (UTC)[reply]
  • Same does de:Modul:Literatur supporting a couple of templates. But how could we offer an interface in a wp editor providing a wd search functionality and a button [create new entry] opening a new wd window if a book isn't in wd yet?
  • on huwiki the w:Sablon:Cite Q is used in FOUR articles only. Doubt anyone knows about its existence or you can get people to try and use a new type of template when they are already used to the others. A solution that you can build into existing ones would be more welcome. Xia (talk) 09:30, 11 February 2023 (UTC)[reply]
    • @Xia: Cite Q can be built into existing solutions. I have noted above an outstanding request for Citoid to use Cite Q. If hu.Wikipedia is your home project, you can use it there and write about it in Hungarian (its documentation is not yet translated from English), to tell others that it is available. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:35, 13 February 2023 (UTC)[reply]
  • Enable (or allow) to use citations between languages, e.g. when translating an article, for translators. Jj14 (talk) 11:38, 19 February 2023 (UTC)[reply]