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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18768, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16768 - Wikitext in image captions displayed as plaintext
Wikitext in image captions displayed as plaintext
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
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:
Blocks:
  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: ---


Attachments

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

Example:

[[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
#Insulation
#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:

[[File:Example.png|thumb|<poem>
#foo
#bar
#baz
</poem>]]

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
https://en.wikipedia.org/wiki/File:Incandescent_light_bulb.svg 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 https://commons.wikimedia.org/w/index.php?title=File:Incandescent_light_bulb.svg&oldid=16753721

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: https://en.wikipedia.org/wiki/User:Miraceti/sandbox/bulb

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


Navigation
Links