Last modified: 2012-12-18 10:47:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45035, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43035 - Uncentered caption text in gallery image is page-left (rather than image-frame-left) justified
Uncentered caption text in gallery image is page-left (rather than image-fram...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.21.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-12 20:17 UTC by Leonard G.
Modified: 2012-12-18 10:47 UTC (History)
3 users (show)

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


Attachments

Description Leonard G. 2012-12-12 20:17:57 UTC
Problem encountered editing Wikipedia December 12, 2012.

SETUP:

1. Given a titled gallery with a captioned image (single image file in my problem case)

2. The gallery is centered by bracketing with <center> and </center>

This results in the captioning text to also be centered (this is not unexpected).

3. Attempt to uncenter the captioning by bracketing the caption text with </center> and <center>

UNEXPECTED RESULT:
This results in the caption text appearing fully left justified using the page boundary rather than the gallery image box outer boundary.

WORK AROUND (for this specific single image case):

A.) Close the gallery with </gallery>after the gallery image title

B.) Display the image file as a "thumb" of the appropriate width using the "centered" option. (This will not center the text, but note that the text may be centered explicitly by bracketing with <center> </center>)

ALTERNATE WORK-AROUND (Also only for single image case):

After closing the gallery Display the image file as a "wide image", these are automatically centered and default to left justified text.

ADDITIONAL TESTS NOT PERFORMED:

No attempt was made to check the case of multiple images with uncentered text, this should be part of the post-fix testing.
Comment 1 Andre Klapper 2012-12-13 16:41:00 UTC
Thanks for taking the time to report this!
If possible, please provide an example web address (URL) - that makes it easier to test/reproduce.
Comment 2 Leonard G. 2012-12-18 05:56:59 UTC
See https://en.wikipedia.org/wiki/User:Leonard_G./sandbox

Section "Demo Two" - this illustrates the problem

Note that I am proposing the addition of <left>...<left> and <right>...<right> which would work similar to <center>...</center>

Leonard
Comment 3 Leonard G. 2012-12-18 05:59:29 UTC
P.S. Additional whitespace is not my addition - it is an addtional error effect.

Two work-arounds are shown, by using "thumb" and by using "wide image"
Comment 4 Leonard G. 2012-12-18 06:06:46 UTC
Question: How do I file a feature request?

- Leonard
Comment 5 Andre Klapper 2012-12-18 10:47:21 UTC
(In reply to comment #4)
> Question: How do I file a feature request?

See http://www.mediawiki.org/wiki/Bugzilla - set severity to "enhancement".

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


Navigation
Links