Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356310 - [Mediawiki] caption in image does not appear below image
Summary: [Mediawiki] caption in image does not appear below image
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 08:09 EDT by Nicolas Bros CLA
Modified: 2016-02-10 04:32 EST (History)
0 users

See Also:


Attachments
the image as rendered by MediaWiki (5.12 KB, image/png)
2011-08-31 08:09 EDT, Nicolas Bros CLA
no flags Details
the image as rendered by Mylyn wikitext (2.65 KB, image/png)
2011-08-31 08:10 EDT, Nicolas Bros CLA
no flags Details
patch (2.78 KB, patch)
2011-11-10 19:38 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (20.89 KB, application/octet-stream)
2011-11-10 19:38 EST, David Green 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-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.