Version 9 (modified by rjollos, 5 years ago) (diff)

Added pageoutline.

Add an anchor to any text


A macro to create an anchor to enable cross reference to a location in a page. Normally, every heading has an anchor associated with it. You can use this macro even if there is no heading and you want to cross-reference a particular text element on a wiki page (e.g. a row in a table).

Bugs/Feature Requests

Existing bugs and feature requests for AnchorMacro are here.

If you have any issues, create a new ticket.


Copy the macro into your wiki global macro install folder (e.g. /usr/share/trac/wiki-macros or your local wiki macro repository). Set macro file ownership and permission level (e.g. 755) and restart the webserver.


Download the zipped source from here.


You can check out AnchorMacro from here using Subversion, or browse the source with Trac.


[[Anchor(anchor)]] - invisible anchor


[[Anchor(anchor, label)]] - visible anchor. A hyperlinked label created where the anchor is placed.

To reference an anchor on a wiki page create a link to

[wiki:SomePage#anchor link]

Recent Changes

[10981] by rjollos on 2011-12-01 12:04:06
Finally, svn revision is displayed on the web admin panel.
[10980] by rjollos on 2011-12-01 11:57:46
Fixed typo.
[10979] by rjollos on 2011-12-01 11:49:47
Added svn:keyword so that revision displays on the admin panel.


Author: dkhijniak
Maintainer: dkhijniak
Contributors: Derived from macro by David Roussel