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

       Web browser: ---
            Bug ID: 52341
           Summary: VisualEditor: image alt text redered as caption if it
                    is last and contains {{val}} template
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ContentEditable
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

en.wp user User:Timwi reports

"On the page [[Earth]], we had the following markup code:

[[File:(filename)|thumb|700px|center| (caption here) |alt= (alt text here) ]]

The VisualEditor parsed this incorrectly and assumed that “alt= (alt text
here)” was the ''caption''.

Changing the order of the items fixed this despite having no effect on the
rendered page, which indicates that it’s a bug in VisualEditor and not
incorrect MediaWiki markup."
http://en.wikipedia.org/w/index.php?title=Earth&diff=566614668&oldid=566595613 

I've done some testing in my sandbox and it seems like the issue is somehow
related to the presence of the {{val}} template. I wasn't able to replicate the
bug with the {{small}} or {{convert}} templates for example, but I've not done
extensive testing with the latter or with any other template.

https://en.wikipedia.org/w/index.php?title=User:Thryduulf/sandbox&oldid=566618437&veaction=edit

-- 
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