Be able to re-use a citoid citation in VisualEditor's wikitext mode
Open, Needs TriagePublic

Description

Editors need to be able to re-use named references, and they don't necessarily know how to type the wikitext code. Can the "Re-use" tab in the citoid dialog be made functional in the wikitext mode?

Restricted Application added a project: VisualEditor. · View Herald TranscriptMay 10 2017, 4:22 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdforrester-WMF closed this task as Declined.May 10 2017, 4:41 PM
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

No. Sadly, anything that "knows" things about the content is not possible.

@Jdforrester-WMF Maybe the author wanted to say, that some functionality of Citoid currently existing in VE is missing in NWE

Bencemac added a subscriber: Bencemac.EditedMay 11 2017, 6:30 AM

@Jdforrester-WMF Maybe the author wanted to say, that some functionality of Citoid currently existing in VE is missing in NWE

Exactly. I wanted to say that the "re-use" is missing in NWE (I reported it here). I think it is a very useful function which would be great if you could enable in NWE. Is it possible?

I believe that James said above that this is "not possible", even though it would obviously be desirable. The Re-use tool in visual mode knows what all the existing refs are (existing names [if any] and entire contents), lets you search them, and, if you want to re-use one that is not already named, it will name the old one for you, in addition to inserting the <ref name="Example" /> code where you want to re-use it.

The "knowing" and "searching" and "naming" parts are not possible in wikitext mode.

However, perhaps a semi-manual "inserting" part could be created. It could insert <ref name="CHANGE THIS" />, similar to how the CharInsert tool can insert static, editable text in the older wikitext editors. You would still have to change the name of the ref, and name the older one, if it isn't already named.