wiki:RefMacro

Version 13 (modified by otaku42, 4 years ago) (diff)

Add note that the macro is obsolete for current Trac versions; fix example so that it will continue to work after the switch to Trac 0.11.

Macro for easily referencing section headers

Description

This macro lets you easily reference section headers in the current page. Under 0.8 it relies on the AnchorPatch.

Note that in Trac 0.10 and later there is no need for this macro, as Trac now natively supports relative links. See here for details.

Bugs/Feature Requests

Existing bugs and feature requests for RefMacro are here.

If you have any issues, create a new ticket.

Download

download:refmacro

Source

You can check out the source for RefMacro from Subversion at http://trac-hacks.org/svn/refmacro.

See #1252 for an updated version for Trac 0.11

Example

This is a reference to the Bugs/Feature Requests section, generated with this macro call:

[[ref(Bugs/Feature Requests)]]

Author/Contributors

Author: athomas
Contributors: eblot

TagIt(macro,athomas,0.8,0.9)?