HypertWiki:W3tpl/lib/doc

From HypertWiki
Revision as of 11:52, 1 December 2008 by Woozle (talk | contribs) (forgot to close middle "get" tag)

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-open chr=60 />
 <let name=tag-open append>a name="</let>
 <let name=tag-shut>" /</let>
 <let name=tag-shut append chr=62 />
 <let name=tag-shut append chr=60 />
 <let name=tag-shut append>/a</let>
 <let name=tag-shut append chr=62 />
 <echo><get name=tag-open raw /><get name=anchor /><get name=tag-shut raw /></echo>

</func>