wiki:AnchorMacro

Version 12 (modified by Ryan J Ollos, 12 years ago) (diff)

Macro is deprecated in Trac 0.12.

Add an anchor to any text

This macro is deprecated for Trac 0.12. In 0.12 the functionality is available in Trac. See t:WikiFormatting#SettingAnchors for more details.

Description

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 paragraph, row in a table or bullet in a list).

Bugs/Feature Requests

Existing bugs and feature requests for AnchorMacro are here.

If you have any issues, create a new ticket.

Installation

There are no special requirements for installation. See t:TracPlugins for generic installation information.

Download

Download the zipped source from [download:anchormacro 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 is created where the anchor is placed.

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

[wiki:SomePage#anchor linkname]

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.
(more)

Author/Contributors

Author: dkhijniak
Maintainer: rjollos
Contributors: Derived from ColorMacro by diroussel