HypertWiki:W3tpl/lib/doc: Difference between revisions

From HypertWiki
m testing noinclude behavior with load tag
brief documentation
Line 1: Line 1:
<noinclude>Does this get included by the load tag?</noinclude>
<noinclude>
To make use of functions in this library (in another page), you must first load it:
&lt;load page="{{FULLPAGENAME}}" local /&gt;
 
* '''Function''': AName
* '''Purpose''': emits an anchor tag -- &lt;a name="..."&gt;&lt;/a&gt; -- which can be used for footnotes but probably has other uses as well.
* '''Parameters''':
** '''anchor''' = name of anchor
* '''How to call''': &lt;call AName anchor=<u>name</u> /&gt;
</noinclude>
<func AName anchor>
<func AName anchor>
   <let name=tag chr=60 />
   <let name=tag chr=60 />

Revision as of 02:38, 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>