Page MenuHomePhabricator

Visual editing: process for editing Cite interview is not consistent with editing Cite web when wrapped in <ref> tags
Open, Needs TriagePublic

Description

(Moved from [[en:Help_talk:Citation_Style_1]])

For less common citation templates, such as Cite interview, the output of the citation shows up as text rather than the usual structured list of fields, at first. It's then necessary to click the rendered citation and choose Edit to get the usual editing pop-up. By contrast, Cite web shows the pop-up with the structured list of fields immediately.

This is a request to have it offer to open (or directly open) the template edit tool when there's only a single citation template inside the ref tags, or to otherwise clarify the user interface.

The interface could perhaps be clarified by showing a hint the first time it's opened to the effect of

"The contents of this ref tag consist of a single template. To edit the template, click the displayed template in the ref tag edit box and choose the Edit option."

to explain how it works.

(I didn't try clicking on it at all until I was trying to understand it to write up this report after the fact, since I thought it would overwrite the template with the rendered output if I edited the displayed text.)

Thanks!

Web browser: Firefox 68.4.2esr (64-bit)

Operating system: GNU (Gentoo GNU/Linux)

Wikipedia skin: Minerva

Here is a screenshot showing the first interface provided when editing Cite interview:

Screenshot_2020.05.31_18.16.31.png (2×3 px, 467 KB)

Here is a screenshot showing the first interface provided when editing Cite web:

Screenshot_2020.05.31_18.16.47.png (2×3 px, 447 KB)

(The missing button icons are a separate issue resulting from using high contrast system theme, which turns off custom CSS backgrounds. I wouldn't mind that one getting looked at either so I don't have to hover over them to see what is what, now I think about it...)

Event Timeline

FWIW, inserting Template:Cite interview with VE works for me on enwiki. My screen does not look anything like the OP's however, so there may be some interaction with the browser, user scripts, user preferences, or something else that does not match my configuration.

Oh, interesting. Adding and editing an existing one in my sandbox worked as expected. But when I put <ref> tags around it, it stopped being able to be edited correctly.

I've put examples up at https://en.wikipedia.org/w/index.php?title=User:Goldenshimmer/sandbox&oldid=960065161

{{u|Jonesey95}}, would you be willing to see if the two citation templates in that revision labeled "Not editable" show up correctly for you in visual editing? Thanks!

~~~~

Goldenshimmer renamed this task from Cite interview broken with visual editing to Cite interview broken with visual editing when wrapped in <ref> tags.May 31 2020, 11:38 PM

Ah! I figured out a way to edit the ones that have that problem — click edit on the ref, then click the displayed ref, then click edit in the resulting pop-up, and it makes a second pop-up which works correctly.

So it does seem possible to edit them, it just has an extra, non-obvious step that the Web ones don't.

Goldenshimmer renamed this task from Cite interview broken with visual editing when wrapped in <ref> tags to Visual editing: process for editing Cite interview is not consistent with editing Cite web when wrapped in <ref> tags.Jun 1 2020, 10:03 PM
Goldenshimmer updated the task description. (Show Details)

The single-step editing is only available for the few most common templates, listed here: https://en.wikipedia.org/wiki/MediaWiki:Visualeditor-cite-tool-definition.json.

Administrators can add more templates to that list using these instructions: https://www.mediawiki.org/wiki/VisualEditor/Citation_tool#Additional_types.

Doing that will also add an entry in the Cite → Manual menu.

I see, so it would need to clutter up the menu to be able to be detected then...

I guess this is a request to either separate that dependency so it can open the usual citation tool when there's only a single citation template inside the ref tags, or to otherwise clarify the user interface somehow.

I don't think this is common enough that it needs to go into the main menu, probably.

Showing a hint the first time it's opened to the effect of

"The contents of this ref tag consist of a single template. To edit the template, click the displayed template in the ref tag edit box and choose the Edit option."

would make this clearer. I didn't try clicking on it at all until I was trying to understand it to write up this report after the fact, since I thought it would overwrite the template with the rendered output if I edited the displayed text.