Add a link to a page at the NST Wiki.
The following parameters are recognized:
The name of the NST Wiki page to be shown like: "Multi-Tap_Network_Packet_Capturing". If omitted, it defaults to the main page (Main_Page).
The name of the NST Wiki page to be shown (like: "Multi-Tap Network Packet Capturing"). If omitted PAGE_NAME is used with underscores replaced by spaces.
Any optional attributes to include in the <a> entity formed (like tooltips).
The class for the <a> entity formed. Defaults to "nstWikiPage" if omitted. NOTE: If you specify this attribute, double quotes will not automatically be used on the displayed text.
Used to construct a URL to a single page within the NST Wiki.
Example of using the macro:
@nstWikiPage("Multi-Tap_Network_Packet_Capturing") @nstWikiPage("Hard_Disk_Install_Setup_Tips#HD_Install","Hard Disk Installation") @nstWikiPage("Hard_Disk_Install_Setup_Tips#HD_Install","Hard Disk Installation"," @htmlAttr("style","font-size: 150%;") @toolTipAttr("My DOM Tooltip","300")")
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")
@nstWikiPage("Multi-Tap_Network_Packet_Capturing") @nstWikiPage("Hard_Disk_Install_Setup_Tips#HD_Install","Hard Disk Installation") @nstWikiPage("Hard_Disk_Install_Setup_Tips#HD_Install","Hard Disk Installation"," @htmlAttr("style","font-size: 150%;") @toolTipAttr("My DOM Tooltip","300")")
EOF
This macro is defined as:
<a @htmlAttr("class","@fnb("@param(3)","nstWikiPage")") @htmlAttr("href","@nstWikiUrl()/nstwiki/index.php/@fnb("@param(0)","Main_Page")") @htmlAttr("target","blank")@ifEqual("@param(2)",," @htmlAttr("onmouseover","domTT_activate(this, event, 'content', unescape('@encodeFormParam("<span") @encodeFormParam("class=\"ttNote\">")Open@encodeFormParam("</span>") the @encodeFormParam("<span") @encodeFormParam("class=\"ttDocument\">")NST Wiki@encodeFormParam("</span>") page: @encodeFormParam("\"<span") @encodeFormParam("class=\"ttSite\">")@fnb("@param(1)","@replaceChar("@fnb("@param(0)","Main_Page")","_"," ")")@encodeFormParam("</span>\"") in a new @encodeFormParam("<span") @encodeFormParam("class=\"ttNote\">")Tab@encodeFormParam("</span>") / @encodeFormParam("<span") @encodeFormParam("class=\"ttNote\">")Window@encodeFormParam("</span>").'), 'width', 460);")"," @param(2)")>@ifEqual("@param(3)",,"\"")@fnb("@param(1)","@replaceChar("@fnb("@param(0)","Main_Page")","_"," ")")@ifEqual("@param(3)",,"\"")</a>