Search results
Results from the WOW.Com Content Network
The template {{Visible anchor}} inserts one or more HTML anchors in a page. Those locations can then be linked to using [[#link|...]] syntax. Unlike {{Anchor}}, the first parameter will be visible text on the page. Template parameters [Edit template data] Parameter Description Type Status Anchor name, and text to display 1 This will become an anchor. The characters ", #, | and = must be ...
Anchor names must be unique on a page, and must not duplicate any heading titles. Duplicate anchors will not work as expected since the #location links go to the first anchor with that name. Duplicate anchors result in invalid HTML; you can check for duplicate anchors by running the page through the W3C Markup Validation Service.
[[Category:Section and anchor link formatting templates]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Section and anchor link formatting templates]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
Note that if you use it more than once on the same page, you'll need to use the |name= parameter every time after the first, and with a different name for each, so that the generated anchors are unique. A number or lowercase plain alphabet (non-accented) character is recommended - if you use an invalid character, it will be converted e.g. "x y ...
Omitting the page name is recommended when linking to a section in the same page because the link will work as expected when previewing changes or after moving the page. To format a link with the section sign (§) instead of a # (e.g. Page name § Section name rather than Page name#Section name), use the template {{Section link}} (or {}):
An anchor hyperlink (anchor link) is a link bound to a portion of a document, [3] which is often called a fragment. The fragment is generally a portion of text or a heading, though not necessarily. For instance, it may also be a hot area in an image (image map in HTML), a designated, often irregular part of an image.
It is bad practice to create links in article text using the format [[Article#Section]]; navigation then becomes difficult if the section is expanded into a new article. Instead, link using a redirect to the main topic; it costs little and makes improvements easier. Thus: In a redirect page named "History of Topic", use #REDIRECT [[Topic#History]].
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate; Pages for logged out editors learn more