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

Bug 356310

Summary: [Mediawiki] caption in image does not appear below 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    
Version: 1.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
the image as rendered by MediaWiki
none
the image as rendered by Mylyn wikitext
none
patch
none
mylyn/context/zip none

Description Nicolas Bros CLA 2011-08-31 08:09:10 EDT
With:
[[Image:test.png|frame|center|caption for the image]]

The caption is supposed to be rendered inside the frame, below the image.
See the attached screenshots.
Comment 1 Nicolas Bros CLA 2011-08-31 08:09:55 EDT
Created attachment 202503 [details]
the image as rendered by MediaWiki
Comment 2 Nicolas Bros CLA 2011-08-31 08:10:19 EDT
Created attachment 202504 [details]
the image as rendered by Mylyn wikitext
Comment 3 David Green CLA 2011-08-31 13:10:52 EDT
Nicolas, thanks for the bug.  Any chance you could attach the desired HTML output?
Comment 4 Nicolas Bros CLA 2011-09-01 04:58:27 EDT
The html :

<div class="center">
  <div class="thumb">
    <div class="thumbinner" style="width:102px;">
      <img alt="" src="test.png" width="100" height="100" class="thumbimage" />
      <div class="thumbcaption">caption for the image</div>
    </div>
  </div>
</div>

The CSS styles used (defined in <head> or linked stylesheet):

<style type="text/css">
.center {
	width: 100%;
	text-align: center;
}
*.center * {
	margin-left: auto;
	margin-right: auto;
}
div.thumb {
	margin-bottom: .5em;
	border-style: solid;
	border-color: white;
	width: auto;
}
div.thumbinner {
	border: 1px solid #ccc;
	padding: 3px !important;
	background-color: #f9f9f9;
	font-size: 94%;
	text-align: center;
	overflow: hidden;
}
html .thumbimage {
	border: 1px solid #ccc;
}
html .thumbcaption {
	border: none;
	text-align: left;
	line-height: 1.4em;
	padding: 3px !important;
	font-size: 94%;
}
</style>
Comment 5 David Green CLA 2011-11-10 19:38:03 EST
Created attachment 206821 [details]
patch

does this patch address the issue?
Comment 6 David Green CLA 2011-11-10 19:38:06 EST
Created attachment 206822 [details]
mylyn/context/zip
Comment 7 David Green CLA 2013-08-02 12:44:22 EDT
Closed as part of backlog clean-up.  Please re-open if you'd like to see this revisited, perhaps with a contribution.