Page MenuHomePhabricator

Can not use Citoid when editing a reference
Closed, DuplicatePublic

Description

Steps to reproduce

  1. Open a page containing a bare reference (<ref name="exmpl">http://www.example.org/page.html</ref>, used multiple times using its name) in VE
  2. Want to easily recreate the proper reference (using citation template generated by Citoid)

So:

  1. Click on the reference ([1])
  2. Click Edit
  3. Small VE editor dialog window openned
  4. Copy the link url and delete the window content
  5. Look for Citoid Cite icon/tab/button in the small VE editor dialog window

Expected behavior
There should be one, right? I am just editing a citation, so there should be some Citoid entry right?

Current behavior
I can not do this. I can only manually delete the citation in the article and recreate. But this is not helpful when a reference is used multiple times and I want to replace it in all occasions

Configuration
Firefox 61, Arch Linux + Gnome

Event Timeline

Dvorapa updated the task description. (Show Details)

References that contain a single URL should generate a 'Convert' button in the initial context popup, allowing you to feed the URL into Citoid.

Ah, I see. But sometimes the link is generated from some template like <ref>{{Example|page.html}}</ref> > <ref>http://www.example.org/page.html</ref>. The steps for this case should then be: get the url from the url parameter, insert it to the reference body as bare and click Insert. Click Convert in the Inserted citation. This is not really straightforward.

The steps for this case should then be: get the url from the url parameter

This is going to be basically impossible without coming up with a whole new extension to TemplateData to define which parameters are URL parameters. The example you give does not appear to be that common, at least on the wikis I've looked at, so it would probably be hard for us to justify the effort.

On enwiki they use thousands of templates like this. On cswiki we change them to our standard citation templates (when someone translates the article from enwiki with those templates left), but it can be only done by manually rewriting because of this blocker. Solving this would make the problem much easier.

Deskana moved this task from To Triage to Freezer on the VisualEditor board.
matmarex subscribed.

Not really declined, but I think this request is already sufficiently covered by other tasks:

  • T124610 for allowing the automatic conversion to work with more complicated cases (but as Ed says, it may be practically impossible in case of templates, since VE can't look inside them)
  • T179773 for implementing a more convenient interface for doing this manually (especially, as you say, for fixing reused references)

This task is about there is no Citoid icon in the mini editor, so it is could be a dupe of T179773?