Wiktionary:Votes/2020-09/Install Citoid

Install Citoid edit

  • Voting on: Installing Citoid on Wiktionary.
    The Citoid extension enables semi-automating the boring aspects of adding citations: retrieval of metadata (ISBN, author, year etc.) and the transformation of this data into template code ready to be inserted into a page. This will help both experienced and new editors on Wiktionary, and has the potential to improve our overall data quality and consistency. It's an additional, optional tool; this vote does not change any existing policy regarding citations.
  • Implementation
    In case of a successful vote, the extension will be installed and we will create mappings for some commonly used templates. This should not be very time-consuming, mappings for {{quote-book}}, {{quote-web}}, {{quote-journal}} will probably cover 90% of use cases. See this list of mappings currently active on Wikipedia.
  • Limitations/Risks
    The extraction of metadata might not always work as expected, especially for older sources, books without ISBN etc. Editors are advised to check and adapt the output. The underlying extraction service is extensible and we should be able to improve it over time and adapt it to our needs.

Schedule:

Discussion:

Support edit

  1.   SupportJberkel 09:53, 4 October 2020 (UTC)[reply]
  2.   Support Dentonius (my politics | talk) 10:07, 4 October 2020 (UTC)[reply]
  3.   Support This generally seems like a zero-loss decision that has the possibility for great benefit, though it will require some work. For some users who currently don't use or don't like using templates for quotations, the modified version of Quiet Quentin discussed at the bottom of this page might be of interest in the while Citoid is being set up (assuming this vote passes). —The Editor's Apprentice (talk) 18:09, 4 October 2020 (UTC)[reply]
  4.   Support – seems worth trying. — SGconlaw (talk) 21:08, 4 October 2020 (UTC)[reply]
  5.   Support --Ultimateria (talk) 23:55, 5 October 2020 (UTC)[reply]
  6.   Support. Imetsia (talk) 03:41, 6 October 2020 (UTC)[reply]
  7.   Support Allahverdi Verdizade (talk) 06:25, 6 October 2020 (UTC)[reply]
  8.   Support. Tie-in with QQ would be great too. —Μετάknowledgediscuss/deeds 06:45, 6 October 2020 (UTC)[reply]
  9.   Support, worth a shot. --Robbie SWE (talk) 11:57, 6 October 2020 (UTC)[reply]
  10.   Support inqilābī [ inqilāb zindabād ] 21:54, 6 October 2020 (UTC)[reply]
  11.   Support فين أخاي (talk) 08:25, 7 October 2020 (UTC)[reply]
  12.   Support --DannyS712 (talk) 04:11, 8 October 2020 (UTC)[reply]
  13. Is this the "cite" dropdown in the toolbar on Wikipedia?   Support, it's very useful. – Nixinova [‌T|C] 02:51, 17 October 2020 (UTC)[reply]
  14.   support Hazarasp (parlement · werkis) 08:25, 21 October 2020 (UTC)[reply]
  15.   SupportGlobins (yo) 06:50, 25 October 2020 (UTC)[reply]

Oppose edit

Abstain edit

  1.   Abstain Looks like one of those JavaScript thingies I don't use. As long as it doesn't break my workflow I don't care. Vox Sciurorum (talk) 18:32, 13 October 2020 (UTC)[reply]
  2.   Abstain What Vox said. – Guitarmankev1 (talk) 18:40, 19 October 2020 (UTC)[reply]

Decision edit

Next steps edit

The extension is installed, but needs additional configuration:

  1. add template data blocks with citoid mappings to our citation templates   Done
  2. fix VisualEditor+QuoteToggling (pending)
  3. create MediaWiki:Visualeditor-cite-tool-definition.json   Done
  4. create MediaWiki:Citoid-template-type-map.json   Done
  5. move cite button to toolbar (phabricator:T267504)   Done
  6. profit

I'll start working on 1) and once that's done an admin will have to create the JSON page in 2). According to the documentation, the "cite" dropdown will then show up automatically. – Jberkel 12:40, 3 November 2020 (UTC)[reply]

Ok, 2) isn't quite done yet but I don't think anyone is using the VisualEditor here anyway. @Metaknowledge, Ultimateria Could one of you please copy the contents of MediaWiki_talk:Citoid-template-type-map.json to MediaWiki:Citoid-template-type-map.json? That should enable this thing. – Jberkel 18:45, 7 November 2020 (UTC)[reply]

@Jberkel: I hit "publish changes" and the page appears to refresh. I'm not sure what I'm missing. Ultimateria (talk) 03:26, 8 November 2020 (UTC)[reply]
@Ultimateria: Only the portion inside the pre tags (the actual JSON) needs to be copied, maybe it's that? – Jberkel 10:50, 8 November 2020 (UTC)[reply]
@Ultimateria There's another step I forgot, I added the content to MediaWiki talk:Visualeditor-cite-tool-definition.json. – Jberkel 11:07, 8 November 2020 (UTC)[reply]
@Jberkel:   Done Ultimateria (talk) 15:33, 8 November 2020 (UTC)[reply]
@Ultimateria: great, can you do 3) as well? – Jberkel 16:52, 8 November 2020 (UTC)[reply]
@Ultimateria the content is different for this one, you can find it on: MediaWiki talk:Visualeditor-cite-tool-definition.json. – Jberkel 17:01, 8 November 2020 (UTC)[reply]

Citoid is now enabled, and although the "Cite" button is not in the toolbar (phabricator:T267504), it's accessible via "Insert > More > Citation" (shortcut: ⌘/Alt+⇧+K). For some sources you might get the error "The first parameter (language code) is missing.". This means that the language is not available or was not extracted by the Citoid service. However, you can still insert the template and add it manually. The other small annoyance is that the generated template code is inside <ref> tags–these have to be deleted manually. – Jberkel 18:15, 8 November 2020 (UTC)[reply]

Would the fulfillment of phabricator:T267504 also make Citoid available when using the source editor or will it always be relegated to the visual editor? Edit: Never mind, I figured out that the answer is "no". English Wikipedia uses separate scripts which compose RefToolbar 2.0. I guess my question now is if it can be added as an opt-in option here as well or if I should start another vote. —The Editor's Apprentice (talk) 19:21, 10 November 2020 (UTC)[reply]
@The Editor's Apprentice: The editor situation is a bit confusing, at the moment there are 3 different editors: the old wikitext editor, the visual editor, and what is called the 2017 wikitext editor, which is technically a mode of the visual editor. The 2017 editor behaves mostly like the old editor, you edit the wikitext of a page directly, but it has access to some features designed for the visual editor, like Citoid. The phab ticket is only about making the feature more visible, it's already activated. To use the 2017 editor you have to enable it in your preferences (select "New wikitext mode"). – Jberkel 19:25, 10 November 2020 (UTC)[reply]
@Jberkel: Alright, thank you much. —The Editor's Apprentice (talk) 19:30, 10 November 2020 (UTC)[reply]