There must be either two or four parameters passed to ImageBehavior -- you must include a URL and the alt text. While height and width are optional, if you specify height you must specify width.
General rules for the arguments string
General rules for the string between the parentheses in an @@Behavior()@@ call. This should be moved to WikiBehavior, but I'll do that when I've finished up the code.
All elements must be quoted strings.
Elements separated by commas. One or more spaces allowed adjacent to comma.
No tabs, linefeeds, or carriage returns allowed anywhere in the overall args string.
Must use double quotation marks, not single.
To escape quotation marks, precede with a backslash -- this is the only character that can (or needs to be) escaped.
Commas allowed inside quoted strings -- no need to escape there.
Information for developers
This change is now checked in to the GotDotNet Workspace (2003-12-29). All changes were in EngineSource.
When embedding images, allow specifying the "alt" attribute and also get the width and height of the image. The "alt" attribute is the biggest thing I'm interested in. This would make embedding images more complicated than it is now, but also more flexible (what if you want to link to an image that's generated by an ASPX page, for example: you can't do it today).
4/14/2008 3:26:53 PM - -66.78.127.196
A WikiBehavior is a dynamically-generated piece of content on a wiki page.
4/29/2008 8:05:57 AM - -206.159.117.2
Click to read this topic
6/21/2005 8:49:16 AM - -64.122.205.71
When embedding images, allow specifying the "alt" attribute and also get the width and height of the image. The "alt" attribute is the biggest thing I'm interested in. This would make embedding images more complicated than it is now, but also more flexible (what if you want to link to an image that's generated by an ASPX page, for example: you can't do it today).