Template:Anchor/doc
This is a documentation subpage for Template:Anchor. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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.