|
FootNotes<< Enable HTML | Cookbook-V1 | Page Table Of Contents >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalProvide support for footnotes and intra-page cross-references. SolutionAttach:footnotes.php - PHP code Attach:footnotes.zip - PHP code fixed for PmWiki 0.6.9 Adds the following markup to PmWiki/PmWiki: [^this is the text of a footnote^] gets replaced by a numeric superscript [^#^] inserts the footnote texts, numbered sequentially [^#anchor^] looks for [[#anchor]] on the current page and copies the text from there to the end of the paragraph into the [^...^] position DiscussionAdd the line For example[^here is a footnote^]. The intra-page cross-reference variant is useful on FAQ pages. Use it as follows:
To see an example of intra-page links, visit http://wiki.lianza.org.nz/index.php/Main/WikiFAQ. It uses an experimental version of the footnotes script to generate a page table of contents.
BugsIt does not work if you use base <href='http://yourserverbase(approve links)'> in the HEAD section of the page. The Links are all broken. I had to change the line to to get it to work with PmWiki 0.6.9 (and sanitised all the double backslashes) - Phil Randal, March 17, 2004 Revision History
See Also
Contributors
[^#^] here becomes:
pmwiki-2.2.0-beta68 -- Last modified by {{jr}}
|