VisualEditor: Galleries containing refs produce errors, unless the <references /> are displayed within the gallery
Closed, ResolvedPublic

Assigned To
None
Priority
Needs Triage
Author
Whatamidoing-WMF
Subscribers
Jdforrester-WMF, Krenair, Elitre and 2 others
Projects
Reference
bz57216
Description

Intention:
Edit a page containing a gallery. The gallery contains <ref> citations.

Steps to Reproduce:

  1. Open the page in VisualEditor.
  2. Notice the big red errors inside each gallery that contains a <ref> citation.

Actual Results:
Big red errors are present at the bottom of each gallery that contains a <ref> citation. Depending on whether the ref is part of a group, these are the two errors I saw:

There are <ref group=$1> tags on this page, but the references will not show without a {{reflist|group=$1}} template (see the help page).

There are <ref> tags on this page, but the references will not show without a {{reflist}} template (see the help page).

Expected Results:
That VisualEditor would not produce an error. (There were proper {{reflist}} templates at the bottom of the page.)

Reproducible: Always


Version: unspecified
Severity: normal

bzimport added a project: VisualEditor.Via ConduitNov 22 2014, 2:21 AM
bzimport set Reference to bz57216.
Whatamidoing-WMF created this task.Via LegacyNov 18 2013, 11:34 PM
Whatamidoing-WMF added a comment.Via ConduitNov 18 2013, 11:35 PM

If you change a caption in the gallery so that it contains a {{reflist}}, then VisualEditor displays the citations within the gallery (under the green can't-edit-this hash), and this error is not present.

Whatamidoing-WMF added a comment.Via ConduitFeb 20 2014, 7:47 PM

Also, as seen by editing https://en.wikipedia.org/w/index.php?oldid=596381198 you cannot re-use any references that are within a gallery block.

Krenair added a comment.Via ConduitNov 1 2014, 3:07 AM

I don't think this is valid any more, is it?

Whatamidoing-WMF added a comment.Via ConduitNov 1 2014, 3:56 PM

This has been fixed, sort of: Instead of a big red error, it now puts a references block at the end of the gallery (re-starting the numbering, and including only refs from the gallery).

Add Comment