Template:Vanchor



Documentation
Visible anchor: This creates an HTML anchor (in-page link target for an  link – the part after the  ) for the given text, while still displaying the text.

I.e., it replaces something like:



with



This helps lists with anchored entries have cleaner, easier-to-read code.

Important: This text cannot contain markup of any kind, only plain text – no wikimarkup, no templates. If you need to anchor text that has markup, put the markup around the template:



or use a manual  in front of the text (this must be done in particular when the text is an anchor on this page and also a link to something else; you can't have a link inside an anchor or vice versa):



If the text includes an equals sign anywhere in it, you must use a numbered parameter for the text:

Also, the text is a literal string. These two are not equivalent:



Additional parameters
The template will also create up to 4 additional anchors, for spelling variations, etc. Only the first is displayed. These are given in series or numbered:



The code is self-explanatory, and this can easily be extended to support more parameters if necessary.

HTML note
This uses HTML 4.01's  format only because the installed version of MediaWiki at wiki.OpenMW.org does not support the cleaner HTML5   syntax. If the system is upgraded to support it, this template should be updated to use it. Also, it does not output  (with span wrapping the displayed text) because this causes the anchor to mistakenly appear as a clickable but circular link in some old browsers.