Special Templates / Anchor

Sub-page of SpecialTemplates

The anchor template special:anchor allows you to add HTML anchor tags (<a name=''>) into the wiki page. This can be useful to have named (and stable) link targets.

Parameters

The template has one anonymous parameter: the name of the anchor.

Format: the anchor name has to be a valid wiki pagename, i.e. no spaces, only chars and numbers. The anchor name must not use names which are generated automatically (e.g. 'diag12', 'toc3', 'r4', '2'.) Furthermore the anchor name must not start with an uppercase letter (lowercase letter or number is fine.)

Examples

 {{special:anchor | coolSection }}

results in

(well there's nothing to see here, but if you look at the HTML code, you see the anchor being inserted :o)

Linking to anchors

Once an anchor is defined you can link to it, like you link to other HTML anchors in the page:

Notes

  • The anchor name is case sensitive! Be sure to spell the links correctly.
  • In order to find out which other pages use a specific anchor go to AdvancedFindPage, put the anchor name (including the hash, e.g. #coolSection) into the field "Full text" and put the pagename into the field "Links to page".

Special Templates / Anchor last edited by ArnoHollosi on November 14, 2010 - 16:14
RecentChanges · StartingPoints · About
Edit page ·Search · Related · Page info · Latest diff
[Welcome to Sensei's Library!]
RecentChanges
StartingPoints
About
RandomPage
Search position
Page history
Latest page diff
Partner sites:
Go Teaching Ladder
Goproblems.com
Login / Prefs
Tools
Sensei's Library