[[PageOutline(2-5,Contents,pullout)]]
= Add an anchor to any text =
{{{#!html
Notice:
This macro is deprecated for Trac 0.12. Trac 0.12 provides equivalent functionality, see
WikiFormatting#SettingAnchors for more details.
}}}
'''License:''' This macro currently does not have a license associated with it.
== 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
[report:9?COMPONENT=AnchorMacro here].
If you have any issues, create a
[http://trac-hacks.org/newticket?component=AnchorMacro&owner=rjollos 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 [http://trac-hacks.org/svn/anchormacro here] using Subversion, or [source:anchormacro 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 ==
[[ChangeLog(anchormacro, 3)]]
== Author/Contributors ==
'''Author:''' [wiki:dkhijniak] [[BR]]
'''Maintainer:''' [[Maintainer]] [[BR]]
'''Contributors:''' Derived from ColorMacro by diroussel