https://bugzilla.wikimedia.org/show_bug.cgi?id=72865

            Bug ID: 72865
           Summary: VisualEditor:  References inside galleries being
                    displayed separately, inside the gallery, instead of
                    in the correct <references /> block at the end of the
                    page
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Created attachment 16993
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=16993&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to