Template:Anchor

Usage
This template inserts one or more HTML anchors in a page at the location of its invocation, enabling direct #Links to this location.


 * Code :
 * Gives : BeforeAfter

The template will handle up to 10 anchor names, but could very easily be extended to do twice or more. If you accidentally use more than 10 anchors, the template will output a bold error message to let you know about it instead of silently ignoring your extra anchors.

Anchor names shouldn't include characters "#" (hash), "|" (pipe) or "=" (equal). On the other hand, special characters such as " " (space), "," (comma), "&" (ampersand), etc. can be used directly both in anchors and links, because Wikipedia will process them automatically into an URL-acceptable format.

Linking
After that, you can have links sending directly to the line you marked:


 * With  when linking from the same page
 * With  when linking from another page

Technical notes

 * The template is based on
 * The final HTML page (as outputted by Wikipedia to the reader's browser) will have converted it to  instead.
 * The more backward-compatible  is used by Wikipedia's own headings but disabled for editors in the wikicode and thus not used here.

fr:Modèle:Ancre de:Vorlage:Anker ru:Шаблон:Anchor sl:Predloga:Sidro