@manPageLink(PROGRAM, [LABEL], [PAGESECTION], [MANSECTION])

Inserts HTML link to take user to man page of PROGRAM.

The following parameters are recognized:

PROGRAM

The program (item) to display the man page for.

[LABEL]

The text to appear (defaults to PROGRAM if omitted).

[PAGESECTION]

Optional section to jump to within man page.

[MANSECTION]

Optional man page section number.

Example of using the macro:

@manPageLink("ls")
@manPageLink("kismet","kismet_server","option 2")

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

@manPageLink("ls")
@manPageLink("kismet","kismet_server","option 2")

EOF

This macro is defined as:

<span@htmlAttr("class","manPageLink") onmouseover=\"domTT_activate(this, event, 'content', '@jsn("View") the @jstc("Man Page","@toolTipEmphasis()") for: @jsdh("@param(0)")', 'width', calcDomTTLen('@param(0)', 180));\"><a@htmlAttr("href","@systemCgi()/man.cgi?action=man&amp;page=@encodeFormParam("@param(0)")&amp;section=@encodeFormParam("@param(3)")@ifEqual("@param(2)","","","#@param(2)")")@htmlAttr("target","_blank")>@fnb("@param(1)","@param(0)")</a></span>