Displays a paragraph of text using the standard note style.
The following parameters are recognized:
The paragraph of text to be displayed.
Optional note message title (defaults to: "Note:" if omitted).
Optional html non-breaking space character entity name/number (defaults to: " " if omitted) prepended/appended to "Note Title".
Optional attributes applied to the Fieldset element).
Example of using the macro:
@noteMessage("This may make you thirsty.")
Assuming the com.ccg.macros.at.All
class is within your CLASSPATH
and the
config/html.at
macros file has been
generated (Hint: run make atmacros in the
wui
directory), a developer should be able to
run the above example by copy/pasting from below:
[root@probe root]#
java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")
@noteMessage("This may make you thirsty.")
EOF
This macro is defined as:
<div@htmlAttr("class","centerBlock")><div@htmlAttr("class","noteMessage")><fieldset@ifEqual("@param(3)",,,"@param(3)")><legend@htmlAttr("style","color: black; font-weight: bold; margin: 0.0em; margin-left: 0.5em; padding: 0.0em;")>@fnb("@param(2)"," ")@fnb("@param(1)","Note")@fnb("@param(2)"," ")</legend><div@htmlAttr("style","margin: 0; padding-top: 0px; padding-bottom: 2px; padding-left: 4px; padding-right: 4px;")>@param(0)</div></fieldset></div></div>