@wuiHtmlHeader([ANCHOR], [TEXT], [Hn], [ImgScale], [ANCHOR])

Inserts a header line with navigation into WUI HTML document.

The following parameters are recognized:

[ANCHOR]

The name of the anchor point (for internal reference).

[TEXT]

The text to appear on the header line.

[Hn]

The header level to use (defaults to "h2"). This argument is no longer used.

[ImgScale]

Fold / Header icon image scale as a real number. Used for smaller page layouts. Default: 1.0.

[ANCHOR]

An optional anchor point name for the header line.

Example of using the macro:

@bashCgiOutBegin()
@wuiHtmlHeader("status","Current Status")
@p("Here is the current status")
@bashCgiOutEnd()

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")

@bashCgiOutBegin()
@wuiHtmlHeader("status","Current Status")
@p("Here is the current status")
@bashCgiOutEnd()

EOF

This macro is defined as:

@debug(5,"@param(1)")
@ifEqual("@param(4)",,,"<div@htmlAttr("id","@param(4)")></div>")
@javascriptBegin()
  @ifEqual("@param(4)",,,"wuiNavHdAttach = document.getElementById("@param(4)");")
  setNavLinkHome("@topDir()/index.cgi","","@exitAnchor()");
  addSectionHeader("@param(1)","@param(0)","@fnb("@param(2)","h2")","@imageDirUrl()/",null,@fnb("@param(3)","undefined"));

@define("wuiHtmlHeaderAnchor","@param(0)","now")
@javascriptEnd()