Last modified: 2014-11-01 16:11:45 UTC
Created attachment 16993 [details] What the gallery looks like in VisualEditor Open a page containing some refs, and then a gallery that contains <ref> tags but no <references /> block inside the gallery. (The references block can be elsewhere on the page.) For example: ==Section== Hello world.<ref>First footnote</ref> ==Gallery== <gallery> File:Example.jpg|An image<ref>A footnote for the image</ref> </gallery> ==References== <references /> In read mode, everything looks right: Section Hello world.[1] Gallery An image[2] References 1. ^ First footnote 2. ^ A footnote for the image In VisualEditor, you get this: Section Hello world.[1] Gallery An image[1] 1. ^ A footnote for the image References 1. ^ First footnote VisualEditor seems to be inserting a ref block into the gallery, even though none exists at that point on the page. Also, it restarts the numbers for the gallery.