Last modified: 2014-05-29 20:09:12 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 T12587, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

{{Townbox
...
|Image = Image.city.jpeg
|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.


Navigation
Links