Loading...
 
Skip to main content

History: PluginAname

Source of version: 25 (current)

Copy to clipboard
            ! Plugin A Name{ANAME()}top{ANAME}
This ((wiki plugin)), available since Tiki1, creates an anchor in a wiki page that can be linked to. Use in conjunction with the ((PluginAlink)), which creates the link to the anchor.

Starting with Tiki release 2.0, Tiki will automatically create anchor points for all headings in a wiki page. You can use the ((PluginAlink)) to link to any heading on a wiki page ''without'' having to use a corresponding ANAME plugin.
!! Parameters
{pluginmanager plugin="aname"}
!! Usage
To take use this plugin in a wiki page, use the syntax:
{CODE(colors="tiki")}
{ANAME()}anchorname{ANAME}
{CODE}
In the generated XHTML for your webpage, Tiki will create the following anchor:
{CODE(colors="htmlmixed")}<a id='anchorname'></a>{CODE}

__Notes:__
*If you include spaces in the anchor name, Tiki will convert the spaces to underscores ( _ ).
+For example, -+~np~{ANAME()}my custom anchor{ANAME}~/np~+- will render as: -+~np~<a id='my_custom_anchor'></a>~/np~+-.
*Starting with Tiki release 2, Tiki generates the anchor using the -+id+- attribute. In prior releases, Tiki used the HTML -+name+- attribute -+(~np~<a name='anchorname'></a>~/np~)+-.
!! Example
!!! Aname Plugin Usage
-+~np~{ANAME()}~/np~+-

-+anchorname+-   ~~#FF0000:<--put the name of the anchor here. Use this same name for the aname= parameter in the Plugin Alink (see just below).~~

-+~np~{ANAME}~/np~+-

ANAME example: -+~np~{ANAME()}anchorname{ANAME}~/np~+-

!!! Alink Plugin Usage
-+~np~{ALINK(~/np~+-

-+aname=anchorname+-   ~~#FF0000:<-- put here the name of the anchor you created using the Plugin Aname!~~

-+~np~)}~/np~+-

-+link text+-   ~~#FF0000:<-- put here the text to appear as the link.~~

-+~np~{ALINK}~/np~+-

ALINK example: -+~np~{ALINK(aname=anchorname)}link text{ALINK}~/np~+-

~~#F00:or rather,  I only work so 

ALINK example: -+~np~{ALINK( aname="anchorname" pagename="wiki pagename")}link text{ALINK}~/np~+
~~

!! Demonstration
To jump down to the anchor at the bottom of the page click __{ALINK(aname=myanchor)}HERE{ALINK}.__ <-- Here is where I put the -+ALINK+- plugin in this page.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Here is a second {ALINK(aname=myanchor)}link{ALINK} to the same anchor at the bottom of the page. Again, I used the -+ALINK+- plugin.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
{ANAME()}myanchor{ANAME}__The anchor is here.__ <-- I put the -+ANAME+- plugin at the beginning of this line. Now you can click __{ALINK(aname=top)}HERE{ALINK}__ to jump to the anchor I put at the top of the page (you can't see where that one is unless you look into the page editor (:biggrin:))

!! Related Pages
* ((PluginAlink))
* ((tw:PluginA)) as an alternative to ANAME/ALINK
* For all plugins{include page="Module and Plugin Includes" start="startinclude3" stop="stopinclude3"}