Loading...
 
Skip to main content

History: PluginAlink

Source of version: 28 (current)

Copy to clipboard
            ! Plugin A Link
{ANAME()}top{ANAME}This ((wiki plugin)), available since Tiki1, creates a link to an anchor in a wiki page. Use in conjunction with ((PluginAname)), which creates the anchor, or link to a wiki heading.

{REMARKSBOX(title="Note" type="tip")}Starting with ((Tiki2)), Tiki automatically creates an anchor for each wiki heading. You can use the ((PluginAlink)) to link to any heading on a wiki page ''without having to use a corresponding ((PluginAname))''.{REMARKSBOX}

!!Parameters
{pluginmanager plugin="alink"}
!! 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~+-

!! 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
* ((PluginAname))
* ((tw:PluginA)) as an alternative to ANAME/ALINK