AnchorMacro

Description

A macro to create an anchor to enable page cross reference. Normally, every heading has an anchor associated with it. You can use this macro, if there is no heading but 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.

Installation

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

Download the zipped source from here.

Source

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

Example

[[Anchor(anchor)]] - invisible anchor

or

[[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

[3547] by dkhijniak on 04/24/08 19:15:36

Initial release

[3546] by dkhijniak on 04/24/08 19:10:49

New hack AnchorMacro, created by dkhijniak

Author/Contributors

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

Attachments