Wiktionary:Votes/2020-09/Install Citoid

Install Citoid

 * 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, , 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:


 * Vote starts: 09:50, 4 October 2020 (UTC)
 * Vote ends: 09:50, 2 November 2020 (UTC)
 * Vote created: Jberkel 08:41, 26 September 2020 (UTC)

Discussion:
 * [[Image:Wikt rei-artur3.svg|20px]] 
 * [[Image:Wikt rei-artur3.svg|20px]] 
 * [[Image:Wikt rei-artur3.svg|20px]] 
 * [[Image:Wikt rei-artur3.svg|20px]] Wiktionary talk:Votes/2020-09/Install Citoid

Support

 * 1)  – Jberkel 09:53, 4 October 2020 (UTC)
 * 2)  Dentonius (my politics | talk) 10:07, 4 October 2020 (UTC)
 * 3)  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). &mdash;The Editor's Apprentice (talk) 18:09, 4 October 2020 (UTC)
 * 4) * An additional fact that might be of interest to users don't use/like using templates, the TemplateWizard extension is installed on English Wiktionary. &mdash;The Editor's Apprentice (talk) 00:24, 15 October 2020 (UTC)
 * Oh wow, they're "porting" features from VE to the normal editor? – Jberkel 07:49, 15 October 2020 (UTC)
 * Maybe, I'm fairly new to this wiki and don't know what its history looks like. The TemplateWizard extension seems to have been created in March 2018 and the VisualEditor project seems to have been started in 2011, though I don't know how far in development it was in 2018. The 2017 wikitext editor also exists and has a style like that of ported VisualEditor features combined with the usual editor. The 2017 wikitext editor is not available on English Wiktionary though because VisualEditor is not installed. This reply is a little more delayed than usual as I seem to have missed your message in my changes feed. Best. &mdash;The Editor's Apprentice (talk) 16:22, 22 October 2020 (UTC)
 * The visual editor is available here, but it's hardly being used. – Jberkel 08:32, 30 October 2020 (UTC)
 * 1)  – seems worth trying. — SGconlaw (talk) 21:08, 4 October 2020 (UTC)
 * 2)  --Ultimateria (talk) 23:55, 5 October 2020 (UTC)
 * 3) . Imetsia (talk) 03:41, 6 October 2020 (UTC)
 * 4)  Allahverdi Verdizade (talk) 06:25, 6 October 2020 (UTC)
 * 5) . Tie-in with QQ would be great too. —Μετάknowledge discuss/deeds 06:45, 6 October 2020 (UTC)
 * , worth a shot. --Robbie SWE (talk) 11:57, 6 October 2020 (UTC)
 * 1)  —  inqilābī  [ inqilāb   zindabād  ] 21:54, 6 October 2020 (UTC)
 * 2)  فين أخاي (talk) 08:25, 7 October 2020 (UTC)
 * 3)  --DannyS712 (talk) 04:11, 8 October 2020 (UTC)
 * 4) Is this the "cite" dropdown in the toolbar on Wikipedia?, it's very useful. – Nixinova [&zwnj;T|C] 02:51, 17 October 2020 (UTC)
 * 5)  Hazarasp (parlement · werkis) 08:25, 21 October 2020 (UTC)
 * 6)  —Globins (yo) 06:50, 25 October 2020 (UTC)

Abstain

 * 1)  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)
 * 2)  What Vox said.  – Guitarmankev1 (talk) 18:40, 19 October 2020 (UTC)

Decision

 * passed 15–0 (100%). -- Dentonius (my politics | talk) 09:58, 3 November 2020 (UTC)

Next steps
The extension is installed, but needs additional configuration: 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)
 * 1) add template data blocks with citoid mappings to our citation templates ✅
 * 2) fix VisualEditor+QuoteToggling (pending)
 * 3) create MediaWiki:Visualeditor-cite-tool-definition.json ✅
 * 4) create MediaWiki:Citoid-template-type-map.json ✅
 * 5) move cite button to toolbar (T267504) ✅
 * 6) profit

Ok, 2) isn't quite done yet but I don't think anyone is using the VisualEditor here anyway. 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)
 * 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)
 * 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)
 * 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)
 * ✅ Ultimateria (talk) 15:33, 8 November 2020 (UTC)
 * great, can you do 3) as well? – Jberkel 16:52, 8 November 2020 (UTC)
 * 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)

Citoid is now enabled, and although the "Cite" button is not in the toolbar (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  tags–these have to be deleted manually. – Jberkel 18:15, 8 November 2020 (UTC)
 * Would the fulfillment of 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. &mdash;The Editor's Apprentice (talk) 19:21, 10 November 2020 (UTC)
 * 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)
 * Alright, thank you much. &mdash;The Editor's Apprentice (talk) 19:30, 10 November 2020 (UTC)