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

From HypertWiki
Jump to navigation Jump to search
(forgot to close middle "get" tag)
(NoteFoot)
 
Line 2: Line 2:
To make use of functions in this library (in another page), you must first load it:
To make use of functions in this library (in another page), you must first load it:
  <load page="{{FULLPAGENAME}}" local />
  <load page="{{FULLPAGENAME}}" local />
 
==AName(anchor)==
* '''Function''': AName
* '''Function''': AName
* '''Purpose''': emits an anchor tag -- <a name="..."></a> -- which can be used for footnotes but probably has other uses as well.
* '''Purpose''': emits an anchor tag -- <a name="..."></a> -- which can be used for footnotes but probably has other uses as well.
Line 19: Line 19:
   <let name=tag-shut append chr=62 />
   <let name=tag-shut append chr=62 />
   <echo><get name=tag-open raw /><get name=anchor /><get name=tag-shut raw /></echo>
   <echo><get name=tag-open raw /><get name=anchor /><get name=tag-shut raw /></echo>
</func>
<noinclude>
==NoteFoot(key)==
* '''Function''': NoteFoot
* '''Purpose''': Emits a nicely-formatted footnote with an anchor tag so document text can link to it
* '''Parameters''':
** '''key''' = key to the anchor; this value is displayed as is and prefixed with "note-" for the actual tag, thus:
*** '''&lt;a name="note-<u>key</u>"&gt;&lt;/a&gt;'''
</noinclude>
<func NoteFoot key>
  <let name=anchor>note-</let>
  <let name=anchor append copy=key />
  <echo>: '''<get name=key />.'''<call AName anchor=$anchor /> </echo>
</func>
</func>

Latest revision as of 12:11, 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 />

AName(anchor)

  • 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() <= ()

NoteFoot(key)

  • Function: NoteFoot
  • Purpose: Emits a nicely-formatted footnote with an anchor tag so document text can link to it
  • Parameters:
    • key = key to the anchor; this value is displayed as is and prefixed with "note-" for the actual tag, thus:
      • <a name="note-key"></a>


> function notefoot() <= ()