Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Footnotes

Summary: Simple footnote markup
Version: 1.0.0
Prerequisites: pmwiki 2.0 and above
Status: Stable
Maintainer: TonyColley
Categories: Markup

Questions answered by this recipe

Is there a way to automatically number footnotes and to have them all automatically displayed at the bottom of the page?

Usage

Download footnote.phpΔ and place it in your cookbook directory.

include_once("cookbook/footnote.php");

Wherever you want a footnote in your text, simply use the [^footnote text^] markup.

When you want to display all the footnotes you have so far, below a short blue horizontal rule, use the markup [^#^] (on a line by itself; it won't break the recipe to do otherwise, but it might look funky).

If you do not want the short blue horizontal rule, but just a listing of all the footnotes defined so far, use the markup [^@^] (on a line by itself, too).

You may have multiple occurrences of the listing markups; each one will display only the footnotes created in the text since the last listing markup. (So you can have footnotes at the end of each section of your text, for example.)

Notes

This recipe was extracted from MarkupExtensions for those of us who just want footnote capability without all the other extensions provided by that recipe.

Release Notes

Comments

Does not work with the Confluence script : http://pmwiki.org/wiki/Test/Confluence Profiles.SH - 6 Aug 2007

Just an observation that embedding a link inside the Footnote text works normally in the Simple Footnote, but is not processed by the Extended Footnote and simply appears in full as text, complete with its double square brackets. Des October 07, 2007, at 05:30 PM

See Also

  • MarkupExtensions
  • FootnotesExtended (an extension that makes separating the footnote text from the footnote reference possible; better for large footnote texts and if references to the same text reoccur)

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on October 07, 2007, at 05:30 PM