HypertWiki:W3tpl/lib/doc: Difference between revisions

From HypertWiki
brief documentation
m Template:Notefoot moved to HypertWiki:W3tpl/lib/doc: so I can use the template as intended (or try to)
(No difference)

Revision as of 11:41, 1 December 2008

To make use of functions in this library (in another page), you must first load it:

<load page="HypertWiki:W3tpl/lib/doc" local />
  • Function: AName
  • Purpose: emits an anchor tag -- <a name="..."></a> -- which can be used for footnotes but probably has other uses as well.
  • Parameters:
    • anchor = name of anchor
  • How to call: <call AName anchor=name />

<func AName anchor>

 <let name=tag chr=60 />
 <let name=tag append>a name="</let>
 <let name=tag append copy=anchor />
 <let name=tag append>" /</let>
 <let name=tag append chr=62 />
 <let name=tag append chr=60 />
 <let name=tag append>/a</let>
 <let name=tag append chr=62 />
 <echo><get name=tag raw /></echo>

</func>