Last modified: 2014-04-08 18:17:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 16768 - Wikitext in image captions displayed as plaintext
Wikitext in image captions displayed as plaintext
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low minor with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: newparser
: 17780 20370 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2008-12-23 11:12 UTC by Miraceti
Modified: 2014-04-08 18:17 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Miraceti 2008-12-23 11:12:12 UTC
Lists in image captions are not displayed as lists but rather as unformated text.


[[Image:Incandescent light bulb.svg|thumb|left|upright|
#Glass bulb
#Inert gas
#Tungsten filament
#Contact wire (goes to foot)
#Contact wire (goes to base)
#Support wires
#Glass mount/support
#Base contact wire
#Screw threads
#Electrical foot contact

One would expect the caption will be displayed as a list of items. But the caption looks like: "#Glass bulb #Inert gas #Tungsten filament #Contact wire (goes to foot) #Contact wire (goes to base) #Support wires #Glass mount/support #Base contact wire #Screw threads #Insulation #Electrical foot contact"

It's reproducible always (Mediawiki used currently in Wikipedia). The same problem is also with unordered lists.

I tried to find a similar bug but I did not succeed. Sorry, if it is a duplicate.
Comment 1 Danny B. 2008-12-23 11:40:32 UTC
I've done some further testing:

This bug applies for all types of lists: unordered, ordered, definition and paragraphs (one empty line between lines with texts) - these constructions are ignored. 

Tables are parsed properly as well as headlines, horizontal rule, bold, italic, links, even signature, math and another image are parsed and displayed correctly.

Using HTML for lists works too.
Comment 2 Tim Starling 2009-01-09 05:17:18 UTC
Unless this is a regression, I fail to see any case for tagging it high/major.
Comment 3 Danny B. 2009-01-12 18:43:03 UTC
Just for the record:


creates the _almost_ proper (all but last <li> contain <br />) list though - but I am almost sure it's just because of bug in <poem> which should handle it rather like <nowiki>#foo</nowiki> instead of parsing it.
Comment 4 Chad H. 2009-03-05 00:16:10 UTC
*** Bug 17780 has been marked as a duplicate of this bug. ***
Comment 5 Alexandre Emsenhuber [IAlex] 2009-08-24 17:23:52 UTC
*** Bug 20370 has been marked as a duplicate of this bug. ***
Comment 6 Mark A. Hershberger 2011-04-12 16:42:31 UTC
Punting this to the new parser Brion has under development.
Comment 7 Andre Klapper 2014-04-08 12:59:36 UTC nowadays correctly displays a list in the description. Going to the revision from 2008 when this bug report was filed is also rendered correctly on

Hence closing as FIXED.
Comment 8 Miraceti 2014-04-08 18:17:13 UTC
Yes, the description of the image can contain list (and it always did, I assume). But the example from the description of this bug does not work yet. It is a completely different case.

Check this URL:

Note You need to log in before you can comment on or make changes to this bug.