Last modified: 2013-03-25 14:59:10 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 11239 - Image captions ending with external links display inconsistently due to interpretation of multiple brackets
Image captions ending with external links display inconsistently due to inter...
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.21.x
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://test.wikipedia.org/wiki/Bug_11239
aklapper-fixedbyVE
:
: 20167 25066 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-08 18:25 UTC by Gracenotes
Modified: 2013-03-25 14:59 UTC (History)
5 users (show)

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


Attachments

Description Gracenotes 2007-09-08 18:25:51 UTC
1) [[Image:Example.png|thumb|150px|center|Text with [http://google.com link]]]
This results in a thumbnail with a caption of "Text
with link", and "link" links to http://google.com.

2) [[Image:Example.png|thumb|150px|center|[[Text]] with [http://google.com link]]]
This results in a thumbnail with a caption of "Text with [http://google.com link", where "Text" is an internal link
to the page titled "Text", and "http://google.com" is a bare
link to Google's home page. Also, with "]]]", the first two
brackets are parsed as the image's ending delimiters. The last
"]" is rendered as plain text.

The only difference between these two is that the second
example contains an internal link. In the second example, the
caption should be displayed as "Text with link", where "Text"
and "link" are linked appropriately. With "]]]", the last two
brackets should be parsed as the image's ending delimiters.

This bug should be reproducible on any Wikimedia wiki. I've
also tested it on MediaWiki 1.6.10, where the same
behavior is exhibited.
Comment 1 Mormegil 2008-03-19 17:43:12 UTC
Created a testcase on testwiki.

A possible workaround is just to add a single space before the closing “]]” (after the previous “]”).
Comment 2 Chad H. 2009-08-10 22:41:23 UTC
*** Bug 20167 has been marked as a duplicate of this bug. ***
Comment 3 lɛʁi לערי ריינהארט 2009-08-11 09:29:58 UTC
in addition to description from duplicate bug 

This aplies also for captions inside <gallery> see
[[commons:File talk:Albrecht Dürer - Melencolia I (detail).jpg]]

note: This bug *needs* a parsertest written for it.

Best regards Reinhardt [[user:Gangleri]]
Comment 4 Chad H. 2010-09-08 15:25:11 UTC
*** Bug 25066 has been marked as a duplicate of this bug. ***
Comment 5 db [inactive,noenotif] 2011-07-03 17:44:43 UTC
related wrong brackets handling: bug 26996 and bug 25721

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


Navigation
Links