Last modified: 2014-05-29 20:09:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10587 - enable caption for "border" and "frameless" mode
enable caption for "border" and "frameless" mode
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-07-14 23:49 UTC by Daniel Arnold
Modified: 2014-05-29 20:09 UTC (History)
2 users (show)

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


Description Daniel Arnold 2007-07-14 23:49:12 UTC
In wiki syntax ou can only add a caption to an image in case you are using "thumb" mode, eg. [[Image:example.jpeg|thumb|some useful text]]. In all other modes but thumb the explanatory text is just shown as tooltip.

However especially with templates (such as town boxes) you want an image without borders but with a caption (as the frame of the town box table already provides a frame).

As of now people are using horrible worarounds such as extra tables and two variables for one image in templates:

{| class="floatright"
| [[Image:Colorful bottle.jpg|100px]]
| caption

Or in templates they are using things like that

|Image =
|Caption = city center

The first workaround example has the disadvantage of very ugly and complicated syntax and of course tables make a lot of troubles on converting texts to other formats (for example a book on printing or the Wikipedia DVD).

The second workaround within templates has the huge disadvantage on removing and replacing images. You need to edit to things and need to know that both belong together. If you're and admin cleaning up a template you haven't encountered so far this isn't trivial. Now imagine a Wikimedia Commons admin trying to do this in a wiki he can't speak the language... As well the CommonsDelinker bot has no chance delinking such images properly without leaving rubbish behind. So local wikis do run into technical problems there.

So please enable caption for "border" and "frameless" mode in order to resolve the two decribed problems.
Comment 1 C. Scott Ananian 2014-05-29 20:09:12 UTC
Can't this be solved with:

[[Image:example.jpeg|thumb|class=mycoolclass|some useful text]]

and some appropriate CSS for .mycoolclass?

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