Template:Anchor/doc

From SPCodex, The Smashing Pumpkins wiki

The template {{anchor}} inserts one or more invisible HTML fragment identifiers (anchor names) in a page. Those locations can then be linked to.

Examples:

  • {{anchor|Foo}} can be linked to with [[#Foo|link text]] within the same article (let's call this article "Qux"). You could also link to it from other pages as with [[Qux#Foo|link text]]
  • {{anchor|Foo|Bar|Baz}} – adds anchors for #Foo, #Bar, and #Baz. You can add any number of anchors.