Image Behavior
Last changed: -66.78.127.196

.
Summary

Usage

 @@Image("URL", "alt text", "image width", "image height")@@
 @@Image("URL", "alt text")@@


Question
Question
Bug

Testing above theory:

bleh doesn't work bleh works

Examples

With width and height:

 @@Image("http://www.flexwiki.com/home.gif", "Home", "16", "16")@@

Example when update is released here.

With only image URL and alt text:

 @@Image("http://www.flexwiki.com/home.gif", "Home")@@

Example when update is released here.

All parameters must be enclosed in double-quoted strings. If you want to include a quotation mark in a string, escape it with a backslash:

 @@Image("http://www.flexwiki.com/home.gif", "The \"Home\" graphic")@@

This will be rendered as:

 <img src="http://www.flexwiki.com/home.gif" alt="The &quot;Home" graphic">

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.

Information for developers

This change is now checked in to the GotDotNet Workspace (2003-12-29). All changes were in EngineSource.

Changed files:

New files:

There are several new tests.

In FormattingTests:

A new section -- ParseBehaviorParametersTests