Version 2 (modified by Dmitri K, 10 years ago) (diff)




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

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 marco file ownership and permission level (e.g. 755) and restart the webserver.


Download the zipped source from [download:anchormacro 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

15264 by rjollos on 2016-02-11 04:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

10981 by rjollos on 2011-12-01 11:04:06
Finally, svn revision is displayed on the web admin panel.
10980 by rjollos on 2011-12-01 10:57:46
Fixed typo.


Author: dkhijniak
Contributors: This marco derived from macro by David Roussel