Last modified: 2011-03-13 18:05:08 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 T3729, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1729 - Extend image syntax to allow for sidebars and such.
Extend image syntax to allow for sidebars and such.
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/MediaWik...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-21 16:44 UTC by grendelkhan
Modified: 2011-03-13 18:05 UTC (History)
3 users (show)

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


Attachments

Description grendelkhan 2005-03-21 16:44:50 UTC
The image syntax is limited, in that it allows for only images to be made into
sidebars. This has led to the use of tables and custom DIVs to create navboxes
such as [[en:Template:OSIModel]].

See [[en:Wikipedia talk:Extended image syntax#Multiple images in one frame]] for
an example of the usefulness of generalized frames and sidebars. Use of HTML
should be deprecated, but right now there's no better way of making these.
Comment 1 Omegatron 2005-03-21 16:54:58 UTC
I also agree it needs to be expanded a bit. Not sure what else I can add...

http://en.wikipedia.org/wiki/Wikipedia_talk:Extended_image_syntax#Multiple_images_in_one_frame

For uncluttering tables, see my proposal here:

http://en.wikipedia.org/wiki/Wikipedia:Proposal_for_intuitive_table_editor_and_namespace
Comment 2 David Benbennick 2005-03-26 02:02:54 UTC
You could just use a template (see [[:en:Template:Float begin]], for example). 
The only problem is the way [http://en.wikipedia.org/style/monobook/main.css
main.css] is designed.  See the definition of "div.thumb" there.  Ideally, you
want (a template that produces)
  <div class="thumb"> some composed images, in a table, whatever
  <div class="caption"> the caption </div></div>
The problem is that the line defining "div.thumb div a img" puts a frame around
_every image_, not around the box as a whole.  So, can we simply get the CSS fixed?
Comment 3 Omegatron 2005-07-29 14:42:37 UTC
Is this something we can fix ourselves by editing the site css?

http://en.wikipedia.org/wiki/MediaWiki:Monobook.css

I'll edit it if someone knows what to add...
Comment 4 Omegatron 2006-03-03 02:53:06 UTC
Yes, this can be fixed with CSS, see:

http://en.wikipedia.org/wiki/MediaWiki_talk:Common.css#Tables_inside_frames

but it would be better if Mediawiki generated different HTML.  Currently it
generates:

<div class="thumb">
    <div style="width:WIDTH SET HERE">
        Image goes here
        <div class="thumbcaption">Caption here</div>
    </div>
</div>

It would be better if it generated:

<div class="thumb">
    <div class="framesomething">Image goes here</div>
    <div class="thumbcaption">Caption here</div>
</div>
Comment 5 Omegatron 2006-03-03 02:56:43 UTC
(In reply to comment #4)
> It would be better if it generated:

Of course the CSS would have to be changed, too, to put the border around the
inner div instead of the image, which is the whole point of this bug report.  :-)
Comment 6 MZMcBride 2008-10-09 08:57:24 UTC
The correct answer to this particular issue seems to be using HTML tables (with wikimarkup or not), CSS, and possibly templates, not extending image syntax. There are simply far too many variations and possibilities that wikimarkup could never cover. That's why we have templates and tables. :-)

I recommend WONTFIX unless someone has something further to add?
Comment 7 Chad H. 2009-12-15 10:41:20 UTC
(In reply to comment #6)
> The correct answer to this particular issue seems to be using HTML tables (with
> wikimarkup or not), CSS, and possibly templates, not extending image syntax.
> There are simply far too many variations and possibilities that wikimarkup
> could never cover. That's why we have templates and tables. :-)
> 

Yes.

> I recommend WONTFIX unless someone has something further to add?
> 

Done.

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


Navigation
Links