Bug 357356 - [mediawiki] styles in image caption break image
Summary: [mediawiki] styles in image caption break image
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-09-12 05:36 EDT by Nicolas Bros CLA
Modified: 2013-08-02 12:41 EDT (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (2.08 KB, application/octet-stream)
2011-09-13 14:10 EDT, David Green CLA
no flags Details
screenshot of test image on en.wikipedia.org (6.58 KB, image/png)
2011-11-11 04:45 EST, Nicolas Bros CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.