Images generated from TiddlyWiki markup currently do not have an ALT
attribute.
This means that when the respective image file is not
available/accessible, there will be no placeholder, just an invisible
element. (Not to mention that the resulting HTML code is invalid.)
That in turn can easily lead to confusion, so there should always be an
''ALT'' attribute (either using the specified title, or the filename as
a fallback value).
The fix is easy too:
http://trac.tiddlywiki.org/attachment/ticket/388/imgAlt.patch
Note that there's some odd behavior that I haven't looked into yet; when
a link has been specified, the text disappears on mouse-over/hover.
-- F.
Actually, wouldn't it make sense to add optional parameters for size and
height? They're can be very useful (even essential).
However, I'm not sure what the syntax for that should be (MediaWiki uses
"[[FILENAME|WIDTHxHEIGHTpx|TITLE]]").
-- F.
just as a side note:
<!ELEMENT img EMPTY>
<!ATTLIST img
%attrs;
src %URI; #REQUIRED
alt %Text; #REQUIRED
longdesc %URI; #IMPLIED
height %Length; #IMPLIED
width %Length; #IMPLIED
usemap %URI; #IMPLIED
ismap (ismap) #IMPLIED
>
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict
--s
Ken Girard
Anyone familiar with what WikiCreole does for image sizes? I think
generally we should follow WikiCreole for new stuff (they've already
done the thinking about what users might already know)
--
Daniel Baird
"In teh beginnin Invisible Man was invisible, and he maded the skiez
and da earths, but he did not eated it." -- Genesis 1:1,
lolcatbible.com
I'd already checked that - unfortunately, they have no specs for this:
http://tinyurl.com/yqf4cn
(http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-ImageInline)
-- F.
Just for completeness while this remains an open ticket, a reminder
that images can be sized with styles and then use the usual
{{class{ }}} syntax
.narrowImage img
{
width: 160px;
}
{{narrowImage{[img[BlahBlah|blah.png]]}}}
-Xv
I know, but that can quickly become cumbersome, and not newbie-friendly
(few TW users know about CSS descendant selectors).
Nevertheless, the ALT attribute is definitely much more important.
-- F.