Description

It would be nice to have all the <img> tags generated by MoinMoin belong to one of following classes:

Purpose

As it's now, it's very hard to write a CSS that would do anything with images. All you can do is to apply different styles for images outside the #page and inside it.

But suppose you wanted to:

Both are not really needed:

etc.

I'm not sure adding classes for all images is the correct solution - better check if we can add class for the element enclosing the images, which means much less classes needed.

I see this simpler structure:

  1. user interface
    • out of the page - header, footer, sidebar
    • in elements inside the page, like RecentChanges macro generate

    • in the message area (no icons used currently)
    • most image are used as buttons
      • there could be some used as status notification in the future (along with text, of course), or just decoration -- RadomirDopieralski

      • when writing my own themes, I give the icon images (or rather their <a> tags) distinct id's or classes, so that I can for example give them thick outline (as a bckground image) on hover. -- RadomirDopieralski

    • Most of them, not counting the message area and macros, are easily controlled from the theme. -- RadomirDopieralski

  2. inline images, used inside the text like this <!>

    • usually are not links
      • there are several ways they are used and there could be benefits from distinguishing them (see below) -- RadomirDopieralski

  3. external images - attachments or urls

-- NirSoffer 2005-11-12 13:16:02

Differences between glyphs, smileys and icons

These three "classes" of images I wanted to isolate are not that different form each other, at least with current way they are handled.

I wanted to separate them because they are different semantically, and as such they might require different treatment in the future, or might be treated differently by the theme. I will try to describe how they are different.

This idea is pawned by the belief that the page source should contain semantic information rather than control the looks. This might not apply to WikiWiki, which is much more of a WYSIWYG thing than normal web pages.

Smileys

It's a large class among the images used in MoinMoin. A class so large, that other images also have been sometimes called smileys.

They are emoticons, like :-) :-( >:-( :-D :-P

They are put into the text, inline, to mark it's emotional meaning.

They are somewhat similar to glyphs, but I think there are different requirements to make them 'work right'. They are based on psychological mechanisms, not only the ability to recognize them as distict symbols, like the glyphs. We want them to look nice.

Glyphs

Since the smileys code was alredy there, it got used to display several things that were needed, but coudn't be displayed without graphics. The glyphs are usually considered a part of the text -- letters and symbols that were not available, and so got displayed as images.

There are not many glyphs in current MoinMoin, but there are some: (./) {OK} {*} {o} {1} {2} {3}

Note, that some images like {X} {i} (!) <!> can be also sometimes used as glyphs, but this is rare.

I think it would be good to separate this group of images as a class, because this would allow to treat them a lot like text they appear in.

Icons

They are often found in books and manuals, used to mark tips, notes, exercises or important parts. In books they are often printed on the margin or floated left -- but it depends on the graphical design, they can be placed as other images as well. Most of the time they appear at the beginning of a paragraph. The whole paragraph is often marked in some way -- with border, background, etc.

In the MoinMoins I've seen so far, those images are used as icons: (!) /!\ <!> {X} {i}

They can, of course, be used as glyphs as well.

I think it would be nice to have this group of images separated, because this would allow to make them bigger, nicer and generally better suited to the function they perform. There would be needed a second set to use as glyphs, probably, at least with some of them.

After some thought -- this effect would be much better accomplished using custom sections, like this: http://labs.wmid.amu.edu.pl/


CategoryFeatureRequest

MoinMoin: FeatureRequests/ImageClasses (last edited 2007-10-29 19:18:29 by localhost)