Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357356

Summary: [mediawiki] styles in image caption break image
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: RESOLVED WONTFIX QA Contact: David Green <greensopinion>
Severity: normal    
Priority: P3 CC: nicolas.bros
Version: 1.5Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip
none
screenshot of test image on en.wikipedia.org none

Description Nicolas Bros CLA 2011-09-12 05:36:04 EDT
For example, this is not recognized as an image because of the italic style:
[[Image:test.png|Example with ''italics'']]
Comment 1 David Green CLA 2011-09-13 14:10:45 EDT
Thanks for the bug.  Relevant code is in the attached context.  

A fix for this bug should move to phrase modifiers for images.
Comment 2 David Green CLA 2011-09-13 14:10:47 EDT
Created attachment 203275 [details]
mylyn/context/zip
Comment 3 David Green CLA 2011-11-10 19:26:54 EST
Is it common to do this?  From what I can see MediaWiki ignores these styles anyways.  What is your use case?
Comment 4 Nicolas Bros CLA 2011-11-11 04:44:23 EST
(In reply to comment #3)
> Is it common to do this?
No, I don't think it's very common, but it can still be useful. You can consider it as a low priority feature.

> From what I can see MediaWiki ignores these styles anyways.
Maybe that's because I forgot the "thumb" attribute in my previous comment:
  [[Image:test.png|thumb|Example with ''italics'' and '''bold''']]
I tested on "en.wikipedia.org" and it works there (see attached screenshot).

> What is your use case?
I just wanted to emphasize a word in an image caption.
Comment 5 Nicolas Bros CLA 2011-11-11 04:45:05 EST
Created attachment 206832 [details]
screenshot of test image on en.wikipedia.org
Comment 6 David Green CLA 2013-08-02 12:41:58 EDT
Closed as part of backlog clean-up.  Please re-open if you'd like to see this revisited, perhaps with a contribution.