Mediawiki anchors

From HaFrWiki
Revision as of 10:47, 7 December 2012 by Hjmf (talk | contribs) (Created page with "{{TOCright}} MediaWiki is smart enough to strip out all the markup and hyper-linking from the text to create an anchor with the name "Header_Text_More_Text." However, it's b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MediaWiki is smart enough to strip out all the markup and hyper-linking from the text to create an anchor with the name "Header_Text_More_Text." However, it's been found that sometimes this mechanism is desired outside the headers, because, although, it does a great job making destination anchors, one doesn't necessarily want every destination anchor showing up in the TOC. To create an anchor like that manually:

<span id="Header Text More Text">'''[[some page|Header Text]] More ''Text'''''</span>