Help:Anchors

From NuGOwiki

Jump to: navigation, search



Setting anchors

  • headers automatically become html anchors, which can be linked to.
  • The <a> tag is not allowed in MediaWiki, so we can't do the <a name="link here">, but we can do the "id" html attribute to almost any existing tag. For example, <div id="what_to_link_to">text</div>.

Referencing anchors

Inside a regular wiki link [[page#anchor_name|shown_up_as]], include the hash sign (#) and the header name or the id tag name as you have written it.

e.g. To link to the University of Auckland section of the Contacts list type you would type:

[[People#University_of_Auckland|University of Auckland Contacts]] which would appear as: University of Auckland Contacts