Page MenuHomePhabricator

On sdwiki and hewiki, opens bare reference instead of template for templates not in the MediaWiki:Visualeditor-cite-tool-definition.json message.
Open, LowPublic

Description

Expected:

  1. Generate citation ({{cite journal}})
  2. Insert citation (*sigh* We should be auto-inserting these citations. It's easy enough to remove them in the rare case when they're not wanted.)
  3. Click the 'Edit' button on the newly generated citation.
  4. Get the template dialog box.

Actual:

  1. Generate citation ({{cite journal}})
  2. Insert citation
  3. Click the 'Edit' button on the newly generated citation.
  4. Get the basic dialog box.
  5. Click on the contents to open the template dialog box.

Note: The actual experience is "different" from what I expected, but I'm not sure that it's "worse".

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Looks like there is not template mapping file setup on the wiki:

image.png (157×419 px, 9 KB)

Esanders renamed this task from Editing a newly inserted citoid citation opens the basic (manual) citation dialog at sdwiki to Citoid not fully set up on sdwiki.Jun 23 2018, 2:41 PM
Esanders edited projects, added Citoid; removed VisualEditor, VisualEditor-EditingTools.
Mvolz renamed this task from Citoid not fully set up on sdwiki to On sdwiki, opens bare reference instead of template. .EditedJun 23 2018, 2:49 PM

Looks like there is not template mapping file setup on the wiki:

image.png (157×419 px, 9 KB)

That's true, but unrelated. (This is https://www.mediawiki.org/wiki/VisualEditor/Citation_tool, btw)

For instance, sw doesn't have that message either, but it opens the template, not the reference dialog.

It *should* open the bare template regardless of whether there is a MediaWiki:Visualeditor-cite-tool-definition.json defined.

I just tried this on he wiki, same bug. It's plausibly a RTL bug!

Mvolz renamed this task from On sdwiki, opens bare reference instead of template. to On sdwiki and hewiki, opens bare reference instead of template for templates not in the MediaWiki:Visualeditor-cite-tool-definition.json message..Jun 23 2018, 2:57 PM
Mvolz triaged this task as Low priority.

To replicate on he wiki, try inserting "citation" template manually, and then re-open it - it will open the reference dialog. But on sd wiki, depsite having the MediaWiki:Visualeditor-cite-tool-definition.json not defined, it opens the template.

(It looks a little weird without the icon but still works.)

This is a bug in the visual editor then, right?

This is a bug in the visual editor then, right?

Kind of. The behaviour described happens on wikis where citoid is disabled, and on RTL wikis where citoid is enabled but the visual editor tool is disabled, with different behaviour on LTR wikis where citoid is enabled, and inconsistent behaviour on RTL wikis where citoid and the citation tool are enabled.

So I guess it's a question of whether that counts as a bug in VE. Citoid behaves inconsistently on sites where it is enabled; it recognises non-registered templates on LTR wikis. But I think that's the better behaviour overall.

So it's a question of whether this is behaviour we want to change outside of citoid for all references, which is to always open the template instead of the reference dialog where there is only one template inside the reference, or just fix the citoid bug so it behaves consistently.

At any rate at worst it creates an extra click for users. But I do think the consistent behaviour across all wikis, with or without citoid enabled, is preferable.

See also T71498: VisualEditor: Please add an easy way to get from a citation template to the basic (manual) reference dialog and T67593: VisualEditor: Can't cut or copy citation template in Reference dialog, for reasons why someone might want to get to the basic dialog (which isn't currently possible at most wikis, if the ref contents are purely a template).

Vvjjkkii renamed this task from On sdwiki and hewiki, opens bare reference instead of template for templates not in the MediaWiki:Visualeditor-cite-tool-definition.json message. to 3faaaaaaaa.Jul 1 2018, 1:02 AM
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
JJMC89 renamed this task from 3faaaaaaaa to On sdwiki and hewiki, opens bare reference instead of template for templates not in the MediaWiki:Visualeditor-cite-tool-definition.json message..Jul 1 2018, 4:42 AM
JJMC89 lowered the priority of this task from High to Low.
JJMC89 updated the task description. (Show Details)

See also T71498: VisualEditor: Please add an easy way to get from a citation template to the basic (manual) reference dialog and T67593: VisualEditor: Can't cut or copy citation template in Reference dialog, for reasons why someone might want to get to the basic dialog (which isn't currently possible at most wikis, if the ref contents are purely a template).

Thanks @Whatamidoing-WMF . I met someone at Celtic Knot Conference who wanted to insert a template along side a reference and couldn't do it in VE (for showing that it incorporates public domain text, i.e. like {{CDC}}). I pointed out that they could do it using the wikitext editor but they said the people they were working with weren't quite capable of that :).

I think maybe the behaviour should be that it only shows the open template right after insertion. And then afterwards we open the reference dialog instead. That way if people want to add extra template to the ref, or copy the template, there's a workflow in VE that allows that.

Or maybe add a button "open reference dialog" at least.

See also T71498: VisualEditor: Please add an easy way to get from a citation template to the basic (manual) reference dialog and T67593: VisualEditor: Can't cut or copy citation template in Reference dialog, for reasons why someone might want to get to the basic dialog (which isn't currently possible at most wikis, if the ref contents are purely a template).

Thanks @Whatamidoing-WMF . I met someone at Celtic Knot Conference who wanted to insert a template along side a reference and couldn't do it in VE (for showing that it incorporates public domain text, i.e. like {{CDC}}). I pointed out that they could do it using the wikitext editor but they said the people they were working with weren't quite capable of that :).

I think maybe the behaviour should be that it only shows the open template right after insertion. And then afterwards we open the reference dialog instead. That way if people want to add extra template to the ref, or copy the template, there's a workflow in VE that allows that.

Or maybe add a button "open reference dialog" at least.

@iamjessklein thoughts on this?