Difference between revisions of "HypertWiki:W3tpl/lib/doc"

From HypertWiki
Jump to navigation Jump to search
m (Template:Notefoot moved to HypertWiki:W3tpl/lib/doc: so I can use the template as intended (or try to))
(try this so post-processed stuff can still be used)
Line 10: Line 10:
</noinclude>
</noinclude>
<func AName anchor>
<func AName anchor>
   <let name=tag chr=60 />
   <let name=tag-open chr=60 />
   <let name=tag append>a name="</let>
   <let name=tag-open append>a name="</let>
  <let name=tag append copy=anchor />
 
   <let name=tag append>" /</let>
   <let name=tag-shut>" /</let>
   <let name=tag append chr=62 />
   <let name=tag-shut append chr=62 />
   <let name=tag append chr=60 />
   <let name=tag-shut append chr=60 />
   <let name=tag append>/a</let>
   <let name=tag-shut append>/a</let>
   <let name=tag append chr=62 />
   <let name=tag-shut append chr=62 />
   <echo><get name=tag raw /></echo>
   <echo><get name=tag-open raw /><get name=anchor><get name=tag-shut raw /></echo>
</func>
</func>

Revision as of 11:49, 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 />


> function aname() <= ()